/* ==========================================================================
   Rioba Safaris — trip planner (enquire.html)
   ========================================================================== */

.enquire-page { background: var(--ivory); }
.enquire-page .site-header { position: fixed; }
.back-home { margin-left: auto; }

.planner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: 100vh; min-height: 100svh;
  padding-top: var(--header-h);
}

/* ---------- Image panel ---------- */
.planner-visual {
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
  overflow: hidden; background: var(--ink);
}
.planner-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1s var(--ease), transform 6s linear;
}
.planner-visual img.is-active { opacity: 1; transform: scale(1); }
.planner-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,16,12,.8), rgba(10,16,12,0) 55%); }
.planner-quote { position: absolute; z-index: 1; left: 40px; right: 40px; bottom: 40px; color: #fff; }
.planner-quote p { font-family: var(--serif); font-size: clamp(1.3rem, 1.8vw, 1.7rem); line-height: 1.3; margin-bottom: 12px; }
.planner-quote span { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: #f0c38e; }

/* ---------- Form side ---------- */
.planner-main { position: relative; padding: clamp(40px, 6vw, 90px) clamp(20px, 6vw, 96px) 80px; }
.progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--sand); }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .6s var(--ease); }
.planner-top { display: flex; align-items: center; justify-content: space-between; min-height: 40px; margin-bottom: 28px; }
.step-back { background: none; border: 0; padding: 6px 0; font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.step-back:hover { color: var(--accent); }
.step-count { margin-left: auto; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.step { border: 0; margin: 0; padding: 0; min-width: 0; display: none; max-width: 680px; }
.step.is-active { display: block; animation: stepIn .6s var(--ease) both; }
.step.is-leaving-back { animation: none; }
@keyframes stepIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.step.from-back.is-active { animation-name: stepInBack; }
@keyframes stepInBack { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }

.step legend, .step h2 {
  display: block; padding: 0;
  font-family: var(--serif); font-weight: 500; line-height: 1.1;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  margin-bottom: 14px;
}
.step legend .eyebrow { display: flex; font-family: var(--sans); }
.step legend i, .step h2 i { font-style: italic; font-weight: 400; color: var(--accent); }
.hint { color: var(--muted); margin-bottom: 26px; }
.step legend + .options { margin-top: 26px; }

/* ---------- Choice pills ---------- */
.options { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border: 1px solid rgba(29,42,34,.25); border-radius: 999px;
  background: #fff;
  font-size: .95rem; font-weight: 400;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease-out-back);
}
.opt span::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid currentColor; opacity: .5;
  transition: background-color .3s, box-shadow .3s, opacity .3s;
}
.opt input[type="checkbox"] + span::before { border-radius: 3px; }
.opt:hover span { border-color: var(--ink); transform: translateY(-2px); }
.opt input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.opt input:checked + span::before { opacity: 1; background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--ink); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Fields ---------- */
.fields, .reveal-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-bottom: 26px; }
.reveal-fields[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px;
  font: inherit; font-weight: 400; color: var(--ink);
  background: #fff; border: 1px solid rgba(29,42,34,.2); border-radius: var(--radius);
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(192,112,42,.15); }
.field input.invalid { border-color: #b3261e; }

/* ---------- Steppers ---------- */
.steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: #fff; border: 1px solid rgba(29,42,34,.15); border-radius: var(--radius); }
.stepper > span { font-weight: 400; line-height: 1.3; }
.stepper small { display: block; color: var(--muted); font-size: .8rem; }
.stepper-ctrl { display: flex; align-items: center; gap: 12px; }
.stepper-ctrl button {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(29,42,34,.3); background: none; font-size: 1.1rem; line-height: 1;
  transition: background-color .25s, color .25s;
}
.stepper-ctrl button:hover { background: var(--ink); color: #fff; }
.stepper-ctrl output { min-width: 20px; text-align: center; font-family: var(--serif); font-size: 1.5rem; }

.error { min-height: 1.4em; color: #b3261e; font-size: .9rem; margin: -10px 0 14px; }
.privacy { margin-top: 16px; font-size: .85rem; color: var(--muted); }

/* ---------- Done ---------- */
.done h2 { margin-bottom: 18px; }
.summary { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 28px 0; padding: 24px; background: #fff; border-radius: var(--radius); border: 1px solid rgba(29,42,34,.1); }
.summary dt { font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.summary dd { margin: 0; }
.done-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .planner { grid-template-columns: 1fr; }
  .planner-visual { position: relative; top: 0; height: 200px; }
  .planner-quote { display: none; }
}
@media (max-width: 560px) {
  .back-home { font-size: .7rem; }
  .fields, .reveal-fields, .steppers { grid-template-columns: 1fr; }
  .opt span { padding: 12px 18px; font-size: .9rem; }
  .summary { grid-template-columns: 1fr; gap: 2px; }
  .summary dd { margin-bottom: 10px; }
}
