/* ══════════════════════════════════════════════
   Ceylon Breathe Ayurveda — reservation.css
   Styles for the Guest Reservation & Wellness
   Registration Form (reservation.html)
   ══════════════════════════════════════════════ */

/* ── Reservation meta strip (ref no. / date) ─── */
.res-meta-strip {
  background: linear-gradient(160deg, #1e0848 0%, #0f0432 100%);
  padding: 22px 6%;
  display: flex; flex-wrap: wrap; gap: 28px; justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.res-meta-item {
  display: flex; flex-direction: column; gap: 4px; min-width: 180px;
}
.res-meta-item span.meta-label {
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.res-meta-item span.meta-value {
  font-family: var(--font-display); font-size: 20px; font-weight: 600; color: #fff;
}
.res-meta-item .meta-value .title-pink { color: var(--pink); }

/* ── Sticky section jump-nav (mirrors .phase-nav) ── */
.form-jump-nav {
  position: sticky; top: 62px; z-index: 90;
  background: rgba(253,248,252,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74,53,145,.12);
  overflow-x: auto; white-space: nowrap;
  padding: 0 4%;
  transition: top .3s ease;
}
/* When the header hides itself on scroll-down, the jump-nav should
   collapse up to the true top of the viewport instead of leaving a
   62px gap where content shows through underneath it. */
.form-jump-nav.header-hidden { top: 0; }
.form-jump-nav-inner { display: inline-flex; gap: 4px; padding: 10px 0; }
.jump-link {
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  padding: 8px 14px; border-radius: 20px; color: #6a5f78;
  border: 1px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.jump-link:hover { color: var(--pink); }
.jump-link.active {
  background: var(--grad-main); color: #fff; box-shadow: 0 4px 14px rgba(200,48,110,.35);
}

/* ── Overall wrapper ─────────────────────────── */
.reservation-wrap {
  max-width: 980px; margin: 0 auto; padding: 56px 6% 30px;
}
.res-intro {
  text-align: center; margin-bottom: 40px;
}
.res-intro .section-tag { justify-content: center; display: flex; gap: 6px; }
.res-intro .section-title { margin-bottom: 10px; }
.res-intro p.section-body { max-width: 640px; margin: 0 auto; }
.res-confidential-note {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; color: var(--indigo);
  background: rgba(123,58,181,.08); border: 1px solid rgba(123,58,181,.18);
  padding: 9px 16px; border-radius: 30px;
}

/* ── Fieldset "cards" for each section ───────── */
.res-section {
  background: #fff; border: 1px solid rgba(74,53,145,.1);
  border-radius: 16px; padding: 34px 32px; margin-bottom: 26px;
  box-shadow: 0 10px 34px rgba(40,10,70,.05);
  scroll-margin-top: 120px;
}
.res-section legend, .res-section .legend-box {
  display: flex; align-items: center; gap: 12px; width: 100%;
  font-family: var(--font-display); font-size: 24px; font-weight: 600;
  color: var(--indigo); margin-bottom: 22px; padding-bottom: 14px;
  border-bottom: 2px solid rgba(232,53,107,.15);
}
.res-section .legend-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad-main); color: #fff; font-family: var(--font-body);
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.res-section .legend-sub {
  display: block; font-family: var(--font-body); font-size: 12px; font-weight: 300;
  color: #7a7086; margin: -14px 0 20px 46px;
}

/* ── Field grid ──────────────────────────────── */
.res-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 22px; }
.res-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.res-grid.cols-1 { grid-template-columns: 1fr; }
.res-field { display: flex; flex-direction: column; gap: 6px; }
.res-field.span-2 { grid-column: span 2; }
.res-field.span-3 { grid-column: 1 / -1; }

.res-field label, .res-fieldgroup-label {
  font-size: 12.5px; font-weight: 600; color: var(--ink); letter-spacing: .01em;
}
.res-field label .req, .res-fieldgroup-label .req { color: var(--pink); margin-left: 2px; }
.res-field .hint { font-size: 11px; font-weight: 300; color: #8a8094; }

.res-field input[type="text"],
.res-field input[type="email"],
.res-field input[type="tel"],
.res-field input[type="date"],
.res-field input[type="datetime-local"],
.res-field input[type="number"],
.res-field select,
.res-field textarea {
  font-family: var(--font-body); font-size: 13.5px; font-weight: 400;
  width: 100%; padding: 12px 14px; border-radius: 8px;
  border: 1.5px solid rgba(74,53,145,.16);
  background: #fbf9fd; color: var(--ink); outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.res-field textarea { resize: vertical; min-height: 78px; font-family: var(--font-body); }
.res-field input:focus, .res-field select:focus, .res-field textarea:focus {
  border-color: var(--pink); background: #fff;
  box-shadow: 0 0 0 3px rgba(232,53,107,.1);
}
.res-field input:disabled, .res-field input[readonly] {
  background: rgba(74,53,145,.06); color: #6a5f78; cursor: not-allowed;
}
.res-field input::placeholder, .res-field textarea::placeholder { color: #b3aabf; }

/* Invalid / valid state feedback */
.res-field input.invalid, .res-field select.invalid, .res-field textarea.invalid,
.res-fieldgroup.invalid {
  border-color: #e0304f !important;
  background: rgba(224,48,79,.05) !important;
}
.error-msg {
  font-size: 11px; color: #e0304f; font-weight: 500; display: none; gap: 5px; align-items: center;
}
.error-msg.show { display: flex; }
.error-msg::before { content: '⚠'; font-size: 12px; }

/* ── Choice groups: radio / checkbox pills ───── */
.res-fieldgroup { display: flex; flex-direction: column; gap: 8px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-pill {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 22px; border: 1.5px solid rgba(74,53,145,.18);
  background: #fbf9fd; font-size: 12.5px; font-weight: 500; color: var(--ink);
  cursor: pointer; transition: all .18s ease; user-select: none;
}
.choice-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-pill .dot {
  width: 15px; height: 15px; border: 1.5px solid rgba(74,53,145,.35); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; transition: all .18s ease;
}
.choice-pill input[type="radio"] + .dot { border-radius: 50%; }
.choice-pill input[type="checkbox"] + .dot { border-radius: 5px; }
.choice-pill .dot::after {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff;
  transform: scale(0); transition: transform .15s ease;
}
.choice-pill input[type="checkbox"] + .dot::after { border-radius: 2px; }
.choice-pill input:checked + .dot { background: var(--grad-main); border-color: transparent; }
.choice-pill input:checked + .dot::after { transform: scale(1); }
.choice-pill:has(input:checked) {
  border-color: var(--pink); background: rgba(232,53,107,.06); color: var(--pink); font-weight: 600;
}
.choice-pill input:focus-visible + .dot { outline: 2px solid var(--pink); outline-offset: 2px; }

/* Conditional sub-block (e.g. flight details, custom duration) */
.conditional-block {
  display: none; margin-top: 14px; padding: 16px; border-radius: 10px;
  background: rgba(93,207,206,.07); border: 1px dashed rgba(93,207,206,.4);
}
.conditional-block.visible { display: block; }

/* Terms block */
.terms-box {
  max-height: 220px; overflow-y: auto; font-size: 12.5px; line-height: 1.8;
  color: #4a4055; background: #fbf9fd; border: 1px solid rgba(74,53,145,.14);
  border-radius: 10px; padding: 16px 18px; margin-bottom: 18px;
}
.terms-box ul { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.declare-row {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  border-radius: 10px; background: rgba(232,53,107,.05); border: 1px solid rgba(232,53,107,.15);
}
.declare-row input[type="checkbox"] { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--pink); flex-shrink: 0; }
.declare-row label { font-size: 12.5px; font-weight: 400; color: var(--ink); line-height: 1.65; }

/* Honeypot — visually hidden but present for bots */
.hp-field {
  position: absolute !important; left: -9999px !important; top: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* Security check (math captcha) */
.security-check {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: rgba(74,53,145,.05); border: 1px solid rgba(74,53,145,.14);
  border-radius: 10px; padding: 16px 18px;
}
.security-check .sc-question {
  font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--indigo);
}
.security-check input { max-width: 110px; }
.sc-refresh {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(74,53,145,.2); background: #fff; color: var(--indigo);
  font-size: 16px; line-height: 1; cursor: pointer; transition: all .18s ease;
  display: inline-flex; align-items: center; justify-content: center;
}
.sc-refresh:hover { border-color: var(--pink); color: var(--pink); transform: rotate(45deg); }

/* Submit area */
.res-submit-area { text-align: center; padding: 10px 0 20px; }
.res-submit-btn {
  width: 100%; max-width: 360px; padding: 16px; font-size: 12px;
  font-family: var(--font-body); font-weight: 700; letter-spacing: .12em;
  color: #fff; background: var(--grad-main); border: none; border-radius: 8px; cursor: pointer;
  box-shadow: 0 8px 26px rgba(200,48,110,.4); transition: transform .2s, box-shadow .2s, opacity .2s;
}
.res-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(200,48,110,.55); }
.res-submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.res-submit-note { font-size: 11.5px; color: #8a8094; margin-top: 12px; }

.res-form-alert {
  display: none; align-items: center; gap: 10px; margin-bottom: 24px;
  padding: 14px 18px; border-radius: 10px; font-size: 13px; font-weight: 500;
  background: rgba(224,48,79,.08); border: 1px solid rgba(224,48,79,.3); color: #b5233f;
}
.res-form-alert.show { display: flex; }

/* Success panel */
.res-success {
  display: none; text-align: center; padding: 70px 6% 90px;
  background: linear-gradient(160deg, #1e0848 0%, #0f0432 100%);
}
.res-success.show { display: block; }
.res-success .succ-icon { font-size: 46px; margin-bottom: 14px; color: var(--pink); }
.res-success h2 { font-family: var(--font-display); color: #fff; font-size: 30px; margin-bottom: 10px; }
.res-success p { color: rgba(255,255,255,.7); font-size: 14px; max-width: 480px; margin: 0 auto 6px; line-height: 1.8; }
.res-success .ref-num {
  display: inline-block; margin-top: 18px; font-family: var(--font-display);
  font-size: 20px; color: #fff; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2); padding: 10px 24px; border-radius: 30px;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 860px) {
  .res-grid, .res-grid.cols-3 { grid-template-columns: 1fr; }
  .res-field.span-2, .res-field.span-3 { grid-column: 1 / -1; }
  .res-section { padding: 26px 20px; }
  .reservation-wrap { padding: 40px 5% 20px; }
}
@media (max-width: 520px) {
  .res-meta-strip { padding: 16px 5%; gap: 16px; }
  .res-section legend, .res-section .legend-box { font-size: 19px; }
}
