/* =====================================================
   WALLZA — Booking Form Styles
   These styles scope exclusively to .wz-booking-* and
   #wz-booking-form. They do NOT touch any existing CSS.
   ===================================================== */

/* ─── Form Shell ─────────────────────────────────────────────────────────── */

.wz-booking {
  background: var(--bone, #FCFAF3);
  padding: clamp(4rem, 10vh, 7rem) clamp(1.2rem, 5vw, 2rem);
}

.wz-booking__inner {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.8rem;
}

/* ─── Section Header ─────────────────────────────────────────────────────── */

.wz-booking__hd {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.wz-booking__eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-d, #9C7C2E);
}

.wz-booking__title {
  font-family: var(--fh, 'Fraunces', Georgia, serif);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.1;
  font-size: clamp(2rem, 1rem + 3vw, 2.8rem);
  color: var(--ink, #17221C);
  margin: 0;
}

.wz-booking__sub {
  font-size: clamp(.9rem, .86rem + .18vw, 1rem);
  line-height: 1.65;
  color: var(--muted, #586759);
  max-width: 36ch;
  margin: 0;
}

/* ─── Form Card ──────────────────────────────────────────────────────────── */

.wz-booking__form {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, .07);
  overflow: hidden;
}

/* ─── Progress Bar ───────────────────────────────────────────────────────── */

.wz-booking__progress {
  display: flex;
  align-items: center;
  padding: 1.4rem 1.8rem 0;
  gap: 0;
  list-style: none;
  margin: 0;
}

.wz-booking__step-ind {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.wz-booking__step-ind:last-child {
  flex: 0 0 auto;
}

.wz-booking__step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line, #E7DFCE);
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted, #586759);
  background: #fff;
  transition: border-color .25s, background .25s, color .25s;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.wz-booking__step-connector {
  flex: 1;
  height: 2px;
  background: var(--line, #E7DFCE);
  transition: background .3s;
  margin: 0 2px;
}

.wz-booking__step-ind.is-active .wz-booking__step-num {
  border-color: var(--green, #1E4B3A);
  background: var(--green, #1E4B3A);
  color: #fff;
}

.wz-booking__step-ind.is-done .wz-booking__step-num {
  border-color: var(--green, #1E4B3A);
  background: var(--green, #1E4B3A);
  color: #fff;
}

.wz-booking__step-ind.is-done .wz-booking__step-connector,
.wz-booking__step-ind.is-active .wz-booking__step-connector {
  background: var(--green, #1E4B3A);
}

.wz-booking__step-label {
  display: none; /* Visible to screen readers via aria-label, hidden visually on mobile */
}

@media (min-width: 480px) {
  .wz-booking__step-label {
    display: block;
    font-size: .65rem;
    font-weight: 600;
    color: var(--muted, #586759);
    position: absolute;
    top: 34px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .wz-booking__step-num {
    position: relative;
  }

  .wz-booking__progress {
    padding-bottom: 1.8rem;
  }
}

/* ─── Step Body ──────────────────────────────────────────────────────────── */

.wz-booking__body {
  padding: 1.8rem 1.8rem 0;
}

.wz-booking__step-title {
  font-family: var(--fh, 'Fraunces', Georgia, serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -.018em;
  color: var(--ink, #17221C);
  margin: 0 0 1.4rem;
}

/* ─── Field Wrapper ──────────────────────────────────────────────────────── */

.wz-field {
  display: flex;
  flex-direction: column;
  gap: .38rem;
  margin-bottom: 1.1rem;
}

.wz-field:last-child {
  margin-bottom: 0;
}

.wz-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink, #17221C);
  letter-spacing: .01em;
}

.wz-label-opt {
  font-size: .72rem;
  font-weight: 500;
  color: var(--muted, #586759);
  margin-left: .3rem;
}

/* ─── Inputs ─────────────────────────────────────────────────────────────── */

.wz-input,
.wz-select,
.wz-textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--line, #E7DFCE);
  border-radius: 10px;
  font-family: var(--ff, 'Inter', system-ui, sans-serif);
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink, #17221C);
  background: var(--bone, #FCFAF3);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  line-height: 1.5;
}

.wz-input::placeholder,
.wz-textarea::placeholder {
  color: #b0b9b3;
  font-weight: 400;
}

.wz-input:focus,
.wz-select:focus,
.wz-textarea:focus {
  outline: none;
  border-color: var(--green, #1E4B3A);
  box-shadow: 0 0 0 3px rgba(30, 75, 58, .12);
  background: #fff;
}

.wz-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23586759' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 16px;
  padding-right: 2.4rem;
  cursor: pointer;
}

.wz-textarea {
  resize: vertical;
  min-height: 90px;
  max-height: 200px;
}

/* Valid / Invalid states */
.wz-input.is-valid,
.wz-select.is-valid,
.wz-textarea.is-valid {
  border-color: #2a7a5a;
}

.wz-input.is-invalid,
.wz-select.is-invalid,
.wz-textarea.is-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .1);
  background: #fff8f8;
}

/* ─── Error Message ──────────────────────────────────────────────────────── */

.wz-error {
  font-size: .75rem;
  font-weight: 600;
  color: #c0392b;
  display: flex;
  align-items: center;
  gap: .3rem;
  line-height: 1.4;
}

.wz-error::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c0392b'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath stroke='%23fff' stroke-width='2' stroke-linecap='round' d='M12 8v4M12 16h.01'/%3E%3C/svg%3E");
  background-size: contain;
  flex-shrink: 0;
}

/* ─── Honeypot (hidden from humans) ─────────────────────────────────────── */

.wz-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/* ─── Form Footer (button row) ───────────────────────────────────────────── */

.wz-booking__foot {
  padding: 1.4rem 1.8rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.wz-booking__nav {
  display: flex;
  gap: .75rem;
  align-items: center;
}

.wz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.6rem;
  border-radius: 999px;
  font-family: var(--ff, 'Inter', system-ui, sans-serif);
  font-size: .92rem;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
  white-space: nowrap;
  text-decoration: none;
}

.wz-btn:focus-visible {
  outline: 3px solid var(--gold-l, #E7C878);
  outline-offset: 2px;
}

.wz-btn:active { transform: translateY(0) !important; }

.wz-btn--primary {
  background: var(--green, #1E4B3A);
  color: #fff;
  box-shadow: 0 6px 20px rgba(30, 75, 58, .22);
  flex: 1;
}

.wz-btn--primary:hover {
  background: var(--green-2, #163A2B);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(30, 75, 58, .3);
}

.wz-btn--primary:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.wz-btn--ghost {
  background: transparent;
  border-color: var(--line, #E7DFCE);
  color: var(--muted, #586759);
}

.wz-btn--ghost:hover {
  border-color: var(--muted, #586759);
  color: var(--ink, #17221C);
}

.wz-btn--wa {
  background: #25D366;
  color: #06310f;
  width: 100%;
  justify-content: center;
}

.wz-btn--wa:hover {
  background: #1da851;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, .3);
}

.wz-btn svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* ─── State Panels ───────────────────────────────────────────────────────── */

.wz-state {
  padding: 2.8rem 1.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.wz-state__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wz-state__icon--success { background: rgba(30, 75, 58, .1); }
.wz-state__icon--error   { background: rgba(192, 57, 43, .1); }
.wz-state__icon--loading { background: rgba(194, 155, 69, .1); }

.wz-state__icon svg { width: 28px; height: 28px; }

.wz-state__title {
  font-family: var(--fh, 'Fraunces', Georgia, serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -.018em;
  color: var(--ink, #17221C);
  margin: 0;
}

.wz-state__body {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--muted, #586759);
  margin: 0;
  max-width: 34ch;
}

/* Loading spinner */
.wz-spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid rgba(194, 155, 69, .25);
  border-top-color: var(--gold, #C29B45);
  border-radius: 50%;
  animation: wz-spin .7s linear infinite;
}

@keyframes wz-spin { to { transform: rotate(360deg); } }

/* ─── Divider ────────────────────────────────────────────────────────────── */

.wz-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted, #586759);
}

.wz-divider::before,
.wz-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line, #E7DFCE);
}

/* ─── Trust Row ──────────────────────────────────────────────────────────── */

.wz-booking__trust {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .9rem;
  justify-content: center;
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted, #586759);
}

.wz-booking__trust-item {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.wz-booking__trust-item svg {
  width: 13px;
  height: 13px;
  color: var(--green, #1E4B3A);
  flex-shrink: 0;
}

/* ─── Reduced Motion ─────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .wz-spinner { animation: none; }
  .wz-btn,
  .wz-input,
  .wz-select,
  .wz-textarea { transition: none; }
}

/* ─── Responsive: 320px–414px ────────────────────────────────────────────── */

@media (max-width: 460px) {
  .wz-booking__progress { padding: 1.2rem 1.2rem 0; }
  .wz-booking__body     { padding: 1.4rem 1.2rem 0; }
  .wz-booking__foot     { padding: 1.2rem 1.2rem 1.4rem; }

  .wz-btn { font-size: .88rem; padding: .7rem 1.2rem; min-height: 46px; }
}
