/* ============================================================
   BONNE Studio — Booking form (Typeform-style)
   Brand: Kanit · #11100E primary · #B56037 accent · #EEEAE1 bg
   ============================================================ */

/* Reset & base for booking page */
.booking-body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ──────────────── Progress bar ──────────────── */
.booking-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(17, 16, 14, 0.08);
  z-index: 100;
}
.booking-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ──────────────── Header ──────────────── */
.booking-header {
  position: sticky;
  top: 3px;
  z-index: 50;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
}
.booking-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}
.booking-back-home:hover {
  color: var(--color-accent);
}
.booking-back-home svg {
  transition: transform 0.25s ease;
}
.booking-back-home:hover svg {
  transform: translateX(-3px);
}
.booking-step-indicator {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
  .booking-header { padding: 20px 48px; }
}

/* ──────────────── Main canvas ──────────────── */
.booking-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  width: 100%;
}

@media (min-width: 768px) {
  .booking-main { padding: 48px; }
}

/* ──────────────── Step ──────────────── */
.booking-step {
  display: none;
  width: 100%;
  max-width: 680px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.booking-step.is-active {
  display: block;
}
.booking-step.is-active.is-shown {
  opacity: 1;
  transform: translateY(0);
}
.booking-step-inner {
  background: transparent;
  padding: 0;
}
.booking-step-center {
  text-align: center;
}

/* ──────────────── Typography ──────────────── */
.booking-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.booking-q-number {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.booking-step h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--color-primary);
}
.booking-step h2 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--color-primary);
}
.booking-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0 0 20px;
}
.booking-lead-soft {
  color: var(--color-text-muted);
  font-size: 16px;
}
.booking-help {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0 0 24px;
  font-style: italic;
}

/* ──────────────── Inputs ──────────────── */
.booking-step input[type="text"],
.booking-step input[type="tel"],
.booking-step input[type="email"],
.booking-step input[type="url"],
.booking-step input[type="date"],
.booking-step textarea {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-primary);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-border-strong);
  border-radius: 0;
  outline: none;
  transition: border-color 0.25s ease;
  box-sizing: border-box;
  margin-bottom: 24px;
}
.booking-step input[type="text"]:focus,
.booking-step input[type="tel"]:focus,
.booking-step input[type="email"]:focus,
.booking-step input[type="url"]:focus,
.booking-step input[type="date"]:focus,
.booking-step textarea:focus {
  border-color: var(--color-accent);
}
.booking-step input.is-invalid {
  border-color: #c0392b;
}
.booking-step input::placeholder,
.booking-step textarea::placeholder {
  color: rgba(17, 16, 14, 0.3);
  font-weight: 400;
}
.booking-step textarea {
  resize: vertical;
  min-height: 100px;
  font-size: 16px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 8px;
  padding: 16px;
}
.booking-step textarea:focus {
  border-color: var(--color-accent);
}
.booking-date {
  font-variant-numeric: tabular-nums;
  max-width: 280px;
}

/* ──────────────── Options (radio / checkbox) ──────────────── */
.booking-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.booking-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) {
  .booking-options-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.booking-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: transparent;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  user-select: none;
}
.booking-option:hover {
  border-color: var(--color-primary);
  background: rgba(17, 16, 14, 0.03);
}
.booking-option:active {
  transform: scale(0.99);
}
.booking-option input[type="radio"],
.booking-option input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--color-border-strong);
  background: transparent;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.booking-option input[type="radio"] {
  border-radius: 50%;
}
.booking-option input[type="checkbox"] {
  border-radius: 5px;
}
.booking-option input:checked {
  border-color: var(--color-accent);
  background: var(--color-accent);
}
.booking-option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--color-bg);
  border-radius: 50%;
}
.booking-option input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 6px;
  height: 11px;
  border: solid var(--color-bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.booking-option:has(input:checked) {
  border-color: var(--color-accent);
  background: rgba(181, 96, 55, 0.06);
}
.booking-option-key {
  display: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(17, 16, 14, 0.08);
  color: var(--color-text);
  padding: 4px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .booking-option-key { display: inline-block; }
}
.booking-option-label {
  font-size: 17px;
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1.4;
  flex: 1;
}
.booking-option-label strong {
  font-weight: 600;
}

/* ──────────────── Actions ──────────────── */
.booking-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}
.booking-cta {
  margin-top: 24px;
  font-size: 17px;
  padding: 16px 40px;
}
.btn-link {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.25s ease;
}
.btn-link:hover {
  color: var(--color-primary);
}

/* ──────────────── Tip / keyboard hint ──────────────── */
.booking-tip {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
  font-style: italic;
}
.booking-tip kbd {
  display: inline-block;
  padding: 2px 7px;
  background: rgba(17, 16, 14, 0.08);
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-style: normal;
  border-bottom: 2px solid rgba(17, 16, 14, 0.15);
}

/* ──────────────── Spinner ──────────────── */
.booking-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(17, 16, 14, 0.1);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  margin: 0 auto 32px;
  animation: booking-spin 0.8s linear infinite;
}
@keyframes booking-spin {
  to { transform: rotate(360deg); }
}

/* ──────────────── Success / Error ──────────────── */
.booking-success-icon {
  color: #2d7a4f;
  margin: 0 auto 24px;
}
.booking-error-icon {
  font-size: 56px;
  margin-bottom: 16px;
}
.booking-success-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ──────────────── Footer ──────────────── */
.booking-footer {
  padding: 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 13px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
@media (min-width: 768px) {
  .booking-footer {
    flex-direction: row;
    justify-content: space-between;
    padding: 24px 48px;
  }
}

/* ──────────────── Reduce motion ──────────────── */
@media (prefers-reduced-motion: reduce) {
  .booking-step, .booking-progress-fill, .booking-option,
  .booking-back-home, .booking-back-home svg, .booking-spinner {
    transition: none !important;
    animation: none !important;
  }
}

/* ──────────────── Option sub-text (multi-line options) ──────────────── */
.booking-option:has(.booking-option-sub) { align-items: flex-start; }
.booking-option-sub {
  display: block;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-top: 3px;
}

/* ──────────────── Reference upload (dropzone + file list + link) ──────────────── */
.booking-sublabel {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin: 8px 0 10px;
}
.booking-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 32px 20px;
  margin-bottom: 16px;
  border: 1.5px dashed var(--color-border-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.booking-dropzone:hover,
.booking-dropzone:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(17, 16, 14, 0.03);
  outline: none;
}
.booking-dropzone.is-dragover {
  border-color: var(--color-accent);
  background: rgba(181, 96, 55, 0.07);
  color: var(--color-accent);
}
.booking-dropzone svg { color: inherit; }
.booking-dropzone-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.45;
}
.booking-dropzone-or { font-size: 14px; font-weight: 400; color: var(--color-text-muted); }
.booking-dropzone-link { color: var(--color-accent); text-decoration: underline; }
.booking-dropzone-hint {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
}

.booking-file-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.booking-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 8px;
  background: rgba(17, 16, 14, 0.02);
}
.booking-file-meta {
  font-size: 14px;
  color: var(--color-primary);
  word-break: break-all;
  line-height: 1.4;
}
.booking-file-remove {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.booking-file-remove:hover {
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
}
