/* =========================================================
   custom-Outram.css
   Outram Secondary School 120th Anniversary
   RSVP Registration / Thank You pages

   Palette (taken from the banner):
   Navy  #1C2D6E   Red   #C41E2A   Gold  #F0B323
   Ink   #1F2433   Muted #5B6275   Line  #E3E6EF
   ========================================================= */

/* ---------- Base ---------- */
body.rsvp-public {
  min-height: 100vh;
  background-color: #EEF1F7;
  background-image: linear-gradient(180deg, #E2E8F4 0%, #F2F4F8 45%, #F8F4EA 100%);
  background-attachment: fixed;
  color: #1F2433;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.rsvp-page a {
  color: #1C2D6E;
  transition: color 0.2s ease;
}

  .rsvp-page a:hover {
    color: #C41E2A;
  }

@keyframes rsvpReveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Page shell ---------- */
.rsvp-page {
  padding: 40px 16px 64px;
}

.rsvp-card {
  max-width: 880px;
  margin: 0 auto;
  overflow: hidden;
  background-color: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(28, 45, 110, 0.06), 0 30px 60px -24px rgba(28, 45, 110, 0.28);
}

.rsvp-banner {
  position: relative;
}

  .rsvp-banner img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* Navy / red / gold stripe under the banner */
  .rsvp-banner::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 5px;
    background-image: linear-gradient(90deg, #1C2D6E 0%, #1C2D6E 33.33%, #C41E2A 33.33%, #C41E2A 66.66%, #F0B323 66.66%, #F0B323 100%);
  }

.rsvp-body {
  padding: 52px 64px 60px;
}

@media (max-width: 767.98px) {
  .rsvp-page {
    padding: 12px 12px 32px;
  }

  .rsvp-card {
    border-radius: 16px;
  }

  .rsvp-body {
    padding: 32px 20px 36px;
  }
}

/* ---------- Header ---------- */
.rsvp-title {
  margin-bottom: 16px;
  color: #1C2D6E;
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.rsvp-lead {
  margin-bottom: 0;
  color: #5B6275;
  font-size: 1.05rem;
}

.rsvp-rule {
  width: 96px;
  height: 4px;
  margin: 28px 0 0;
  border: 0;
  border-radius: 4px;
  background-image: linear-gradient(90deg, #1C2D6E 0%, #C41E2A 55%, #F0B323 100%);
  opacity: 1;
}

@media (max-width: 767.98px) {
  .rsvp-title {
    font-size: 1.55rem;
  }
}

/* ---------- Form sections ---------- */
.rsvp-section {
  margin-top: 52px;
}

.rsvp-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E8EBF2;
  color: #1C2D6E;
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
}

.rsvp-section-mark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background-image: linear-gradient(135deg, #1C2D6E 0%, #2E44A0 100%);
  box-shadow: 0 8px 16px -8px rgba(28, 45, 110, 0.7);
  color: #F0B323;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.rsvp-section-intro {
  margin-bottom: 26px;
  color: #5B6275;
}

/* Conditional sections fade in when shown */
.rsvp-conditional {
  animation: rsvpReveal 0.35s ease-out;
}

/* ---------- Questions ---------- */
.rsvp-question {
  margin-bottom: 28px;
}

  .rsvp-question:last-child {
    margin-bottom: 0;
  }

.rsvp-label {
  display: block;
  margin-bottom: 10px;
  color: #1F2433;
  font-size: 0.975rem;
  font-weight: 600;
}

.rsvp-required {
  margin-left: 2px;
  color: #C41E2A;
  font-weight: 700;
}

.rsvp-optional {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 10px;
  border-radius: 999px;
  background-color: #EEF0F6;
  color: #5B6275;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.8;
  text-transform: uppercase;
  vertical-align: middle;
}

.rsvp-hint {
  margin-left: 6px;
  color: #6B7286;
  font-size: 0.85rem;
  font-weight: 400;
}

.rsvp-help {
  margin-top: 8px;
  color: #6B7286;
  font-size: 0.85rem;
}

/* ---------- Text inputs ---------- */
.rsvp-card .form-control {
  min-height: 54px;
  padding: 14px 18px;
  background-color: #F6F7FB;
  border: 1.5px solid #E3E6EF;
  border-radius: 12px;
  color: #1F2433;
  font-size: 1rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

  .rsvp-card .form-control::placeholder {
    color: #A0A6B8;
  }

  .rsvp-card .form-control:hover {
    border-color: #C8CEDE;
  }

  .rsvp-card .form-control:focus {
    background-color: #FFFFFF;
    border-color: #1C2D6E;
    box-shadow: 0 0 0 4px rgba(28, 45, 110, 0.12), 0 10px 22px -14px rgba(28, 45, 110, 0.45);
  }

  /* Native HTML5 state — only after the user has interacted with the field */
  .rsvp-card .form-control:user-invalid {
    background-color: #FFF7F7;
    border-color: #C41E2A;
  }

/* Input with leading icon */
.rsvp-input-icon {
  position: relative;
}

  .rsvp-input-icon svg {
    position: absolute;
    top: 50%;
    left: 18px;
    width: 20px;
    height: 20px;
    color: #9AA1B5;
    pointer-events: none;
    transform: translateY(-50%);
    transition: color 0.2s ease;
  }

  .rsvp-input-icon .form-control {
    padding-left: 50px;
  }

  .rsvp-input-icon:focus-within svg {
    color: #1C2D6E;
  }

/* ---------- Choice tiles (radio / checkbox) ---------- */
.rsvp-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  margin: 0;
  padding: 14px 16px;
  background-color: #FFFFFF;
  border: 1.5px solid #E3E6EF;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(28, 45, 110, 0.04);
  color: #2B3145;
  font-size: 0.95rem;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

  .rsvp-choice:hover {
    border-color: #B9C1D9;
    box-shadow: 0 12px 24px -16px rgba(28, 45, 110, 0.45);
    transform: translateY(-1px);
  }

  .rsvp-choice:has(.form-check-input:checked) {
    background-image: linear-gradient(135deg, #EEF2FC 0%, #FFFFFF 100%);
    border-color: #1C2D6E;
    box-shadow: 0 0 0 3px rgba(28, 45, 110, 0.1);
    color: #1C2D6E;
  }

  .rsvp-choice:has(.form-check-input:focus-visible) {
    box-shadow: 0 0 0 4px rgba(28, 45, 110, 0.22);
  }

.rsvp-card .rsvp-choice .form-check-input {
  flex-shrink: 0;
  width: 1.25em;
  height: 1.25em;
  margin: 0;
  background-color: #FFFFFF;
  border: 1.5px solid #B4BACB;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

  .rsvp-card .rsvp-choice .form-check-input[type="checkbox"] {
    border-radius: 6px;
  }

  .rsvp-card .rsvp-choice .form-check-input:checked {
    background-color: #1C2D6E;
    border-color: #1C2D6E;
  }

  .rsvp-card .rsvp-choice .form-check-input:focus {
    border-color: #1C2D6E;
    box-shadow: none;
  }

/* ---------- Conditional follow-up questions ---------- */
.rsvp-followup {
  margin-top: 24px;
  padding: 24px 26px 26px;
  background-image: linear-gradient(135deg, #FDF7E6 0%, #FFFFFF 75%);
  border: 1.5px solid #F2E2B3;
  border-radius: 16px;
}

.rsvp-followup-title {
  display: inline-block;
  float: left;
  width: auto;
  margin-bottom: 20px;
  padding: 5px 14px;
  border-radius: 999px;
  background-color: #F0B323;
  color: #1C2D6E;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

@media (max-width: 767.98px) {
  .rsvp-followup {
    padding: 20px 16px 22px;
  }
}

/* "Other — please specify" field under a choice group */
.rsvp-other-field {
  margin-top: 16px;
}

/* ---------- Ticket payment panel ---------- */
.rsvp-ticket {
  position: relative;
  overflow: hidden;
  padding: 28px 30px;
  border-radius: 16px;
  background-image: linear-gradient(135deg, #1C2D6E 0%, #2A3F94 100%);
  box-shadow: 0 20px 40px -22px rgba(28, 45, 110, 0.8);
  color: #FFFFFF;
}

  .rsvp-ticket::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -60px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background-color: rgba(240, 179, 35, 0.18);
  }

  .rsvp-ticket::after {
    content: "";
    position: absolute;
    right: 80px;
    bottom: -90px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: rgba(196, 30, 42, 0.25);
  }

  .rsvp-ticket > * {
    position: relative;
    z-index: 1;
  }

.rsvp-ticket-text {
  margin-bottom: 14px;
  color: #E6EAF7;
}

.rsvp-ticket-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 999px;
  background-color: #F0B323;
  color: #1C2D6E;
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

  .rsvp-ticket-link:hover {
    background-color: #FFC53F;
    box-shadow: 0 12px 22px -12px rgba(0, 0, 0, 0.6);
    color: #1C2D6E;
    transform: translateY(-1px);
  }

  .rsvp-ticket-link svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
  }

.rsvp-ticket-note {
  margin: 16px 0 0;
  color: #B9C3E6;
  font-size: 0.875rem;
}

/* ---------- Submit ---------- */
.rsvp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid #E8EBF2;
}

.rsvp-actions-note {
  margin: 0;
  color: #5B6275;
  font-size: 0.875rem;
}

.btn.btn-rsvp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 38px;
  background-color: #C41E2A;
  background-image: linear-gradient(135deg, #D22634 0%, #A01722 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 28px -14px rgba(196, 30, 42, 0.85);
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

  .btn.btn-rsvp:hover,
  .btn.btn-rsvp:focus-visible {
    background-color: #C41E2A;
    box-shadow: 0 20px 34px -14px rgba(196, 30, 42, 0.95);
    color: #FFFFFF;
    transform: translateY(-2px);
  }

  .btn.btn-rsvp:active,
  .btn.btn-rsvp:first-child:active {
    background-color: #A01722;
    color: #FFFFFF;
    transform: translateY(0);
  }

.btn-rsvp svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn-rsvp:hover svg {
  transform: translateX(3px);
}

@media (max-width: 575.98px) {
  .rsvp-actions .btn-rsvp {
    width: 100%;
  }
}

/* ---------- Thank you page ---------- */
.rsvp-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

  .rsvp-steps li {
    position: relative;
    padding: 0 0 34px 64px;
    counter-increment: step;
  }

    .rsvp-steps li:last-child {
      padding-bottom: 0;
    }

    .rsvp-steps li::before {
      content: counter(step);
      position: absolute;
      top: 0;
      left: 0;
      width: 42px;
      height: 42px;
      border-radius: 12px;
      background-image: linear-gradient(135deg, #F0B323 0%, #F7CE62 100%);
      box-shadow: 0 10px 18px -10px rgba(240, 179, 35, 0.95);
      color: #1C2D6E;
      font-weight: 700;
      line-height: 42px;
      text-align: center;
    }

    .rsvp-steps li:not(:last-child)::after {
      content: "";
      position: absolute;
      top: 52px;
      bottom: 10px;
      left: 20px;
      border-left: 2px dashed #E6DBB8;
    }

.rsvp-step-title {
  margin-bottom: 4px;
  padding-top: 8px;
  color: #1C2D6E;
  font-size: 1.05rem;
  font-weight: 700;
}

.rsvp-step-text {
  margin-bottom: 0;
  color: #5B6275;
}

  .rsvp-step-text + .btn-rsvp {
    margin-top: 18px;
  }

.rsvp-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background-color: #F6F7FB;
  border-radius: 14px;
  color: #5B6275;
}

  .rsvp-contact svg {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    padding: 10px;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 6px 14px -8px rgba(28, 45, 110, 0.45);
    color: #1C2D6E;
  }

  .rsvp-contact p {
    margin: 0;
  }

  .rsvp-contact a {
    font-weight: 700;
    word-break: break-word;
  }


