/* --- Reset & Base (matches homepage) --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Source Han Sans SC",
    -apple-system,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background: #060401;
  color: #0a0a0a;
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}

/* Navbar links: universal horizontal centering */
.navbar-a .navbar-links,
.navbar-scroll .navbar-links {
  left: 50%;
  transform: translateX(-50%);
}

/* navbarA dark-text overrides (light hero background) */
.navbar-a .navbar-logo { color: #333; }
.navbar-a .navbar-links a { color: #333; }
.navbar-a .navbar-links a.active { color: #F18956; opacity: 1; }
.navbar-a .i18n-btn {
  color: rgba(51, 51, 51, 0.7);
  border-color: rgba(51, 51, 51, 0.1);
}
.navbar-a .nav-hamburger { color: #333; }

/* --- Hero --- */
.contactus-hero {
  position: relative;
  width: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 60px 24px;
  background: transparent;
}
.contactus-hero-title {
  font-size: 48px;
  font-weight: 500;
  color: #333;
  margin: 0;
}
.contactus-hero-tagline {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(28, 28, 28, 0.65);
  text-align: center;
  max-width: 600px;
  margin: 0;
}
.contactus-hero-email {
  color: #F18956;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}
.contactus-hero-email:hover {
  opacity: 0.7;
}

/* --- Main Content --- */
.contactus-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

/* --- Form --- */
.contactus-form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.contactus-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contactus-field-half {
  width: calc(50% - 12px);
}
.contactus-field-full {
  width: 100%;
}
.contactus-field label {
  font-size: 14px;
  font-weight: 400;
  color: #333;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.contactus-field input,
.contactus-field textarea,
.contactus-field select {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.contactus-field input:focus,
.contactus-field textarea:focus,
.contactus-field select:focus {
  border-color: #F18956;
  background: #fff;
}
.contactus-field textarea {
  min-height: 120px;
  resize: vertical;
}

/* phone row */
.contactus-phone-row {
  display: flex;
  gap: 8px;
}
.contactus-phone-row > * {
  flex: 1;
  min-width: 0;
}

/* message limit */
.contactus-message-limit {
  display: block;
  text-align: right;
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* select styling */
.contactus-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* submit */
.contactus-submit {
  margin-top: 32px;
}
.contactus-submit button {
  padding: 14px 48px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: #F18956;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.contactus-submit button:hover {
  background: #e07a45;
}

/* --- Footer --- */
.page-footer {
  background: transparent;
  border-top: 1px solid rgba(28, 28, 28, 0.28);
  padding: 52px 2.41% 118px;
}
.footer-inner {
  max-width: 1660px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  text-align: left;
}
.footer-brand svg {
  fill: #333;
  display: block;
}
.footer-copyright {
  font-size: 14px;
  font-weight: 250;
  color: rgba(51, 51, 51, 0.5);
  line-height: 1.5;
  text-align: left;
  display: block;
  max-width: 100%;
}
.footer-icp {
  color: #333;
  text-decoration: underline;
}
.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.btn-footer {
  display: inline-flex;
  padding: 14px 20px;
  align-items: center;
  gap: 10px;
  border-radius: 20px;
  border: 0.8px solid rgba(51, 51, 51, 0.2);
  background: rgba(51, 51, 51, 0.05);
  font-size: 12px;
  font-weight: 400;
  color: #333;
  letter-spacing: 0.6px;
  transition: background 0.2s;
}
.btn-footer:hover {
  background: rgba(51, 51, 51, 0.1);
}

/* --- Subpage card shell (mirrors ldcms .subpage-shell / .subpage-card) --- */
.subpage-shell {
  min-height: 100vh;
  padding: 0 0 54px;
  background: #060401;
}
.subpage-card {
  width: min(100%, 2040px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0 0 68px 68px;
  background: #FFFAF0;
  color: #1c1c1c;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .subpage-card {
    width: min(94%, 1760px);
    border-radius: 0 0 32px 32px;
  }
  .contactus-hero {
    min-height: 200px;
    padding: 40px 20px;
    gap: 16px;
  }
  .contactus-hero-title {
    font-size: 32px;
  }
  .contactus-hero-tagline {
    font-size: 14px;
  }
  .contactus-main {
    padding: 0 20px 60px;
  }
  .contactus-field-half {
    width: 100%;
  }
  .contactus-phone-row {
    flex-direction: column;
  }
  .contactus-phone-code {
    width: 100%;
  }
  .page-footer {
    padding: 48px 20px 40px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
}
