/* ============================================================
   JEEP SAFARI BOOKING POPUP (js/safari-form.js)
   Builds on the .booking-enquiry-* / .bk-* modal styles in
   style.css; only the safari-specific pieces live here.
   ============================================================ */
.sf-overlay { z-index: 3200; }
.sf-modal { max-width: 880px; }
.sf-modal .bk-field { min-width: 0; }
/* Labels like "WhatsApp / Phone (optional)" wrap to two lines on phones;
   bottom-align the row so paired inputs still sit at the same height. */
.sf-modal .bk-field-row { align-items: flex-end; }
.sf-modal .bk-field input,
.sf-modal .bk-field select { min-width: 0; max-width: 100%; }

.sf-modal .bk-enquiry-visual-caption small {
  display: block;
  margin-top: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  opacity: 0.9;
}

.sf-opt { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text-muted); }

/* Traveller blocks */
.sf-travellers { margin-bottom: 6px; }
.sf-traveller {
  border: 1.5px solid var(--beige-dark);
  border-radius: 14px;
  padding: 14px 16px 2px;
  margin: 0 0 14px;
  background: #fffdf9;
}
.sf-traveller legend {
  padding: 2px 10px;
  margin-left: -4px;
  border-radius: 999px;
  background: var(--green-dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.sf-traveller legend span { font-weight: 500; opacity: 0.8; text-transform: none; }
.sf-traveller .bk-field { margin-bottom: 12px; }
.sf-traveller .bk-field-row .sf-age { flex: 0 0 96px; }
.sf-enter { animation: sfEnter 0.32s ease both; }
@keyframes sfEnter {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* Contact details */
.sf-contact { margin: 4px 0 6px; }
.sf-contact-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.sf-honey { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.sf-submit { width: 100%; justify-content: center; margin-top: 4px; }
.sf-submit:disabled { opacity: 0.75; cursor: wait; }

.sf-error a { color: inherit; font-weight: 700; text-decoration: underline; }
.sf-error {
  background: #fdecea;
  color: #a12a1a;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.84rem;
  margin: 0 0 12px;
}

/* Confirmation */
.sf-confirm { text-align: center; padding: 10px 0 4px; }
.sf-confirm-icon {
  width: 72px; height: 72px;
  margin: 6px auto 16px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 26px rgba(37,211,102,0.4);
  animation: sfPop 0.45s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes sfPop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.sf-confirm h3 { font-size: 1.5rem; color: var(--green-dark); margin: 0 0 8px; outline: none; }
.sf-confirm-text { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; margin: 0 0 16px; }
.sf-confirm-list {
  list-style: none;
  margin: 0 0 16px; padding: 0;
  text-align: left;
  border: 1.5px solid var(--beige-dark);
  border-radius: 12px;
  overflow: hidden;
}
.sf-confirm-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 14px;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--beige-dark);
}
.sf-confirm-list li:last-child { border-bottom: none; }
.sf-confirm-list li:nth-child(odd) { background: var(--beige); }
.sf-confirm-list strong { color: var(--green-dark); overflow-wrap: anywhere; }
.sf-confirm-list span { color: var(--text-muted); white-space: nowrap; }
.sf-confirm-hint {
  background: #e9f9ef;
  color: #145c32;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.84rem;
  line-height: 1.55;
  margin: 0 0 12px;
}
.sf-confirm-hint i { color: #25D366; margin-right: 4px; }
.sf-confirm-retry i { color: #25D366; margin-right: 4px; }
.sf-confirm-retry {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--green-mid);
  text-decoration: underline;
  margin-bottom: 16px;
}
.sf-confirm-done { width: 100%; justify-content: center; }

/* Jeep Safari card flash after the popup closes on /jeepsafari */
.sf-highlight { animation: sfHighlight 2.2s ease 0.4s; }
@keyframes sfHighlight {
  0%, 100% { box-shadow: var(--shadow); }
  30%, 60% { box-shadow: 0 0 0 4px var(--gold), 0 12px 40px rgba(21,48,16,0.3); }
}

@media (max-width: 700px) {
  .sf-modal .bk-enquiry-form-wrap { min-height: 0; }
  .sf-modal .bk-enquiry-visual { flex-basis: 130px; }
  .sf-modal .bk-enquiry-visual-caption { right: 64px; }
  .sf-traveller { padding: 12px 12px 0; }
  .sf-traveller .bk-field-row .sf-age { flex-basis: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .sf-enter, .sf-confirm-icon, .sf-highlight { animation: none; }
}
