/* ═══════════════════════════════════════════════════════════════════
   booking.css — Shinary · Maintenance Booking Page Styles
   ═══════════════════════════════════════════════════════════════════ */

/* ── RESET & TOKENS ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #0a0a0a;
  --ink-2:      #1a1a1a;
  --ink-3:      #2c2c2c;
  --red:        #d62828;
  --red-dark:   #a81f1f;
  --gold:       #c8a45a;
  --smoke:      #f2f1ef;
  --mist:       #e8e6e2;
  --ghost:      #b0aca6;
  --white:      #ffffff;
  --ff-head:    'Bebas Neue', sans-serif;
  --ff-body:    'DM Sans', sans-serif;
  --radius:     4px;
  --transition: .28s cubic-bezier(.4,0,.2,1);
}

body {
  font-family: var(--ff-body);
  background: var(--smoke);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ── HERO ──────────────────────────────────────────────────────────── */
.bk-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}

.bk-hero__bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=2000&q=75') center/cover no-repeat;
  opacity: .28;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.bk-hero:hover .bk-hero__bg { transform: scale(1); }

.bk-hero__slash {
  position: absolute;
  bottom: -1px; right: 0;
  width: 60%; height: 100%;
  background: linear-gradient(135deg, transparent 50%, var(--smoke) 50%);
  pointer-events: none;
}

.bk-hero__inner {
  position: relative;
  z-index: 2;
  padding: 0 6vw 72px;
  max-width: 900px;
}

.bk-hero__eyebrow {
  font-family: var(--ff-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bk-hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px; height: 2px;
  background: var(--gold);
}

.bk-hero__title {
  font-family: var(--ff-head);
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 1;
  color: var(--white);
  letter-spacing: .02em;
}
.bk-hero__title span { color: var(--red); }

.bk-hero__bread {
  margin-top: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.bk-hero__bread a { color: rgba(255,255,255,.45); text-decoration: none; transition: color var(--transition); }
.bk-hero__bread a:hover { color: var(--white); }
.bk-hero__bread .sep { color: var(--red); }
.bk-hero__bread .current { color: var(--red); }

/* ── MAIN LAYOUT ───────────────────────────────────────────────────── */
.bk-body {
  max-width: 1300px;
  margin: 0 auto;
  padding: 72px 5vw 96px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 960px) {
  .bk-body { grid-template-columns: 1fr; }
}

/* ── SECTION HEADER ────────────────────────────────────────────────── */
.bk-section-label {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.bk-section-title {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: .02em;
  margin-bottom: 16px;
}
.bk-section-sub {
  font-size: .9rem;
  color: var(--ghost);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
}

/* ── ALERTS ────────────────────────────────────────────────────────── */
.bk-alert {
  padding: 14px 20px;
  font-size: .88rem;
  border-radius: var(--radius);
  margin-bottom: 32px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-left: 3px solid;
  animation: slideDown .35s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bk-alert--success { background: #e8f5e9; border-color: #388e3c; color: #1b5e20; }
.bk-alert--error   { background: #fdecea; border-color: var(--red); color: var(--red-dark); }
.bk-alert i { margin-top: 2px; flex-shrink: 0; }

/* ── FORM ──────────────────────────────────────────────────────────── */
.bk-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bk-form .full { grid-column: 1 / -1; }

.bk-field { display: flex; flex-direction: column; gap: 6px; }

.bk-label {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.bk-label .req { color: var(--red); margin-left: 2px; }

.bk-input,
.bk-select,
.bk-textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--ff-body);
  font-size: .92rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--mist);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.bk-input:focus,
.bk-select:focus,
.bk-textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10,10,10,.06);
}
.bk-input.is-error,
.bk-select.is-error { border-color: var(--red); }

.bk-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.bk-select option:disabled { color: var(--ghost); font-style: italic; }

.bk-textarea { resize: vertical; min-height: 110px; }

.bk-hint { font-size: .75rem; color: var(--ghost); margin-top: 4px; }
.bk-hint.error { color: var(--red); display: none; }
.bk-hint.error.visible { display: block; }

/* ── SUBMIT BUTTON ─────────────────────────────────────────────────── */
.bk-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 40px;
  font-family: var(--ff-head);
  font-size: 1.15rem;
  letter-spacing: .12em;
  color: var(--white);
  background: var(--ink);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.bk-submit::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--red);
  transform: translateX(-105%);
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  z-index: 0;
}
.bk-submit:hover::after { transform: translateX(0); }
.bk-submit span,
.bk-submit i { position: relative; z-index: 1; }
.bk-submit:disabled { opacity: .5; cursor: not-allowed; }
.bk-submit:disabled::after { display: none; }

/* ── SIDEBAR ───────────────────────────────────────────────────────── */
.bk-sidebar { position: sticky; top: 32px; }

.bk-card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 6px;
  overflow: hidden;
}
.bk-card__head {
  background: var(--ink);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bk-card__head-icon { color: var(--gold); font-size: 1.1rem; }
.bk-card__head-title {
  font-family: var(--ff-head);
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: .06em;
}
.bk-card__body { padding: 24px; }

/* Status bar */
.bk-status-bar {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ghost);
  margin-bottom: 16px;
  min-height: 18px;
  transition: color var(--transition);
}
.bk-status-bar.ok   { color: #2e7d32; }
.bk-status-bar.busy { color: var(--red); }
.bk-status-bar.load { color: var(--gold); }

/* ── SLOT ROWS ─────────────────────────────────────────────────────── */
.bk-slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--mist);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  user-select: none;
}
.bk-slot:last-child { margin-bottom: 0; }
.bk-slot:hover { border-color: var(--ink-3); background: var(--smoke); }
.bk-slot.is-reserved { opacity: .55; cursor: not-allowed; pointer-events: none; }
.bk-slot.is-selected { border-color: var(--ink); background: var(--ink); }
.bk-slot.is-selected .slot-time { color: var(--white); }

.slot-time {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  letter-spacing: .06em;
  color: var(--ink);
  transition: color var(--transition);
}

.slot-badge {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--mist);
  color: var(--ghost);
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.slot-badge.avail { background: #e8f5e9; color: #2e7d32; }
.slot-badge.taken { background: #fdecea; color: var(--red-dark); }

/* Spinner */
.slot-spinner {
  width: 10px; height: 10px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
.slot-spinner.visible { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Info strip */
.bk-info-strip {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--mist);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bk-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .85rem;
  color: var(--ink-3);
}
.bk-info-row i { color: var(--red); width: 16px; text-align: center; flex-shrink: 0; }

/* ── NOTE CARD ─────────────────────────────────────────────────────── */
.bk-note {
  margin-top: 16px;
  background: var(--ink-2);
  border-radius: 6px;
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.bk-note i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.bk-note p { font-size: .82rem; color: rgba(255,255,255,.65); line-height: 1.65; }

/* ── RESULT / DEBUG PANEL ──────────────────────────────────────────── */
.bk-result-panel { margin-top: 20px; }

.bk-result-panel-head {
  padding: 14px 20px;
  background: var(--ink);
  color: #fff;
  font-size: .85rem;
}
.bk-result-panel-title { font-weight: 600; }
.bk-result-panel-sub { color: rgba(255,255,255,.7); font-weight: 400; margin-left: 6px; }

.bk-result-panel-body { padding: 16px 20px; font-size: .8rem; }
.bk-result-placeholder { color: var(--ghost); margin: 0; }
.bk-result-date { font-weight: 600; margin: 0 0 10px; color: var(--ink); }

.bk-result-table { width: 100%; border-collapse: collapse; font-size: .75rem; }
.bk-result-table th,
.bk-result-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--mist); }
.bk-result-table th  { background: var(--mist); color: var(--ink-3); font-weight: 600; }
.bk-result-table td code { background: #f0f0f0; padding: 2px 6px; border-radius: 3px; font-size: .7rem; }
.bk-result-table .reserved  { color: var(--red);  font-weight: 500; }
.bk-result-table .available { color: #2e7d32; font-weight: 500; }
.bk-result-db { margin: 10px 0 0; color: var(--ghost); font-size: .7rem; }

/* ── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .bk-form { grid-template-columns: 1fr; }
  .bk-form .full { grid-column: 1; }
}