/* ============================================================
   CONTACT US — page-specific styles
   Matches the visual language of host-your-event-figma.css:
   - Hero: centered STIX 64/80 title on cream background
   - Form: tan #BEA884 block with white inputs + maroon accents
   - Mobile: cream #f0eade form block
============================================================ */

/* Reset base styles.css padding so per-section values control spacing. */
body[data-page="contact-us"] section,
body[data-page="contact-us"] [class*="__inner"] {
  padding-top: 0;
  padding-bottom: 0;
  gap: 0;
  min-height: 0;
}
body[data-page="contact-us"] {
  background: #FAFAFA;
}

/* ============ HERO ============ */
body[data-page="contact-us"] .cu-hero {
  position: relative;
  width: 100%;
  background: #f0eade;
  padding: min(120px, calc(120 / 1920 * 100vw)) 0 min(80px, calc(80 / 1920 * 100vw));
  text-align: center;
}
body[data-page="contact-us"] .cu-hero__inner {
  width: min(1622px, calc(1622 / 1920 * 100vw));
  margin: 0 auto;
}
body[data-page="contact-us"] .cu-hero__title {
  margin: 0;
  font-family: 'STIX Two Text', serif;
  font-weight: 500;
  font-size: min(64px, calc(64 / 1920 * 100vw));
  line-height: calc(80 / 64);
  color: #5E2A29;
}

/* ============ GET IN TOUCH form ============ */
body[data-page="contact-us"] .cu-form {
  position: relative;
  width: 100%;
  background: #BEA884;
  padding: min(80px, calc(80 / 1920 * 100vw)) 0 min(80px, calc(80 / 1920 * 100vw));
}
body[data-page="contact-us"] .cu-form__inner {
  width: min(1622px, calc(1622 / 1920 * 100vw));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
body[data-page="contact-us"] .cu-form__heading {
  margin: 0;
  font-family: 'STIX Two Text', serif;
  font-weight: 500;
  font-size: min(52px, calc(52 / 1920 * 100vw));
  line-height: calc(58 / 52);
  color: #FFFFFF;
}
body[data-page="contact-us"] .cu-form__subheading {
  margin: min(16px, calc(16 / 1920 * 100vw)) 0 0;
  font-family: 'STIX Two Text', serif;
  font-style: italic;
  font-weight: 400;
  font-size: min(24px, calc(24 / 1920 * 100vw));
  line-height: calc(36 / 24);
  color: #FFFFFF;
}
body[data-page="contact-us"] .cu-form__body {
  margin: min(12px, calc(12 / 1920 * 100vw)) 0 min(40px, calc(40 / 1920 * 100vw));
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: min(20px, calc(20 / 1920 * 100vw));
  line-height: calc(36 / 20);
  color: #FFFFFF;
  max-width: min(847px, calc(847 / 1920 * 100vw));
}

body[data-page="contact-us"] .cu-form__form {
  display: flex;
  flex-direction: column;
  gap: min(28px, calc(28 / 1920 * 100vw));
  width: 100%;
}
body[data-page="contact-us"] .cu-form__row {
  display: flex;
  gap: min(19px, calc(19 / 1920 * 100vw));
}
body[data-page="contact-us"] .cu-form__row--full {
  display: block;
}
body[data-page="contact-us"] .cu-form__field {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  gap: min(8px, calc(8 / 1920 * 100vw));
}
body[data-page="contact-us"] .cu-form__field--full {
  width: 100%;
}
body[data-page="contact-us"] .cu-form__label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: min(14px, calc(14 / 1920 * 100vw));
  line-height: calc(20 / 14);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
}
body[data-page="contact-us"] .cu-form__req {
  color: #5E2A29;
  margin-left: 4px;
}
body[data-page="contact-us"] .cu-form__input {
  width: 100%;
  height: min(56px, calc(56 / 1920 * 100vw));
  background: #FFFFFF;
  border: 1px solid #CCCCCC;
  border-radius: min(8px, calc(8 / 1920 * 100vw));
  padding: 0 min(16px, calc(16 / 1920 * 100vw));
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: min(16px, calc(16 / 1920 * 100vw));
  line-height: calc(24 / 16);
  color: #282828;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
body[data-page="contact-us"] .cu-form__input::placeholder {
  color: #666666;
}
body[data-page="contact-us"] .cu-form__input--full {
  width: 100%;
}
body[data-page="contact-us"] .cu-form__input:focus {
  border-color: #5E2A29;
  box-shadow: 0 0 0 2px rgba(94, 42, 41, 0.15);
}
/* Native select: keep right padding for the chevron, supply our own arrow. */
body[data-page="contact-us"] .cu-form__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: min(44px, calc(44 / 1920 * 100vw));
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%235E2A29' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right min(16px, calc(16 / 1920 * 100vw)) center;
  background-size: 12px 8px;
  cursor: pointer;
}
body[data-page="contact-us"] .cu-form__textarea {
  width: 100%;
  min-height: min(160px, calc(160 / 1920 * 100vw));
  background: #FFFFFF;
  border: 1px solid #CCCCCC;
  border-radius: min(8px, calc(8 / 1920 * 100vw));
  padding: min(16px, calc(16 / 1920 * 100vw)) min(20px, calc(20 / 1920 * 100vw));
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: min(16px, calc(16 / 1920 * 100vw));
  line-height: calc(28 / 16);
  color: #282828;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
body[data-page="contact-us"] .cu-form__textarea::placeholder {
  color: #666666;
}
body[data-page="contact-us"] .cu-form__textarea:focus {
  border-color: #5E2A29;
  box-shadow: 0 0 0 2px rgba(94, 42, 41, 0.15);
}

/* Conditional sub-group fieldsets — slightly indented, inset card. */
body[data-page="contact-us"] .cu-form__group {
  margin: 0;
  padding: min(28px, calc(28 / 1920 * 100vw)) min(28px, calc(28 / 1920 * 100vw));
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: min(12px, calc(12 / 1920 * 100vw));
  display: flex;
  flex-direction: column;
  gap: min(20px, calc(20 / 1920 * 100vw));
  background: rgba(255, 255, 255, 0.06);
}
body[data-page="contact-us"] .cu-form__group[hidden] {
  display: none;
}
body[data-page="contact-us"] .cu-form__group-heading {
  margin: 0 0 min(8px, calc(8 / 1920 * 100vw));
  padding: 0;
  font-family: 'STIX Two Text', serif;
  font-weight: 500;
  font-size: min(28px, calc(28 / 1920 * 100vw));
  line-height: calc(36 / 28);
  color: #FFFFFF;
}

/* Submit pill — same maroon-on-white as host-your-event. */
body[data-page="contact-us"] .cu-form__submit {
  align-self: center;
  margin-top: min(20px, calc(20 / 1920 * 100vw));
  width: min(220px, calc(220 / 1920 * 100vw));
  height: min(60px, calc(60 / 1920 * 100vw));
  background: #FFFFFF;
  color: #5E2A29;
  border: 0;
  border-radius: 40px;
  padding: min(10px, calc(10 / 1920 * 100vw)) min(20px, calc(20 / 1920 * 100vw));
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: min(12px, calc(12 / 1920 * 100vw));
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
body[data-page="contact-us"] .cu-form__submit-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: min(16px, calc(16 / 1920 * 100vw));
  line-height: calc(20 / 16);
  color: #5E2A29;
  white-space: nowrap;
}
body[data-page="contact-us"] .cu-form__submit-arrow {
  width: min(20px, calc(20 / 1920 * 100vw));
  height: min(20px, calc(20 / 1920 * 100vw));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
body[data-page="contact-us"] .cu-form__submit:hover {
  background: #5E2A29;
}
body[data-page="contact-us"] .cu-form__submit:disabled,
body[data-page="contact-us"] .cu-form__submit[disabled] {
  cursor: wait;
  opacity: 0.7;
}
body[data-page="contact-us"] .cu-form__submit:disabled:hover {
  background: #FFFFFF;
}
body[data-page="contact-us"] .cu-form__submit:disabled:hover .cu-form__submit-label {
  color: #5E2A29;
}
body[data-page="contact-us"] .cu-form__submit:hover .cu-form__submit-label {
  color: #FFFFFF;
}
body[data-page="contact-us"] .cu-form__submit:hover .cu-form__submit-arrow {
  transform: translateX(3px);
}
body[data-page="contact-us"] .cu-form__submit:hover .cu-form__submit-arrow rect {
  fill: #FFFFFF;
}
body[data-page="contact-us"] .cu-form__submit:hover .cu-form__submit-arrow path {
  stroke: #5E2A29;
}

/* Error banner — shown on validation failure, auto-dismisses after ~5s. */
body[data-page="contact-us"] .cu-form__error {
  margin-top: min(20px, calc(20 / 1920 * 100vw));
  padding: min(16px, calc(16 / 1920 * 100vw)) min(20px, calc(20 / 1920 * 100vw));
  background: #FFFFFF;
  border-left: min(4px, calc(4 / 1920 * 100vw)) solid #B3261E;
  border-radius: min(8px, calc(8 / 1920 * 100vw));
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
body[data-page="contact-us"] .cu-form__error--show {
  opacity: 1;
  transform: translateY(0);
}
body[data-page="contact-us"] .cu-form__error--fade {
  opacity: 0;
  transform: translateY(-6px);
}
body[data-page="contact-us"] .cu-form__error-text {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: min(15px, calc(15 / 1920 * 100vw));
  line-height: calc(22 / 15);
  color: #B3261E;
}

/* Confirmation panel — replaces the form after submit. */
body[data-page="contact-us"] .cu-form__confirmation {
  margin-top: min(40px, calc(40 / 1920 * 100vw));
  padding: min(32px, calc(32 / 1920 * 100vw));
  background: #FFFFFF;
  border-radius: min(12px, calc(12 / 1920 * 100vw));
  text-align: center;
}
body[data-page="contact-us"] .cu-form__confirmation-text {
  margin: 0;
  font-family: 'STIX Two Text', serif;
  font-weight: 500;
  font-style: italic;
  font-size: min(28px, calc(28 / 1920 * 100vw));
  line-height: calc(40 / 28);
  color: #5E2A29;
}

/* Email + Phone block — sits below the form. */
body[data-page="contact-us"] .cu-form__contact {
  margin-top: min(40px, calc(40 / 1920 * 100vw));
  display: flex;
  flex-direction: column;
  gap: min(8px, calc(8 / 1920 * 100vw));
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: min(18px, calc(18 / 1920 * 100vw));
  line-height: calc(28 / 18);
  color: #FFFFFF;
}
body[data-page="contact-us"] .cu-form__contact-row {
  margin: 0;
}
body[data-page="contact-us"] .cu-form__contact-label {
  font-weight: 600;
  margin-right: 6px;
}
body[data-page="contact-us"] .cu-form__contact a {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body[data-page="contact-us"] .cu-form__contact a:hover {
  color: #5E2A29;
}

/* ============================================================
   MOBILE — ≤768px
============================================================ */
@media (max-width: 768px) {
  body[data-page="contact-us"] .cu-hero {
    padding: min(72px, calc(72 / 390 * 100vw)) min(24px, calc(24 / 390 * 100vw)) min(48px, calc(48 / 390 * 100vw));
  }
  body[data-page="contact-us"] .cu-hero__inner {
    width: 100%;
  }
  body[data-page="contact-us"] .cu-hero__title {
    font-size: 36px;
    line-height: 1.15;
  }

  body[data-page="contact-us"] .cu-form {
    background: #f0eade;
    padding: min(48px, calc(48 / 390 * 100vw)) min(24px, calc(24 / 390 * 100vw)) min(56px, calc(56 / 390 * 100vw));
  }
  body[data-page="contact-us"] .cu-form__inner {
    width: 100%;
  }
  body[data-page="contact-us"] .cu-form__heading {
    font-size: 28px;
    line-height: 1.15;
    color: #5E2A29;
  }
  body[data-page="contact-us"] .cu-form__subheading {
    font-size: 18px;
    line-height: 26px;
    color: #5E2A29;
    margin-top: 12px;
  }
  body[data-page="contact-us"] .cu-form__body {
    font-size: 14px;
    line-height: 24px;
    color: #282828;
    margin-top: 8px;
    margin-bottom: 24px;
    max-width: 100%;
  }
  body[data-page="contact-us"] .cu-form__form {
    gap: 16px;
  }
  body[data-page="contact-us"] .cu-form__row {
    flex-direction: column;
    gap: 16px;
  }
  body[data-page="contact-us"] .cu-form__field {
    gap: 6px;
  }
  body[data-page="contact-us"] .cu-form__label {
    color: #5E2A29;
    font-size: 13px;
  }
  body[data-page="contact-us"] .cu-form__input,
  body[data-page="contact-us"] .cu-form__input--full {
    height: 48px;
    font-size: 16px; /* keep ≥16 to avoid iOS zoom-on-focus */
    line-height: 24px;
    border-radius: 8px;
  }
  body[data-page="contact-us"] .cu-form__textarea {
    min-height: 140px;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 24px;
  }
  body[data-page="contact-us"] .cu-form__group {
    border-color: rgba(94, 42, 41, 0.25);
    background: rgba(255, 255, 255, 0.4);
    padding: 20px 16px;
    gap: 14px;
  }
  body[data-page="contact-us"] .cu-form__group-heading {
    font-size: 22px;
    color: #5E2A29;
  }
  body[data-page="contact-us"] .cu-form__submit {
    width: 100%;
    max-width: 280px;
    height: 48px;
    margin-top: 8px;
    background: #5E2A29;
  }
  body[data-page="contact-us"] .cu-form__submit-label {
    color: #FFFFFF;
    font-size: 14px;
  }
  body[data-page="contact-us"] .cu-form__submit-arrow {
    width: 18px;
    height: 18px;
  }
  body[data-page="contact-us"] .cu-form__submit-arrow rect {
    fill: #FFFFFF;
  }
  body[data-page="contact-us"] .cu-form__submit-arrow path {
    stroke: #5E2A29;
  }
  body[data-page="contact-us"] .cu-form__error {
    padding: 14px 16px;
    margin-top: 16px;
    border-left-width: 4px;
  }
  body[data-page="contact-us"] .cu-form__error-text {
    font-size: 14px;
    line-height: 20px;
  }
  body[data-page="contact-us"] .cu-form__confirmation {
    padding: 24px 20px;
    margin-top: 24px;
  }
  body[data-page="contact-us"] .cu-form__confirmation-text {
    font-size: 20px;
    line-height: 28px;
  }
  body[data-page="contact-us"] .cu-form__contact {
    margin-top: 28px;
    color: #282828;
    font-size: 16px;
    line-height: 24px;
  }
  body[data-page="contact-us"] .cu-form__contact a {
    color: #5E2A29;
  }
}
