/* =============================================================================
   TOURBIRTH — REQUEST INVITATION PAGE STYLES
   css/pages/invitation.css
   Page-specific overrides for invitation.html.
   Sections: Hero · Form Section · Form Rows · Below-form Notes
   All values from variables.css — no hardcoded values.
   ============================================================================= */

/* ---------------------------------------------------------------------------
   Invitation Hero — centered, minimal, obsidian
   .invitation-hero keeps hero content centred rather than left-aligned.
--------------------------------------------------------------------------- */

.invitation-hero .hero-content {
  text-align:     center;
  align-items:    center;
  display:        flex;
  flex-direction: column;
}

.invitation-hero .hero-content .gold-rule--short {
  margin-inline: auto;
}

.invitation-hero .lead {
  margin-inline: auto;
}

/* ---------------------------------------------------------------------------
   TASK 4 — HERO VARIANT: Formal, ceremonial, centred
   .hero--invitation centres the hero both vertically and horizontally,
   removes the bottom scroll cue (the ceremony needs no prompting),
   and constrains copy width so the headline and lead read as a composed
   formal announcement rather than a left-leaning journey page.
--------------------------------------------------------------------------- */

.hero--invitation {
  align-items:     center;
  justify-content: center;
}

.hero--invitation .hero__content {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  text-align:     center;
  max-width:      640px;
  padding-bottom: 0;
}

.hero--invitation .hero__scroll-cue {
  display: none;
}

/* Section padding override — the obsidian-to-light transition needs less top breath */
.invitation-form-section {
  padding-top: calc(var(--nav-height) + var(--space-sm));
}

/* ---------------------------------------------------------------------------
   Form Section Container — constrained width, centred
--------------------------------------------------------------------------- */

.invitation-form-section .container--form {
  width:         75%;            /* the form now spans ~75% of the screen */
  max-width:     1180px;         /* sane cap on very wide monitors */
  margin-inline: auto;
}

/* Allow the section to use the default .container if --form variant absent */
.invitation-form-section > .container {
  width:         75%;
  max-width:     1180px;
  margin-inline: auto;
}

/* ---------------------------------------------------------------------------
   Form Header
--------------------------------------------------------------------------- */

.invitation-form-header {
  max-width: var(--content-width);
}

.invitation-form-intro {
  font-family:    var(--font-body);
  font-size:      var(--fs-body);
  font-weight:    300;
  line-height:    var(--lh-body);
  letter-spacing: 0.02em;
  color:          var(--charcoal);
}

.invitation-form-intro em {
  font-family: var(--font-display);
  font-style:  italic;
  font-size:   calc(var(--fs-body) * 1.1);
  color:       var(--deep-neutral);
}

/* ---------------------------------------------------------------------------
   Form Row Split — two-column layout on desktop
   Stacks to single column on mobile.
--------------------------------------------------------------------------- */

.form-row {
  width: 100%;
}

.form-row--split {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   0 var(--space-xl);
  align-items:           start;
}

@media (max-width: 640px) {
  .form-row--split {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------------
   Select Wrapper — ensures custom arrow and border sit correctly
--------------------------------------------------------------------------- */

.select-wrapper {
  position: relative;
  width:    100%;
}

.select-wrapper select {
  width: 100%;
}

/* ---------------------------------------------------------------------------
   Radio Fieldset — resets browser fieldset chrome
--------------------------------------------------------------------------- */

.form-field--radio fieldset {
  border:  none;
  padding: 0;
  margin:  0;
}

.form-field--radio legend {
  font-family:    var(--font-body);
  font-size:      var(--fs-label);
  font-weight:    400;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color:          var(--sage);
  display:        block;
  margin-bottom:  var(--space-sm);
  padding:        0;
}

/* ---------------------------------------------------------------------------
   Submit field — generous top spacing
--------------------------------------------------------------------------- */

.form-field--submit {
  margin-top:    var(--space-xl);
  margin-bottom: 0;
}

/* ---------------------------------------------------------------------------
   Below-form Text — response note + discretion note
--------------------------------------------------------------------------- */

.invitation-form-footer {
  text-align: center;
}

.invitation-response-note {
  font-family:    var(--font-display);
  font-size:      var(--fs-body);
  font-weight:    300;
  font-style:     italic;
  line-height:    var(--lh-body);
  letter-spacing: 0.02em;
  color:          var(--charcoal);
  margin-bottom:  var(--space-md);
}

.invitation-discretion-note {
  font-family:    var(--font-body);
  font-size:      var(--fs-small);
  font-weight:    300;
  line-height:    var(--lh-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color:          var(--sage);
  opacity:        0.7;
  margin-top:     var(--space-sm);
}

/* ---------------------------------------------------------------------------
   Form Error Banner — top-of-form alert in warm amber tone
--------------------------------------------------------------------------- */

.form-error-banner {
  font-family:    var(--font-body);
  font-size:      var(--fs-small);
  font-weight:    400;
  letter-spacing: 0.06em;
  color:          var(--color-error);
  border:         1px solid color-mix(in srgb, var(--color-error) 30%, transparent);
  border-left:    3px solid var(--color-error);
  background:     color-mix(in srgb, var(--color-error) 6%, transparent);
  padding:        var(--space-sm) var(--space-md);
  margin-bottom:  var(--space-xl);
  opacity:        1;
  max-height:     120px;
  overflow:       hidden;
  transition: opacity var(--transition-medium),
              max-height var(--transition-medium);
}

.form-error-banner--hidden {
  opacity:    0;
  max-height: 0;
  padding:    0;
  margin:     0;
}

/* ---------------------------------------------------------------------------
   Field Error Messages — per-field human copy, Montserrat italic 13px
--------------------------------------------------------------------------- */

.field-error {
  display:        block;
  font-family:    var(--font-body);
  font-size:      var(--fs-small);
  font-weight:    300;
  font-style:     italic;
  letter-spacing: 0.02em;
  color:          var(--color-error);
  margin-top:     var(--space-xs);
  opacity:        1;
  max-height:     40px;
  overflow:       hidden;
  transition: opacity var(--transition-medium),
              max-height var(--transition-medium);
}

.field-error--hidden {
  opacity:    0;
  max-height: 0;
  margin-top: 0;
}

/* Field border turns amber-tinted when there is an active error */
.form-field:has(.field-error:not(.field-error--hidden)) input,
.form-field:has(.field-error:not(.field-error--hidden)) textarea,
.form-field:has(.field-error:not(.field-error--hidden)) select {
  border-bottom-color: var(--color-error);
}

/* ---------------------------------------------------------------------------
   EmailJS inline success block
--------------------------------------------------------------------------- */

.emailjs-success {
  text-align: center;
  padding:    var(--space-2xl) 0;
  animation:  fadeIn var(--dur-slow) var(--ease-luxury) both;
}

.emailjs-success__rule-top {
  width:       80px;
  margin:      0 auto var(--space-xl);
}

.emailjs-success__rule-bottom {
  width:       40px;
  margin:      var(--space-xl) auto;
}

.emailjs-success__heading {
  font-family:    var(--font-display);
  font-size:      clamp(2.5rem, 4vw, 3.5rem);
  font-weight:    300;
  line-height:    var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color:          var(--deep-neutral);
  margin-bottom:  var(--space-md);
}

.emailjs-success__body {
  font-family:    var(--font-body);
  font-size:      1rem;
  font-weight:    300;
  line-height:    1.9;
  letter-spacing: 0.02em;
  color:          var(--sage);
  max-width:      520px;
  margin-inline:  auto;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------------
   Responsive adjustments
--------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .invitation-form-section .container--form,
  .invitation-form-section > .container {
    width:     100%;
    max-width: 100%;
  }
}

/* ---------------------------------------------------------------------------
   "After You Apply" — 3 steps spread evenly across the full width
--------------------------------------------------------------------------- */
.home-day__moments--three {
  grid-template-columns: repeat(3, 1fr) !important;
  gap:                   clamp(1.75rem, 4vw, 3.5rem);
}
.home-day__moments--three .home-day__moment {
  max-width: none;
}
@media (max-width: 760px) {
  .home-day__moments--three {
    grid-template-columns: 1fr !important;
  }
}
