/* ==========================================================
   WINTER WATERCOLOR RECEPTION THEME
   ========================================================== */
[hidden] {
  display: none !important;
}
:root {
  --page: #e6ecee;
  --page-deep: #dbe4e7;

  --paper: rgba(248, 250, 249, 0.97);
  --paper-solid: #f8faf9;
  --paper-blue: #eff4f5;

  --ink: #536571;
  --ink-dark: #3d515e;
  --muted: #7d8b92;

  --pine: #314b46;
  --pine-dark: #253b38;
  --pine-soft: #617a74;

  --blue: #849aa5;
  --blue-dark: #6c838e;
  --blue-soft: #c8d4d8;

  --line: rgba(77, 101, 112, 0.2);

  --error: #944940;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;

  --shadow:
    0 28px 80px rgba(43, 64, 74, 0.13),
    0 3px 12px rgba(43, 64, 74, 0.06);
}


/* ==========================================================
   BASE
   ========================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  min-height: 100vh;

  color: var(--ink);

  font-family: var(--sans);

  background:
    radial-gradient(
      ellipse at 15% 8%,
      rgba(255, 255, 255, 0.94),
      transparent 34%
    ),
    radial-gradient(
      ellipse at 83% 22%,
      rgba(169, 190, 198, 0.28),
      transparent 37%
    ),
    radial-gradient(
      ellipse at 40% 75%,
      rgba(114, 145, 153, 0.13),
      transparent 42%
    ),
    linear-gradient(
      180deg,
      #edf2f3 0%,
      var(--page) 50%,
      var(--page-deep) 100%
    );
}

button,
input {
  font: inherit;
}


/* ==========================================================
   PAGE
   ========================================================== */

.page-shell {
  min-height: 100vh;

  display: grid;
  place-items: start center;

  padding: 42px 20px 70px;
}

.survey-card {
  width: min(100%, 820px);

  overflow: hidden;

  background: var(--paper);

  border: 1px solid rgba(95, 117, 126, 0.16);

  border-radius: 3px;

  box-shadow: var(--shadow);
}


.rsvp-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  margin: 0 auto;
}

.rsvp-title-row .rsvp-script {
  flex: 0 0 auto;
}

.rsvp-title-line {
  display: block;
  width: clamp(36px, 9vw, 100px);
  height: 1px;

  background: linear-gradient(
    to right,
    transparent,
    var(--ink-dark)
  );

  opacity: 0.85;
}

.rsvp-title-line:last-child {
  transform: scaleX(-1);
}

.dietary-field {
  margin-top: 24px;
}

.dietary-field label {
  display: block;
  margin-bottom: 9px;
  text-align: left;
}

.dietary-field textarea {
  width: 100%;
  min-height: 96px;
  padding: 14px 15px;

  border: 1px solid #cbd6da;
  border-radius: 2px;
  outline: none;

  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-dark);

  font-family: var(--serif);
  font-size: 0.96rem;
  line-height: 1.5;

  resize: vertical;

  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.dietary-field textarea::placeholder {
  color: #9ca8ad;
}

.dietary-field textarea:focus {
  border-color: var(--blue-dark);
  background: #fff;

  box-shadow:
    0 0 0 3px rgba(132, 154, 165, 0.12);
}

.field-hint {
  display: block;
  margin-top: 6px;

  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.76rem;
}
/* ==========================================================
   HERO
   ========================================================== */

.hero-banner {
  position: relative;

  min-height: 470px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  padding: 70px 48px;

  text-align: center;

  /*
    Your 1920 x 1080 invitation artwork.
  */
  background-image:
    url("images/winter-background.jpg");

  background-size: cover;

  /*
    Because the useful mountain/forest artwork is
    likely toward the lower half, center-bottom is
    a good default.
  */
  background-position: center bottom;

  background-repeat: no-repeat;

  border-bottom: 1px solid var(--line);
}


/*
  Soft wash behind the title.

  The middle is lighter for readability while the
  watercolor remains more visible toward the edges.
*/

.hero-overlay {
  position: absolute;

  z-index: 1;

  inset: 0;

  pointer-events: none;

  background:
    radial-gradient(
      ellipse at center,
      rgba(245, 248, 248, 0.79) 0%,
      rgba(242, 247, 247, 0.66) 31%,
      rgba(235, 242, 243, 0.42) 52%,
      rgba(218, 230, 233, 0.12) 77%,
      rgba(208, 220, 224, 0.02) 100%
    );
}


/* ---------- Hero Content ---------- */

.hero-content {
  position: relative;

  z-index: 2;

  width: min(100%, 680px);

  padding: 100px 38px;

  background:
    rgba(246, 249, 249, 0.2);

  backdrop-filter: blur(0.8px);
  -webkit-backdrop-filter: blur(0.8px);
}

.hero-content h1.rsvp-script {
  margin: 0;
  color: var(--ink-dark);
  font-family: 'Cinzel' , cursive;
  font-size: clamp(1.4rem, 4vw, 4rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
}

.hero-kicker {
  margin: 0 0 34px;

  color: var(--ink);

  font-family: var(--serif);

  font-size: 0.82rem;
  font-weight: 600;

  letter-spacing: 0.42em;

  text-transform: uppercase;
}


.hero-content h1 {
  margin: 0;

  color: var(--ink-dark);

  font-family: var(--serif);

  font-size: clamp(2.4rem, 5.5vw, 4.2rem);

  font-weight: 500;

  line-height: 1.08;

  letter-spacing: 0.07em;

  text-transform: uppercase;
}

.hero-content h1 span {
  display: block;
}



/* ---------- Hero Divider ---------- */

.hero-divider {
  width: 150px;

  display: grid;

  grid-template-columns:
    1fr auto 1fr;

  align-items: center;

  gap: 12px;

  margin:
    29px auto
    27px;

  color: var(--blue-dark);
}

.hero-divider span:not(.divider-mark) {
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--blue-dark)
    );
}

.hero-divider span:last-child {
  background:
    linear-gradient(
      90deg,
      var(--blue-dark),
      transparent
    );
}

.divider-mark {
  font-size: 0.32rem;
}

.hero-subtitle {
  max-width: 485px;

  margin: 0 auto;

  color: var(--ink);

  font-family: var(--serif);

  font-size: 1rem;

  line-height: 1.8;

  letter-spacing: 0.08em;
}


.section-kicker-decorated {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.section-kicker-decorated .section-kicker {
  margin: 0;
}


.section-kicker-decorated > span {
  display: block;
  width: 24px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--ink-dark)
  );
  opacity: 0.65;
}

/* Reverse the gradient on the right-hand line */
.section-kicker-decorated > span:last-child {
  transform: scaleX(-1);
}


/* ==========================================================
   FORM LAYOUT
   ========================================================== */

.content-shell {
  padding: 0 64px 68px;
}

form {
  margin: 0;
}

.form-section {
  padding: 48px 0;

  border-top: 1px solid var(--line);
}

.form-section:first-child {
  border-top: 0;
}

.section-heading {
  margin-bottom: 31px;

  text-align: center;
}

.section-kicker {
  margin: 0 0 9px;

  color: var(--blue-dark);

  font-family: var(--serif);

  font-size: 0.7rem;
  font-weight: 600;

  letter-spacing: 0.31em;

  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;

  color: var(--ink-dark);

  font-family: var(--serif);

  font-size: 2.15rem;

  font-weight: 500;

  line-height: 1;

  letter-spacing: 0.11em;

  text-transform: uppercase;
}

.section-heading > p:last-child {
  margin: 12px 0 0;

  color: var(--muted);

  font-family: var(--serif);

  font-size: 0.94rem;

  line-height: 1.5;

  letter-spacing: 0.035em;
}


/* ==========================================================
   INPUTS
   ========================================================== */

.field-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 22px;
}

.full-width {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
}

label,
legend {
  color: var(--ink-dark);

  font-family: var(--serif);

  font-size: 0.96rem;
  font-weight: 600;

  letter-spacing: 0.055em;
}

input[type="text"],
input[type="email"] {
  width: 100%;

  margin-top: 9px;

  padding: 14px 15px;

  border: 1px solid #cbd6da;

  border-radius: 2px;

  outline: none;

  background: rgba(255, 255, 255, 0.72);

  color: var(--ink-dark);

  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder {
  color: #9ca8ad;
}

input[type="text"]:focus,
input[type="email"]:focus {
  border-color: var(--blue-dark);

  background: #fff;

  box-shadow:
    0 0 0 3px rgba(132, 154, 165, 0.12);
}

input.invalid {
  border-color: var(--error);
}

.field-error {
  min-height: 18px;

  margin: 6px 0 0;

  color: var(--error);

  font-size: 0.76rem;
}


/* ==========================================================
   CHOICES
   ========================================================== */

.choice-group {
  min-width: 0;

  margin: 0;

  padding: 0;

  border: 0;
}

.choice-group + .choice-group {
  margin-top: 30px;
}

.choice-group legend {
  width: 100%;

  margin-bottom: 15px;

  text-align: center;
}

.choice-row {
  display: grid;

  gap: 12px;
}

.choice-row.compact {
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  max-width: 380px;

  margin: 0 auto;
}

.meal-options {
  display: grid;

  gap: 12px;
}

.choice-card {
  position: relative;

  display: flex;
  align-items: flex-start;

  gap: 14px;

  padding: 18px 19px;

  border: 1px solid #d1dbde;

  border-radius: 2px;

  background:
    rgba(255, 255, 255, 0.62);

  cursor: pointer;

  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.choice-card:hover {
  border-color: #99acb3;

  background:
    rgba(248, 251, 251, 0.97);
}

.choice-card:has(input:checked) {
  border-color: var(--pine-soft);

  background: #edf4f1;

  box-shadow:
    inset 3px 0 0 var(--pine);
}

.choice-card input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}

.choice-indicator {
  width: 17px;
  height: 17px;

  flex: 0 0 17px;

  margin-top: 2px;

  border: 1.5px solid #9ba9ae;

  border-radius: 50%;

  background: #fff;
}

.choice-card input:checked + .choice-indicator {
  border: 5px solid var(--pine);
}

.choice-copy {
  display: flex;
  flex-direction: column;

  gap: 5px;
}

.choice-copy strong {
  color: var(--ink-dark);

  font-family: var(--serif);

  font-size: 1.23rem;
  font-weight: 600;

  line-height: 1.1;
}

.choice-copy small {
  color: var(--muted);

  font-family: var(--serif);

  font-size: 0.84rem;

  line-height: 1.5;
}

.choice-row.compact .choice-copy strong {
  font-size: 1rem;
}


/* ==========================================================
   CONDITIONAL PANELS
   ========================================================== */

.conditional-panel {
  margin-top: 24px;

  padding: 22px;

  border: 1px solid
    rgba(108, 137, 143, 0.2);

  border-radius: 2px;

  background:
    rgba(235, 242, 241, 0.65);
}

.conditional-panel[hidden] {
  display: none;
}

#plusOneMealSection {
  margin-top: 32px;
}


/* ==========================================================
   SUBMIT
   ========================================================== */

.form-footer {
  padding-top: 18px;

  text-align: center;
}

button[type="submit"] {
  min-width: 245px;

  padding: 15px 28px;

  border: 1px solid var(--pine);

  border-radius: 2px;

  background: var(--pine);

  color: #f8faf7;

  font-family: var(--serif);

  font-size: 0.82rem;
  font-weight: 600;

  letter-spacing: 0.22em;

  text-transform: uppercase;

  cursor: pointer;

  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

button[type="submit"]:hover {
  background: var(--pine-dark);

  transform: translateY(-1px);

  box-shadow:
    0 8px 22px
    rgba(39, 61, 57, 0.2);
}

button[type="submit"]:disabled {
  opacity: 0.7;

  cursor: wait;

  transform: none;
}

.button-spinner {
  display: none;

  width: 15px;
  height: 15px;

  margin-left: 8px;

  border: 2px solid
    rgba(255, 255, 255, 0.35);

  border-top-color: #fff;

  border-radius: 50%;

  animation: spin 0.7s linear infinite;
}

button.is-loading .button-spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.privacy-note {
  max-width: 500px;

  margin: 20px auto 0;

  color: var(--muted);

  font-family: var(--serif);

  font-size: 0.78rem;

  line-height: 1.6;

  letter-spacing: 0.03em;
}
/* ==========================================================
   RSVP BUTTONS
   ========================================================== */

.rsvp-actions {
  margin-top: 28px;

  padding-top: 28px;

  border-top: 1px solid var(--line);

  text-align: center;
}

.rsvp-prompt {
  margin: 0 0 18px;

  color: var(--ink-dark);

  font-family: var(--serif);

  font-size: 1.05rem;

  letter-spacing: 0.05em;
}

.rsvp-buttons {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 12px;
}

.rsvp-button {
  padding: 15px 18px;

  border-radius: 2px;

  font-family: var(--serif);

  font-size: 0.9rem;
  font-weight: 600;

  letter-spacing: 0.08em;

  cursor: pointer;

  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.rsvp-accept {
  border: 1px solid var(--pine);

  background: var(--pine);

  color: #fff;
}

.rsvp-accept:hover,
.rsvp-accept.is-selected {
  background: var(--pine-dark);
}

.rsvp-decline {
  border: 1px solid var(--blue-dark);

  background: transparent;

  color: var(--ink-dark);
}

.rsvp-decline:hover,
.rsvp-decline.is-selected {
  background: var(--paper-blue);
}

.rsvp-button:hover {
  transform: translateY(-1px);
}

.rsvp-button:disabled {
  opacity: 0.65;

  cursor: wait;

  transform: none;
}


@media (max-width: 520px) {

  .rsvp-buttons {
    grid-template-columns: 1fr;
  }

}

/* ==========================================================
   SUCCESS
   ========================================================== */

.success-message {
  padding: 74px 20px 30px;

  text-align: center;
}

.success-message[hidden] {
  display: none;
}

.success-icon {
  display: grid;

  width: 52px;
  height: 52px;

  place-items: center;

  margin: 0 auto 26px;

  border: 1px solid var(--pine-soft);

  border-radius: 50%;

  color: var(--pine);

  font-size: 1.2rem;
}

.success-kicker {
  margin: 0 0 12px;

  color: var(--blue-dark);

  font-family: var(--serif);

  font-size: 0.73rem;

  font-weight: 600;

  letter-spacing: 0.3em;

  text-transform: uppercase;
}

.success-message h2 {
  max-width: 520px;

  margin: 0 auto;

  color: var(--ink-dark);

  font-family: var(--serif);

  font-size: 2.15rem;

  font-weight: 500;

  line-height: 1.1;
}

.success-message > p:last-child {
  margin: 18px 0 0;

  color: var(--muted);

  font-family: var(--serif);
}


/* ==========================================================
   ACCESSIBILITY
   ========================================================== */

.choice-card:has(input:focus-visible),
button:focus-visible,
input:focus-visible {
  outline: 3px solid
    rgba(132, 153, 164, 0.28);

  outline-offset: 2px;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 720px) {

  .page-shell {
    padding: 0;
  }

  .survey-card {
    min-height: 100vh;

    border: 0;

    border-radius: 0;

    box-shadow: none;
  }

  .hero-banner {
    min-height: 405px;

    padding:
      50px 24px;

    /*
      Landscape source image on a portrait-ish hero:
      preserve the center/bottom landscape.
    */
    background-position:
      center bottom;
  }

  .hero-content {
    padding:
      34px 20px;
  }
  .hero-content h1.rsvp-script {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
  
  .hero-kicker {
    margin-bottom: 28px;

    font-size: 0.69rem;

    letter-spacing: 0.3em;
  }


.hero-content h1 {
  font-size: clamp(2rem, 7.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0.055em;
}


  .hero-divider {
    margin:
      25px auto
      23px;
  }

  .hero-subtitle {
    font-size: 0.92rem;

    letter-spacing: 0.045em;

    line-height: 1.7;
  }

  .content-shell {
    padding:
      0 24px
      46px;
  }

  .form-section {
    padding:
      38px 0;
  }

  .field-grid,
  .choice-row.compact {
    grid-template-columns: 1fr;
  }

  .choice-row.compact {
    max-width: none;
  }

  .section-heading h2 {
    font-size: 1.82rem;

    letter-spacing: 0.09em;
  }

  .choice-copy strong {
    font-size: 1.13rem;
  }
}


/* ==========================================================
   SMALL PHONES
   ========================================================== */

@media (max-width: 420px) {

  .hero-banner {
    min-height: 390px;

    padding:
      44px 20px;
  }

  .hero-content {
    padding:
      30px 16px;
  }


  .hero-content h1 {
    font-size: clamp(1.7rem, 7.5vw, 2rem);
    line-height: 1.12;
    letter-spacing: 0.035em;
  }
  .hero-content h1.rsvp-script {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .hero-kicker {
    letter-spacing: 0.25em;
  }

  .content-shell {
    padding:
      0 20px
      42px;
  }

  .choice-card {
    padding:
      16px 15px;
  }

  button[type="submit"] {
    width: 100%;

    min-width: 0;
  }
}