/* ─── Tokens (match theme.css) ───────────────────────────────── */
:root {
  --bg:           #f7f5f0;
  --fg:           #1a1714;
  --accent:       #e8980a;
  --accent-dark:  #c47d04;
  --ink:          #2d2925;
  --muted:        #7a7068;
  --surface:      #ffffff;
  --border:       #e2ddd6;
  --card-bg:      #ffffff;
  --card-border:  #e8e3db;
  --error-bg:     #fff2f2;
  --error-border: #f5c6c6;
  --error-text:   #c0392b;
  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    20px;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Navbar ────────────────────────────────────────────────── */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nav-back {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--ink); }

/* ─── Shared helpers ────────────────────────────────────────── */
.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ─── Booking wrap ───────────────────────────────────────────── */
.booking-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.booking-header { margin-bottom: 44px; }

.booking-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 12px;
}

.booking-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 460px;
}

/* ─── Error banner ───────────────────────────────────────────── */
.form-error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.875rem;
  margin-bottom: 28px;
}

/* ─── Form sections ─────────────────────────────────────────── */
.form-section { margin-bottom: 44px; }

.form-section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ─── Property size cards ───────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pricing-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pricing-card:hover { border-color: var(--accent); }
.pricing-card input[type="radio"] { display: none; }
.pricing-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  background: #fffbf2;
}
.pricing-card-featured { border-color: var(--accent); background: #fffbf2; }
.pricing-card-featured:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.pc-badge-wrap { height: 20px; }
.pc-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.pc-badge-wrap:empty { display: none; }

.pc-size {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
}
.pc-price {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.pricing-card-featured .pc-price { color: var(--accent-dark); }
.pc-per {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ─── Calendar grid ──────────────────────────────────────────── */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.cal-day {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.cal-day:hover { border-color: var(--accent); }
.cal-day input[type="radio"] { display: none; }
.cal-day:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  background: #fffbf2;
}

.cal-day-name {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.cal-day-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  line-height: 1;
}
.cal-day-month {
  font-size: 0.65rem;
  color: var(--muted);
}

/* ─── Time slots ─────────────────────────────────────────────── */
.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.time-slot {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.time-slot:hover { border-color: var(--accent); }
.time-slot input[type="radio"] { display: none; }
.time-slot:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  background: #fffbf2;
  color: var(--accent-dark);
}

.time-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 8px;
}

/* ─── Detail fields ─────────────────────────────────────────── */
.fields { display: flex; flex-direction: column; gap: 16px; }

.field-group { display: flex; flex-direction: column; gap: 6px; }

.field-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
}

.field-input {
  background: var(--surface);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  width: 100%;
}
.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 152, 10, 0.12);
}
.field-input::placeholder { color: #b8b0a8; }

/* ─── Submit button ─────────────────────────────────────────── */
.btn-submit {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 16px 24px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.18s, transform 0.1s;
  margin-top: 8px;
}
.btn-submit:hover { background: var(--accent-dark); }
.btn-submit:active { transform: scale(0.99); }

/* ─── Confirmation page ──────────────────────────────────────── */
.confirm-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.confirm-check { margin-bottom: 24px; }

.confirm-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 12px;
}

.confirm-sub {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 36px;
}
.confirm-sub strong { color: var(--ink); }

.confirm-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  width: 100%;
  margin-bottom: 24px;
  text-align: left;
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.confirm-row:last-child { border-bottom: none; }
.confirm-row-price { margin-top: 4px; padding-top: 16px; border-top: 2px solid var(--card-border); }

.confirm-key {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  flex-shrink: 0;
}
.confirm-val {
  font-size: 0.95rem;
  color: var(--ink);
  text-align: right;
  word-break: break-all;
}
.confirm-val-price {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent-dark);
}

.confirm-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 32px;
}
.confirm-note a { color: var(--accent); text-decoration: none; }
.confirm-note a:hover { text-decoration: underline; }

.btn-home {
  display: inline-block;
  background: transparent;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s;
}
.btn-home:hover { border-color: var(--ink); color: var(--ink); }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 680px) {
  .nav-bar { padding: 16px 20px; }
  .booking-wrap { padding: 32px 16px 60px; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .calendar-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .cal-day { padding: 10px 4px; }
  .cal-day-num { font-size: 1.1rem; }
}

@media (max-width: 400px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .time-slots { gap: 8px; }
  .time-slot { padding: 8px 14px; font-size: 0.82rem; }
}