
/* =========================================
   ALLELUIA RETREAT 2027 — BOOKING PAGE
   Matches booking.html and booking.js
   ========================================= */

:root {
  --cream: #f5f1e9;
  --paper: #fbf9f4;
  --white: #fffefa;
  --ink: #20241f;
  --muted: #686a62;
  --olive: #283329;
  --olive-soft: #3d493c;
  --gold: #c9a064;
  --line: #e5dfd3;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 12px 36px rgba(32, 36, 31, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
}

body,
button,
input,
select,
textarea {
  font-family: var(--sans);
}

button,
input,
select,
textarea {
  font-size: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(201, 160, 100, 0.65);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

/* Header */

.site-header {
  min-height: 78px;
  padding: 16px clamp(20px, 5.5vw, 84px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}

.brand-mark {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 31px;
  font-style: italic;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.28em;
}

.back-link {
  padding-bottom: 4px;
  border-bottom: 1px solid #c8bca8;
  font-size: 12px;
  transition: color 0.2s;
}

.back-link:hover {
  color: #8d714a;
}

/* Introduction */

.booking-intro {
  padding: 68px clamp(24px, 8vw, 125px) 52px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 15px;
  color: #927044;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.booking-intro h1 {
  max-width: 800px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.booking-intro h1 em {
  color: #68735f;
  font-weight: 400;
}

.intro-copy {
  max-width: 540px;
  margin: 20px 0 25px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.event-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  color: #565b50;
  font-size: 11px;
}

.event-facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.event-facts span::first-letter {
  color: var(--gold);
}

/* Main page layout */

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 36px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 46px 32px 90px;
}

.booking-main,
.booking-summary {
  min-width: 0;
}

.booking-main {
  padding: 0;
}

/* Four-step progress indicator */

.steps {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 0 0 20px;
  margin: 0 0 36px;
  border-bottom: 1px solid var(--line);
}

.steps button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #89897f;
  text-align: left;
  transition: color 0.2s, border-color 0.2s;
}

.steps button:hover {
  color: var(--olive);
}

.steps button > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid #d8d1c4;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 12px;
}

.steps button small {
  font-size: 10px;
  white-space: nowrap;
}

.steps button.active {
  border-bottom-color: var(--gold);
  color: var(--olive);
}

.steps button.active > span {
  border-color: var(--olive);
  background: var(--olive);
  color: white;
}

.steps button.completed > span {
  border-color: var(--olive);
  background: #e7ebe2;
  color: var(--olive);
}

/* Step panels */

.panel {
  min-width: 0;
  padding: 0;
}

.panel > .eyebrow {
  margin-bottom: 9px;
}

.panel h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section-copy {
  max-width: 690px;
  margin: 0 0 27px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.muted {
  color: var(--muted);
  font-size: 11px;
}

/* Retreat blocks */

.retreat-block {
  margin: 0 0 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 4px 16px rgba(32, 36, 31, 0.025);
}

.retreat-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.retreat-heading h3 {
  margin: 7px 0 5px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.25;
}

.retreat-heading p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 11px;
}

.retreat-tag {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid #e0d0b5;
  border-radius: 3px;
  color: #8c7048;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--olive);
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
}

.toggle-label input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--olive);
}

.youth-block {
  background: #f8f6f0;
}

.section-disabled {
  opacity: 0.55;
}

.room-list {
  display: grid;
  gap: 14px;
}

/* Room options */

.room-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 1fr);
  gap: 10px 16px;
  padding: 19px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.room-info {
  grid-column: 1 / -1;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.room-info h4 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}

.room-info p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  color: #55584f;
  font-size: 10px;
  font-weight: 600;
}

input:not([type="checkbox"]),
select,
textarea {
  max-width: 100%;
}

.room-group select,
.field-label input,
.field-label select,
.field-label textarea {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #ddd7ca;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.5;
}

.room-group select:focus,
.field-label input:focus,
.field-label select:focus,
.field-label textarea:focus {
  border-color: #84917d;
}

select:disabled,
input:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.field-label textarea {
  resize: vertical;
}

/* Guests */

.guest-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.guest-toolbar h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
}

.guest-toolbar p {
  margin: 0;
}

.guest-card {
  padding: 22px;
  margin-bottom: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.guest-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 15px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.guest-card-heading h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
}

.remove-guest {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #986c59;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 17px;
}

.full-field {
  grid-column: 1 / -1;
}

.guest-attendance {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 15px 0;
  margin: 5px 0 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guest-attendance label,
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #55584f;
  font-size: 11px;
  line-height: 1.7;
}

.guest-attendance input,
.consent-label input {
  flex: 0 0 auto;
  margin-top: 4px;
  accent-color: var(--olive);
}

.guest-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

/* Contact information and notices */

.contact-grid {
  margin-top: 26px;
  margin-bottom: 28px;
}

.notice {
  padding: 18px 20px;
  margin: 24px 0;
  border-left: 3px solid var(--gold);
  border-radius: 0 5px 5px 0;
  background: #f2eee5;
}

.notice strong {
  display: block;
  margin-bottom: 5px;
  color: var(--olive);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

.notice p {
  margin: 0;
  color: #64665e;
  font-size: 11px;
  line-height: 1.8;
}

.consent-label {
  margin: 24px 0;
}

/* Form navigation */

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.primary-button {
  background: var(--olive);
  color: white;
}

.primary-button:hover {
  background: var(--olive-soft);
}

.secondary-button {
  border-color: #d9d2c5;
  background: transparent;
  color: var(--olive);
}

.secondary-button:hover {
  border-color: var(--olive);
  background: #f0eee6;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Booking summary */

.booking-summary {
  position: relative;
}

.summary-card {
  position: sticky;
  top: 24px;
  padding: 27px 25px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--olive);
  color: white;
  box-shadow: var(--shadow);
}

.summary-card .eyebrow {
  color: #dfc18e;
  font-size: 8px;
}

.summary-card h2 {
  margin: 7px 0 25px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
  line-height: 1.25;
}

.summary-event {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 19px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.summary-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #dfc18e;
  font-size: 19px;
}

.summary-event strong {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
}

.summary-event p {
  margin: 4px 0 0;
  color: #d0d2c8;
  font-size: 10px;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 17px 0 3px;
  color: #e1e1d9;
  font-size: 11px;
}

.summary-line strong {
  color: white;
  font-size: 12px;
}

.summary-detail {
  margin: 0;
  color: #bfc4b8;
  font-size: 10px;
}

.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 19px;
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.23);
}

.summary-total span {
  font-size: 11px;
}

.summary-total strong {
  color: #e5c99b;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
  white-space: nowrap;
}

.summary-footnote {
  margin: 14px 0 0;
  color: #c5c9be;
  font-size: 9px;
  line-height: 1.8;
}

.venue-card {
  padding: 21px 2px;
  margin-top: 14px;
  border-bottom: 1px solid var(--line);
}

.venue-card h3 {
  margin: 0 0 9px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
}

.venue-card p {
  margin: 7px 0;
  color: #55584f;
  font-size: 11px;
  line-height: 1.8;
}

/* Review */

.review-content {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.review-section {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.review-section h3 {
  padding-bottom: 12px;
  margin: 0 0 13px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

.review-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.review-row {
  display: grid;
  grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1.5fr);
  gap: 15px;
}

.review-row dt {
  color: var(--muted);
  font-size: 10px;
}

.review-row dd {
  margin: 0;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.preview-notice {
  margin-top: 24px;
}

/* Completion state */

.success-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.success-panel h2 {
  font-size: 34px;
}

.success-panel > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

/* Validation messages and toast */

.inline-error {
  min-height: 0;
  margin: 12px 0;
  color: #a24d3d;
  font-size: 11px;
  line-height: 1.7;
}

.inline-error:empty {
  display: none;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  max-width: calc(100vw - 40px);
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: var(--ink);
  color: white;
  font-size: 11px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s, transform 0.2s;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */

.site-footer {
  padding: 24px;
  border-top: 1px solid var(--line);
  background: #202820;
  color: #e7e4dc;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: #d2d0c6;
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
}

/* Tablet */

@media (max-width: 1050px) {
  .booking-layout {
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 24px;
    padding-inline: 22px;
  }

  .steps {
    gap: 5px;
  }

  .steps button {
    gap: 6px;
    padding-inline: 4px;
  }

  .steps button small {
    font-size: 9px;
  }

  .summary-card {
    padding: 22px 19px;
  }

  .room-group {
    padding: 16px;
  }
}

/* Mobile */

@media (max-width: 780px) {
  .site-header {
    min-height: 66px;
    padding: 12px 20px;
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .brand-copy small {
    font-size: 8px;
  }

  .brand-mark {
    font-size: 26px;
  }

  .back-link {
    font-size: 10px;
  }

  .booking-intro {
    padding: 43px 22px 32px;
  }

  .booking-intro h1 {
    font-size: clamp(40px, 10vw, 56px);
  }

  .event-facts {
    display: grid;
    gap: 8px;
  }

  .booking-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 30px 18px 55px;
  }

  .steps {
    justify-content: space-between;
    gap: 3px;
    padding-bottom: 16px;
    margin-bottom: 28px;
  }

  .steps button {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1 1 0;
    padding: 5px 2px 9px;
    text-align: center;
  }

  .steps button > span {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
    font-size: 11px;
  }

  .steps button small {
    font-size: 9px;
    white-space: normal;
  }

  .panel h2 {
    font-size: 33px;
  }

  .retreat-block {
    padding: 17px;
  }

  .retreat-heading {
    gap: 10px;
  }

  .retreat-heading h3 {
    font-size: 24px;
  }

  .toggle-label {
    gap: 5px;
    padding: 7px;
    font-size: 10px;
  }

  .room-group {
    padding: 14px;
  }

  .guest-card {
    padding: 16px;
  }

  .field-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .full-field {
    grid-column: auto;
  }

  .booking-summary {
    order: 2;
  }

  .summary-card {
    position: static;
    padding: 24px;
  }

  .summary-card h2 {
    font-size: 27px;
  }

  .venue-card {
    padding-inline: 2px;
  }

  .review-section {
    padding: 16px;
  }

  .review-row {
    grid-template-columns: minmax(85px, 0.8fr) minmax(0, 1.5fr);
    gap: 10px;
  }

  .form-actions {
    align-items: stretch;
  }

  .form-actions > button {
    max-width: 75%;
  }

  .primary-button,
  .secondary-button {
    padding: 12px 13px;
    font-size: 10px;
  }
}

/* Small phones */

@media (max-width: 420px) {
  .site-header {
    gap: 8px;
    padding-inline: 14px;
  }

  .brand {
    gap: 6px;
  }

  .brand-copy strong {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .brand-copy small {
    letter-spacing: 0.2em;
  }

  .back-link {
    font-size: 9px;
  }

  .booking-intro {
    padding-inline: 18px;
  }

  .booking-layout {
    padding-inline: 12px;
  }

  .retreat-block {
    padding: 13px;
  }

  .retreat-heading {
    flex-direction: column;
  }

  .room-group {
    grid-template-columns: minmax(0, 1fr);
  }

  .room-info {
    grid-column: auto;
  }

  .guest-attendance {
    flex-direction: column;
    gap: 9px;
  }

  .form-actions {
    gap: 8px;
  }

  .form-actions > button {
    max-width: 70%;
  }

  .summary-total strong {
    font-size: 25px;
  }

  .review-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.age-note {
  display: block;
  margin-top: -2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.6;
}