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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #f4f3ec;
  color: #18382b;
}


/* =========================
   CONTAINER
========================= */

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}


/* =========================
   HERO
========================= */

.hero {
  position: relative;
  min-height: 30vh;

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

  padding: 4rem 20px;

  box-sizing: border-box;

  background:
    linear-gradient(
      rgba(30, 60, 40, 0.55),
      rgba(30, 60, 40, 0.55)
    ),
    url('images/fairyhill.jpg');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: white;
}

.hero-content {
  position: relative;
  z-index: 1;

  text-align: center;
}

.hero-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
}

.hero-date {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}


/* =========================
   RSVP FORM
========================= */

.rsvp-box {
  margin-top: 4rem;
  margin-bottom: 6rem;
}

.guest-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guest-card {
  padding: 2rem;
}


/* =========================
   FAQ-STYLE TITLES
========================= */

.faq-title {
  color: #18382b;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}


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

.input {
  width: 100%;
  box-sizing: border-box;

  padding: 0.85rem 1rem;

  border: 1px solid rgba(24, 56, 43, 0.25);
  border-radius: 2px;

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

  color: #18382b;

  font-family: inherit;
  font-size: 0.9rem;

  outline: none;

  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}

.input:focus {
  border-color: rgba(24, 56, 43, 0.55);
  background: rgba(255, 255, 255, 0.8);
}


/* =========================
   LABELS
========================= */

.rsvp-label {
  display: block;

  margin-top: 1.25rem;
  margin-bottom: 0.45rem;

  color: #18382b;

  font-size: 0.8rem;
  letter-spacing: 0.05em;
}


/* =========================
   FOOD / RADIO OPTIONS
========================= */

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;

  color: rgba(24, 56, 43, 0.78);

  font-size: 0.9rem;
  line-height: 1.5;

  cursor: pointer;
}

.radio-option input {
  accent-color: #18382b;
}


/* =========================
   BUTTON
========================= */

.hero-button {
  display: inline-block;

  padding: 0.85rem 1.6rem;

  border: 1px solid rgba(24, 56, 43, 0.45);
  border-radius: 2px;

  background: transparent;
  color: #18382b;

  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;

  letter-spacing: 0.14em;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.hero-button:hover {
  background: #18382b;
  color: #f4f3ec;
  transform: translateY(-2px);
}


/* =========================
   HIDDEN ELEMENTS
========================= */

.hidden {
  display: none !important;
}


/* =========================
   ERROR MESSAGE
========================= */

.error-msg {
  margin: 0.75rem 0;

  color: #8b3a3a;

  font-size: 0.85rem;
}


/* =========================
   LOGIN MODAL
========================= */

.modal-overlay {
  position: fixed;
  inset: 0;

  z-index: 5000;

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

  padding: 20px;

  box-sizing: border-box;

  background:
    linear-gradient(
      rgba(16, 43, 32, 0.72),
      rgba(16, 43, 32, 0.72)
    );

  backdrop-filter: blur(6px);
}

.modal-card {
  width: min(100%, 480px);

  box-sizing: border-box;

  padding: 3rem;

  background:
    linear-gradient(
      135deg,
      #f4f3ec 0%,
      #eeeee6 50%,
      #e7e8df 100%
    );

  border: 1px solid rgba(24, 56, 43, 0.15);

  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.2);

  text-align: center;

  color: #18382b;
}

.modal-card h2 {
  margin: 0.75rem 0 1rem;

  font-size: 1.8rem;
  font-weight: 400;
}

.modal-text {
  margin-bottom: 1.5rem;

  color: rgba(24, 56, 43, 0.7);

  font-size: 0.9rem;
  line-height: 1.7;
}

.hidden-modal {
  display: none !important;
}


/* =========================
   FOOTER
========================= */

footer {
  padding: 3rem 20px;

  text-align: center;

  background: #102b20;
  color: rgba(255, 255, 255, 0.75);

  font-size: 0.8rem;
  letter-spacing: 0.08em;
}


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

@media (max-width: 700px) {

  .container {
    width: 92%;
  }

  .hero {
    min-height: 40vh;
    padding: 5rem 20px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .hero-subtitle {
    font-size: 0.7rem;
  }

  .hero-date {
    font-size: 0.8rem;
  }

  .guest-card {
    padding: 1.5rem;
  }

  .modal-card {
    padding: 2rem 1.5rem;
  }

  .input {
    font-size: 16px;
  }

  .radio-option {
    align-items: flex-start;
  }
}
/* =========================================================
   RSVP PAGE — WEDDING THEME
   ========================================================= */

/* ---------------------------------------------------------
   PAGE
   --------------------------------------------------------- */

body {
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(126, 139, 82, 0.10),
      transparent 40%
    ),
    linear-gradient(
      135deg,
      #f4f3ec 0%,
      #eeeee6 50%,
      #e7e8df 100%
    );

  color: #18382b;
}


/* ---------------------------------------------------------
   RSVP HERO
   --------------------------------------------------------- */

body > .hero {
  min-height: 55vh;

  padding-top: 7rem;
  padding-bottom: 5rem;

  position: relative;
  overflow: hidden;

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

  color: white;

  background: transparent;
}

/* Moving hero image */

body > .hero::after {
  content: "";

  position: absolute;
  top: -5%;
  bottom: -5%;
  left: -6%;
  right: -6%;

  background-image:
    linear-gradient(
      rgba(30, 60, 40, 0.58),
      rgba(30, 60, 40, 0.58)
    ),
    url("images/fairyhill.jpg");

  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;

  z-index: 0;

  animation: rsvpHeroPan 35s linear infinite alternate;
}

@keyframes rsvpHeroPan {
  from {
    transform: scale(1.06);
    background-position: left center;
  }

  to {
    transform: scale(1.06);
    background-position: right center;
  }
}

body > .hero > * {
  position: relative;
  z-index: 1;
}


/* ---------------------------------------------------------
   MAIN RSVP CONTAINER
   --------------------------------------------------------- */

body > .container {
  width: 90%;
  max-width: 1200px;

  margin: 0 auto;

  padding-top: 2rem;
  padding-bottom: 2rem;
}


/* ---------------------------------------------------------
   INTRO / ERROR
   --------------------------------------------------------- */

#errorMsg {
  margin-bottom: 2rem;
}

.error-msg {
  color: #8b3f3f;

  font-size: 0.85rem;
  line-height: 1.6;

  text-align: center;
}


/* ---------------------------------------------------------
   RSVP FORM
   --------------------------------------------------------- */

.rsvp-box {
  width: 100%;
  max-width: 1000px;

  margin: 0 auto;

  box-sizing: border-box;
}


/* ---------------------------------------------------------
   INTRODUCTORY TEXT
   --------------------------------------------------------- */

#guestFields > .guest-stack > p {
  max-width: 750px;

  margin-left: auto;
  margin-right: auto;

  color: rgba(24, 56, 43, 0.72);

  font-size: 0.95rem;
  line-height: 1.75;

  text-align: center;
}


/* ---------------------------------------------------------
   GUEST STACK
   --------------------------------------------------------- */

.guest-stack {
  width: 100%;
}

.guest-stack > .guest-card {
  margin-bottom: 2rem;
}


/* ---------------------------------------------------------
   GUEST CARD
   --------------------------------------------------------- */

.schedule-card.guest-card {
  box-sizing: border-box;

  width: 100%;

  padding: 2.5rem;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.72),
      rgba(244,243,236,0.52)
    );

  border: 1px solid rgba(24, 56, 43, 0.14);

  border-radius: 2px;

  box-shadow:
    0 12px 35px rgba(24, 56, 43, 0.08);

  color: #18382b;

  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.schedule-card.guest-card:hover {
  box-shadow:
    0 16px 40px rgba(24, 56, 43, 0.11);
}


/* ---------------------------------------------------------
   GUEST TITLE
   --------------------------------------------------------- */

.guest-card > .faq-title {
  margin: 0 0 2rem;

  padding-bottom: 1rem;

  border-bottom: 1px solid rgba(24, 56, 43, 0.18);

  color: #18382b;

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

  letter-spacing: 0.14em;

  text-transform: uppercase;
}


/* ---------------------------------------------------------
   LABELS
   --------------------------------------------------------- */

.rsvp-label,
.guest-card > label:not(.radio-option) {
  display: block;

  margin-top: 1.25rem;
  margin-bottom: 0.45rem;

  color: #18382b;

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

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.rsvp-label i {
  font-style: normal;
}


/* ---------------------------------------------------------
   INPUTS
   --------------------------------------------------------- */

.input {
  width: 100%;

  box-sizing: border-box;

  padding: 0.9rem 1rem;

  border: 1px solid rgba(24, 56, 43, 0.22);
  border-radius: 2px;

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

  color: #18382b;

  font-family: inherit;
  font-size: 0.9rem;

  outline: none;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.input::placeholder {
  color: rgba(24, 56, 43, 0.42);
}

.input:focus {
  border-color: rgba(24, 56, 43, 0.55);

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

  box-shadow:
    0 0 0 3px rgba(126, 139, 82, 0.10);
}


/* ---------------------------------------------------------
   ATTENDANCE SELECT
   --------------------------------------------------------- */

.attendance-select {
  cursor: pointer;
}


/* ---------------------------------------------------------
   FOOD SECTION
   --------------------------------------------------------- */

.food-section {
  margin-top: 2rem !important;

  padding-top: 2rem;

  border-top: 1px solid rgba(24, 56, 43, 0.16);
}

.food-section h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;

  color: #18382b;

  font-size: 1.35rem;
  font-weight: 500;

  letter-spacing: 0.02em;
}

.food-section > p {
  margin-bottom: 1.5rem;

  color: rgba(24, 56, 43, 0.65);

  font-size: 0.9rem;
  line-height: 1.6;
}


/* ---------------------------------------------------------
   FOOD FIELDSETS
   --------------------------------------------------------- */

.guest-card fieldset {
  margin: 0;
  padding: 0;

  border: 0;
}

.guest-card legend.faq-title {
  width: 100%;

  box-sizing: border-box;

  margin: 0 0 0.8rem !important;
  padding: 0 0 0.65rem;

  border-bottom: 1px solid rgba(24, 56, 43, 0.12);

  color: #18382b;

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

  letter-spacing: 0.13em;

  text-transform: uppercase;
}


/* ---------------------------------------------------------
   RADIO OPTIONS
   --------------------------------------------------------- */

.radio-group {
  display: flex;

  flex-direction: column;

  gap: 0.65rem;
}

.radio-option {
  display: flex;

  align-items: center;

  gap: 0.75rem;

  padding: 0.7rem 0.8rem;

  border: 1px solid transparent;
  border-radius: 2px;

  color: rgba(24, 56, 43, 0.82);

  font-size: 0.88rem;
  line-height: 1.5;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.radio-option:hover {
  background: rgba(126, 139, 82, 0.07);

  border-color: rgba(24, 56, 43, 0.10);
}

.radio-option input {
  flex: 0 0 auto;

  width: 16px;
  height: 16px;

  margin: 0;

  accent-color: #18382b;

  cursor: pointer;
}

.radio-option b {
  font-weight: 600;

  font-size: 0.72rem;

  letter-spacing: 0.04em;
}


/* ---------------------------------------------------------
   DIETARY REQUIREMENTS
   --------------------------------------------------------- */

.guest-card > .food-section label[for*="_diet"] {
  display: block;

  margin-top: 2rem;
  margin-bottom: 0.5rem;

  color: #18382b;

  font-size: 0.72rem;

  font-weight: 600;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}

.guest-card > .food-section label[for*="_diet"] br {
  display: none;
}


/* ---------------------------------------------------------
   HIDDEN GUESTS / FOOD
   --------------------------------------------------------- */

.hidden {
  display: none !important;
}


/* ---------------------------------------------------------
   SUBMIT BUTTON
   --------------------------------------------------------- */

.rsvp-box > div[style*="text-align:center"] {
  margin-top: 3rem !important;
}

.rsvp-box .hero-button {
  display: inline-block;

  padding: 0.95rem 2.2rem;

  border: 1px solid #18382b;
  border-radius: 2px;

  background: #18382b;

  color: #f4f3ec;

  font-family: inherit;

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

  letter-spacing: 0.15em;

  text-transform: uppercase;

  cursor: pointer;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.rsvp-box .hero-button:hover {
  background: transparent;

  color: #18382b;

  transform: translateY(-2px);

  box-shadow:
    0 8px 20px rgba(24, 56, 43, 0.10);
}

.rsvp-box .hero-button:disabled {
  opacity: 0.55;

  cursor: wait;

  transform: none;
}


/* ---------------------------------------------------------
   LOGIN MODAL
   --------------------------------------------------------- */

.modal-overlay {
  position: fixed;

  inset: 0;

  z-index: 5000;

  display: flex;

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

  padding: 20px;

  box-sizing: border-box;

  background:
    linear-gradient(
      rgba(16, 43, 32, 0.72),
      rgba(16, 43, 32, 0.82)
    );

  backdrop-filter: blur(5px);
}

.modal-card {
  width: 100%;
  max-width: 460px;

  box-sizing: border-box;

  padding: 3rem;

  background:
    linear-gradient(
      145deg,
      #f5f4ed,
      #e9eae1
    );

  border: 1px solid rgba(255, 255, 255, 0.3);

  border-radius: 2px;

  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.28);

  color: #18382b;

  text-align: center;
}

.modal-card .hero-subtitle {
  margin-bottom: 1rem;

  color: #596341;

  font-size: 0.68rem;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}

.modal-card h2 {
  margin: 0 0 0.8rem;

  color: #18382b;

  font-size: 1.7rem;

  font-weight: 500;

  letter-spacing: 0.02em;
}

.modal-text {
  margin: 0 auto 1.8rem;

  max-width: 340px;

  color: rgba(24, 56, 43, 0.68);

  font-size: 0.88rem;

  line-height: 1.7;
}

.modal-card .input {
  text-align: center;

  letter-spacing: 0.12em;
}

.modal-card .hero-button {
  min-width: 140px;
}


/* ---------------------------------------------------------
   MODAL HIDDEN STATE
   --------------------------------------------------------- */

.hidden-modal {
  opacity: 0;

  pointer-events: none;

  visibility: hidden;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

footer {
  padding: 3rem 20px;

  background: #102b20;

  color: rgba(244, 243, 236, 0.72);

  text-align: center;

  font-size: 0.72rem;

  letter-spacing: 0.1em;
}

footer p {
  margin: 0;
}


/* ---------------------------------------------------------
   ALREADY RSVP'D MESSAGE
   --------------------------------------------------------- */

#errorMsg .rsvp {
  margin-bottom: 4rem;
}

#errorMsg .rsvp-box {
  box-sizing: border-box;

  padding: 3rem;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.72),
      rgba(244,243,236,0.52)
    );

  border: 1px solid rgba(24, 56, 43, 0.14);

  box-shadow:
    0 12px 35px rgba(24, 56, 43, 0.08);

  text-align: center;
}

#errorMsg .section-title {
  color: #18382b;

  font-weight: 500;
}

#errorMsg p {
  color: rgba(24, 56, 43, 0.68);

  line-height: 1.7;
}

#errorMsg .rsvp-button {
  display: inline-block;

  margin-top: 1rem;

  padding: 0.85rem 1.6rem;

  border: 1px solid #18382b;

  border-radius: 2px;

  background: transparent;

  color: #18382b;

  text-decoration: none;

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

  letter-spacing: 0.12em;

  text-transform: uppercase;

  transition:
    background 0.3s ease,
    color 0.3s ease;
}

#errorMsg .rsvp-button:hover {
  background: #18382b;

  color: #f4f3ec;
}


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

@media (max-width: 700px) {

  body > .hero {
    min-height: 30vh;

    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  body > .container {
    width: 92%;

    padding-top: 3.5rem;
  }

  .schedule-card.guest-card {
    padding: 1.5rem;
  }

  .guest-card > .faq-title {
    margin-bottom: 1rem;
  }

  .food-section {
    padding-top: 1.5rem;
  }

  .radio-option {
    align-items: flex-start;

    padding: 0.7rem 0.5rem;

    font-size: 0.84rem;
  }

  .radio-option input {
    margin-top: 0.15rem;
  }

  .modal-card {
    padding: 2.2rem 1.5rem;
  }

  .modal-card h2 {
    font-size: 1.45rem;
  }

  .rsvp-box .hero-button {
    width: 100%;

    box-sizing: border-box;
  }
}


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

@media (max-width: 450px) {

  body > .hero {
    min-height: 30vh;
  }

  .schedule-card.guest-card {
    padding: 1.25rem;
  }

  .guest-card > .faq-title {
    font-size: 0.74rem;
  }

  .food-section h2 {
    font-size: 1.2rem;
  }

  .modal-card {
    padding: 2rem 1.25rem;
  }
}


.sub-text {
  margin-bottom: 1.5rem;
  color: rgba(24, 56, 43, 0.72);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align:center;
}

.sub-text p {
  margin: 0 0 0.4rem;
}

.sub-text p:last-child {
  margin-bottom: 0;
}

#rsvpCode {
    font-size: 16px;
}