/* AI-Agent: Claude Code (Claude Opus 5.5)
   Session: Custom booking system build for rebelranchministries.org (2026-09-24)
   Public booking pages (book.html, book-manage.html). Built only from the approved RRM
   public-surface values in docs/rrm-visual-rules.md and the existing form pattern in
   align-interest.html: forest page, standard form/card fade, gold primary button,
   green supporting button, cream headings, #D7D1B3 body text. Pill radius is used only
   on real buttons. Loaded after public-surface.css. */

*, *::before, *::after { box-sizing: border-box; }
body.rrm-phase-one { margin: 0; color: #F0EDD8; }
.booking-page { width: min(860px, 92vw); margin: auto; padding: 68px 0 64px; color: #F0EDD8; }
.booking-page .eyebrow { margin: 0; color: #EF9F27; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.booking-page h1 { margin: 10px 0 18px; font-size: clamp(38px, 6vw, 64px); line-height: 1.08; color: #F0EDD8; }
.booking-page p { color: #D7D1B3; }
.booking-page .intro { max-width: 720px; font-size: 18px; }
.booking-page a { color: #EF9F27; }

.booking-step { margin-top: 30px; }
.step-heading { margin: 0 0 14px; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.15; color: #F0EDD8; }
.booking-hidden { display: none !important; }

/* Form surface: approved fade, established form borders/radius. */
.booking-panel { position: relative; overflow: hidden; margin-top: 18px; padding: 24px; border: 1px solid #284A29; border-radius: 20px; background: linear-gradient(180deg, #1D4024 0%, #122A18 100%); }
.booking-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #C17F24, #97C459); }

/* Visit-type choices are real choices, so they are cards (and real buttons). */
.choice-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.choice-card { position: relative; overflow: hidden; width: 100%; padding: 24px; text-align: left; color: #F0EDD8; font: inherit; cursor: pointer; border: 1px solid #284A29; border-radius: 20px; background: linear-gradient(180deg, #1D4024 0%, #122A18 100%); }
.choice-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #C17F24, #97C459); }
.choice-card h3 { margin: 0 0 6px; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.15; }
.choice-card p { margin: 0; }
.choice-card .choice-meta { margin-top: 10px; color: #EF9F27; font-size: .9rem; font-weight: 700; }
.choice-card:hover, .choice-card:focus-visible { border-color: #4A7C59; }
.choice-card[aria-pressed="true"] { border-color: #C17F24; }

/* Buttons — primary gold, supporting green (docs/rrm-visual-rules.md "Actions"). */
.booking-page .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 12px 19px; border-radius: 999px; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; }
.booking-page .btn.primary { color: #fff7de; border: 1px solid #C17F24; background: linear-gradient(135deg, #C17F24, #7B4B13); }
.booking-page .btn.supporting { color: #F0EDD8; border: 1px solid #4A7C59; background: #28502F; }
.booking-page .btn:disabled { opacity: .45; cursor: not-allowed; }
.booking-page .btn:focus-visible, .cal-day:focus-visible, .choice-card:focus-visible { outline: 3px solid #EF9F27; outline-offset: 2px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* Calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cal-title { margin: 0; font-size: 1.1rem; color: #F0EDD8; }
.booking-page .cal-nav { min-width: 3rem; padding: 0; font-size: 1.4rem; }
.cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-weekdays { margin: 16px 0 6px; color: #D7D1B3; font-size: .8rem; font-weight: 700; text-align: center; }
.cal-day { min-height: 2.9rem; padding: 0; border: 1px solid #4A7C59; border-radius: 10px; background: #28502F; color: #F0EDD8; font: inherit; font-weight: 800; cursor: pointer; }
.cal-day:disabled { border-color: transparent; background: transparent; color: #D7D1B3; opacity: .45; cursor: default; font-weight: 400; }
.cal-day[aria-pressed="true"] { border-color: #C17F24; background: linear-gradient(135deg, #C17F24, #7B4B13); color: #fff7de; }
.booking-status { min-height: 1.5em; margin: 12px 0 0; font-size: .95rem; }
.times-heading { margin: 18px 0 10px; font-size: 1rem; color: #F0EDD8; }
.times-heading:empty { display: none; }
.time-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 10px; }
.booking-page .time-btn[aria-pressed="true"] { border-color: #C17F24; background: linear-gradient(135deg, #C17F24, #7B4B13); color: #fff7de; }

/* Form fields — same treatment as the existing interest forms. */
.booking-form { display: grid; grid-template-columns: 1fr; gap: 16px; }
.booking-form label, .field-label { display: grid; gap: 7px; color: #F0EDD8; font-weight: 700; }
.booking-form input, .booking-form select, .booking-form textarea { width: 100%; padding: 12px; border: 1px solid #385d33; border-radius: 10px; background: #07120a; color: #F0EDD8; font: inherit; }
.booking-form textarea { min-height: 120px; resize: vertical; }
.field-hint { color: #D7D1B3; font-weight: 400; font-size: .9rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.requirement { padding-top: 18px; border-top: 1px solid rgba(74, 124, 89, .48); }
.requirement:first-child { padding-top: 0; border-top: 0; }
.requirement h3 { margin: 0 0 8px; font-size: 1.1rem; color: #F0EDD8; }
.requirement .req-body { white-space: pre-wrap; color: #D7D1B3; }
.requirement .req-tag { color: #EF9F27; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.check-line { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px; font-weight: 400 !important; color: #D7D1B3 !important; }
.booking-form .check-line input { width: 1.25rem; height: 1.25rem; margin-top: 3px; flex: 0 0 auto; }
.check-line input:disabled + span { opacity: .6; }

.booking-notice { margin: 18px 0 0; padding: 15px 17px; border-left: 5px solid #EF9F27; border-radius: 8px; background: #1D4024; color: #F0EDD8; }
.booking-notice.error { border-left-color: #a94c3e; }
.booking-notice:empty { display: none; }

.summary-line { margin: 0 0 6px; color: #D7D1B3; }
.summary-line strong { color: #F0EDD8; }
.fine-print { font-size: .8rem; line-height: 1.5; }

@media (min-width: 700px) {
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .booking-form .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
}
@media (max-width: 699px) {
  .booking-form .two-col { display: grid; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
