/* ─────────────────────────────────────────────────────────────────────────────
   PROPHETIC DISCOVERY - FORMS CSS
   Registration, Booking, Contact forms
   ──────────────────────────────────────────────────────────────────────────── */

/* ─── FORM PAGE HERO ──────────────────────────────────────────────────────── */
.form-page-hero {
  background: var(--bg);
  padding: calc(72px + var(--space-9)) 32px var(--space-8);
  text-align: center;
}

#continue-payment-link[hidden] {
  display: none;
}

.form-page-hero .form-step-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 auto var(--space-3);
}

.form-page-hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-3xl);
  color: var(--ink);
  margin-bottom: var(--space-3);
}

.form-page-hero .cursive-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-cursive-impact);
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-4);
}

.form-page-hero p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-lg);
  color: var(--inkMid);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ─── FORM WRAPPER ────────────────────────────────────────────────────────── */
.form-wrapper {
  background: var(--bg);
  padding: var(--space-9) 32px var(--space-10);
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

/* ─── DISCLAIMER BOX  ────────────────────────────────────────────────────── */
.disclaimer-box {
  background: var(--bgAlt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  max-height: 200px;
  overflow-y: auto;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--inkMid);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  white-space: pre-line;
}

.disclaimer-agree-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: var(--space-4);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
  cursor: pointer;
}

.disclaimer-agree-row:hover {
  border-color: var(--accent);
}

.disclaimer-agree-row.checked {
  border-color: var(--accent);
  background: var(--accentSoft);
}

.disclaimer-agree-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
}

.disclaimer-agree-row span {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--inkMid);
  line-height: 1.5;
}

/* ─── BOOKING TOGGLE ──────────────────────────────────────────────────────── */
.booking-toggle-wrap {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-7);
  width: fit-content;
}

.booking-toggle-btn {
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--inkMid);
  background: var(--surface);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.03em;
}

.booking-toggle-btn.active {
  background: var(--accent);
  color: white;
}

.booking-toggle-btn:not(.active):hover {
  background: var(--bgAlt);
  color: var(--ink);
}

/* ─── DATE CARDS ──────────────────────────────────────────────────────────── */
/* Cards wrap onto new rows rather than scrolling sideways, so every date is
   visible on a phone without needing to swipe. */
.date-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.date-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  transition: all 0.22s var(--ease-smooth);
  min-width: 0;
  text-align: center;
}

.date-card:hover {
  border-color: var(--accent);
  background: var(--accentSoft);
}

.date-card.selected {
  border-color: var(--accent);
  background: var(--accentSoft);
  box-shadow: 0 4px 16px rgba(44,95,74,0.12);
}

.date-card-label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-lg);
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 4px;
}

.date-card-tz {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--inkLight);
  letter-spacing: 0.08em;
}

/* ─── SESSION TYPE TABS ───────────────────────────────────────────────────── */
.session-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.session-tab {
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--inkLight);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s ease;
  letter-spacing: 0.03em;
}

.session-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.session-tab:not(.active):hover {
  color: var(--inkMid);
}

/* ─── TIME SLOTS ──────────────────────────────────────────────────────────── */
.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.time-slot {
  padding: 10px 8px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--inkMid);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
  letter-spacing: 0.02em;
}

.time-slot:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accentSoft);
}

.time-slot:disabled {
  cursor: not-allowed;
  color: var(--inkLight);
  background: transparent;
  border-style: dashed;
  opacity: 0.6;
}

.time-slot:disabled:hover {
  border-color: var(--border);
  color: var(--inkLight);
  background: transparent;
}

.time-slot small {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
}

.session-hint {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--inkMid);
  margin: calc(var(--space-2) * -1) 0 var(--space-4);
}

.session-hint:empty {
  display: none;
}

.date-card.is-full {
  cursor: not-allowed;
  opacity: 0.5;
}

.date-card.is-full:hover {
  border-color: var(--border);
  background: transparent;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ─── COUPLES ─────────────────────────────────────────────────────────────── */
.couple-box {
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: var(--font-body);
}

.couple-box[hidden],
.couple-fields[hidden] {
  display: none;
}


.couple-toggle {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--inkMid);
  line-height: 1.5;
}

.couple-toggle input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.couple-toggle strong { color: var(--ink); }

.couple-fields {
  margin-top: var(--space-4);
}

.couple-note {
  font-size: var(--text-sm);
  color: var(--inkMid);
  line-height: 1.6;
  margin: 0;
}

.time-slot-pair {
  grid-column: span 2;
}

/* Visitor's own time under each SAST time */
.time-grid:has(.local-time) {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}

.time-slot small.local-time {
  margin-top: 2px;
  color: var(--inkLight);
}

.time-slot.selected small.local-time {
  color: rgba(255,255,255,0.85);
}

.local-tz-note {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 600;
  margin-top: var(--space-2);
}

.local-tz-note[hidden] { display: none; }


.time-slot.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 3px 10px rgba(44,95,74,0.25);
}

/* ─── CALENDAR LINK ───────────────────────────────────────────────────────── */
.cal-link-wrap {
  display: none;
  padding: var(--space-4);
  background: var(--goldLight);
  border: 1px solid rgba(181,137,58,0.2);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--inkMid);
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-6);
}

.cal-link-wrap.visible { display: flex; }

.cal-link-wrap.is-disabled {
  opacity: 0.58;
}

.cal-link-wrap.is-disabled .cal-link {
  color: var(--inkLight);
  cursor: not-allowed;
  pointer-events: none;
}

.cal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
  font-size: var(--text-sm);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.cal-link:hover { color: var(--ink); }

#continue-payment-link {
  margin-top: var(--space-4);
}

/* ─── SESSION NOTE ────────────────────────────────────────────────────────── */
.session-note {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--inkLight);
  margin-bottom: var(--space-6);
  font-style: italic;
}

.review-email-panel {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  font-family: var(--font-body);
}

.review-email-panel p {
  margin: var(--space-2) 0 var(--space-4);
  color: var(--inkMid);
  font-size: var(--text-sm);
  line-height: 1.65;
}

/* ─── PAYMENT PAGE ────────────────────────────────────────────────────────── */
.payment-card {
  background: var(--accentSoft);
  border: 1px solid rgba(44,95,74,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  margin-bottom: var(--space-7);
}

.voucher-field {
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.voucher-field label,
.voucher-field small {
  display: block;
  font-family: var(--font-body);
}

.voucher-row {
  display: flex;
  gap: var(--space-2);
}

.voucher-row .form-input { flex: 1; min-width: 0; }

#voucher-status.is-ok { color: var(--accent); font-weight: 600; }
#voucher-status.is-error { color: var(--error); font-weight: 600; }


.voucher-field label {
  margin-bottom: var(--space-2);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 600;
}

.voucher-field small {
  margin-top: var(--space-2);
  color: var(--inkLight);
  line-height: 1.5;
}

.payment-bank-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xl);
  color: var(--ink);
  margin-bottom: var(--space-5);
}

.payment-details-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
}

.payment-detail-label {
  font-weight: 500;
  color: var(--inkMid);
  white-space: nowrap;
}

.payment-detail-value {
  font-weight: 300;
  color: var(--ink);
  font-family: 'Courier New', monospace;
  font-size: var(--text-sm);
}

.payment-pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(44,95,74,0.15);
}

.pricing-item {
  text-align: center;
  padding: var(--space-4);
  background: var(--surface);
  border-radius: var(--radius);
}

.pricing-amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-currency {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--inkLight);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── STARTER PACK PAGE ───────────────────────────────────────────────────── */
.starter-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  margin-bottom: var(--space-5);
}

.starter-block-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.starter-block h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.starter-block p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-base);
  color: var(--inkMid);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.starter-list {
  margin-bottom: var(--space-5);
}

.starter-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--inkMid);
  line-height: 1.6;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
  counter-increment: item;
}

.starter-list li:last-child { border-bottom: none; }

.starter-list li .item-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
  width: 20px;
  margin-top: 1px;
}

/* ─── CONTACT PAGE ────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-10);
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-3xl);
  color: var(--ink);
  margin-bottom: var(--space-6);
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-5);
}

.contact-info-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--inkLight);
  margin-bottom: 4px;
}

.contact-info-value {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--inkMid);
}

.contact-info-value a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact-info-value a:hover { color: var(--accentHover); }

.contact-cursive {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-cursive-impact);
  color: var(--accent);
  margin-top: var(--space-7);
  line-height: 1.4;
}

/* Accent image card in contact info column */
.contact-accent-img {
  margin: var(--space-6) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 220px;
}

.contact-accent-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius-lg);
  transition: transform 0.5s var(--ease-smooth);
}

.contact-accent-img:hover img {
  transform: scale(1.03);
}

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.contact-form-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  color: var(--ink);
  margin-bottom: var(--space-6);
}

/* ─── RESPONSIVE FORMS ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .form-page-hero  { padding: calc(64px + var(--space-7)) 20px var(--space-6); }
  .form-wrapper    { padding: var(--space-7) 20px var(--space-9); }
  .form-card       { padding: var(--space-6) var(--space-5); }

  .booking-toggle-wrap { width: 100%; }
  .booking-toggle-btn  { flex: 1; text-align: center; }

  .payment-pricing { grid-template-columns: 1fr 1fr; }
  .contact-grid    { grid-template-columns: 1fr; gap: var(--space-7); }

  .payment-details-grid { gap: var(--space-2) var(--space-4); }
}

@media (max-width: 480px) {
  .payment-pricing { grid-template-columns: 1fr 1fr; }
  .time-grid       { grid-template-columns: repeat(3, 1fr); }
}
