/* Sakala Studio - Client Booking CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --black:       #0A0A0A;
  --white:       #FFFFFF;
  --gray-100:    #F5F5F5;
  --gray-200:    #E8E8E8;
  --gray-400:    #9E9E9E;
  --gray-700:    #424242;
  --accent:      #22C55E;
  --accent-dark: #16A34A;
  --danger:      #EF4444;
  --warning:     #F59E0B;
  --info:        #3B82F6;
  --radius:      8px;
  --shadow:      0 1px 3px rgba(0,0,0,0.1);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.12);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--white);
  color: var(--black);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 15px; }

/* ─── LAYOUT ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--sm { max-width: 640px; margin: 0 auto; padding: 0 20px; }

/* ─── HEADER ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.site-header__logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1.5px;
  color: var(--black);
}
.site-header__links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}
.site-header__links a {
  color: var(--gray-700);
  transition: color .15s;
}
.site-header__links a:hover { color: var(--black); }
.site-header__links a.wa {
  color: var(--accent);
  font-weight: 600;
}

/* ─── STEPS INDICATOR ─── */
.steps {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 0;
}
.steps__list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  justify-content: center;
}
.steps__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
}
.steps__item.active { color: var(--black); }
.steps__item.done   { color: var(--accent); }
.steps__item + .steps__item::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gray-200);
  margin: 0 12px;
}
.steps__num {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: var(--gray-200);
  color: var(--gray-400);
  flex-shrink: 0;
}
.steps__item.active .steps__num { background: var(--black); color: var(--white); }
.steps__item.done .steps__num   { background: var(--accent); color: var(--white); }
.steps__label { white-space: nowrap; }

/* ─── HERO ─── */
.hero {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 56px 20px 48px;
}
.hero h1 { font-size: clamp(24px, 5vw, 40px); font-weight: 700; margin-bottom: 12px; }
.hero p   { font-size: 15px; color: #aaa; max-width: 480px; margin: 0 auto; }

/* ─── FILTER TABS ─── */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 4px;
}
.filter-tabs__btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
}
.filter-tabs__btn:hover { border-color: var(--black); color: var(--black); }
.filter-tabs__btn.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* ─── PACKAGE GRID ─── */
.packages-section { padding: 24px 0 80px; }
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 900px) { .packages-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .packages-grid { grid-template-columns: 1fr; } }

.pkg-card {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--white);
  cursor: pointer;
  position: relative;
  transition: border-color .15s, box-shadow .15s;
}
.pkg-card:hover { border-color: var(--gray-700); box-shadow: var(--shadow-md); }
.pkg-card.selected {
  border-color: var(--black);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}
.pkg-card__check {
  position: absolute;
  top: 12px; right: 12px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .15s;
}
.pkg-card.selected .pkg-card__check { opacity: 1; }
.pkg-card__check svg { width: 12px; height: 12px; stroke: white; stroke-width: 3; fill: none; }
.pkg-card__badge {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.pkg-card__name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.pkg-card__price { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.pkg-card__price span { font-size: 13px; font-weight: 400; color: var(--gray-400); }
.pkg-card__duration {
  display: inline-block;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-size: 11px;
  padding: 2px 8px;
  color: var(--gray-700);
  margin-bottom: 12px;
}
.pkg-card__features { list-style: none; }
.pkg-card__features li {
  font-size: 13px;
  color: var(--gray-700);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pkg-card__features li::before {
  content: '';
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7l2.5 2.5L11 4' stroke='white' stroke-width='1.8' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-size: cover;
}

/* ─── STICKY BOTTOM BAR ─── */
.bottom-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--black);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 90;
  transform: translateY(100%);
  transition: transform .2s ease;
}
.bottom-bar.visible { transform: translateY(0); }
.bottom-bar__info { color: var(--white); }
.bottom-bar__pkg  { font-size: 13px; color: #aaa; }
.bottom-bar__price { font-size: 20px; font-weight: 700; }

/* ─── STEP PANELS ─── */
.step-panel { display: none; }
.step-panel.active { display: block; }

/* ─── SECTION HEADING ─── */
.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-top: 32px;
}
.section-subtitle {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: -12px;
  margin-bottom: 16px;
}

/* ─── STUDIO PILLS ─── */
.studio-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.studio-pill {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: all .15s;
}
.studio-pill:hover { border-color: var(--black); color: var(--black); }
.studio-pill.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* ─── DATE PICKER ─── */
.date-field {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.date-field label { font-size: 14px; font-weight: 500; white-space: nowrap; }
.date-field input[type=date] {
  flex: 1;
  max-width: 200px;
  padding: 8px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-100);
  font-size: 14px;
  color: var(--black);
  outline: none;
  transition: border-color .15s;
}
.date-field input[type=date]:focus { border-color: var(--black); }

/* ─── SLOTS GRID ─── */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.slot-btn {
  padding: 10px 4px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
}
.slot-btn:hover:not(:disabled) { border-color: var(--black); }
.slot-btn.selected { background: var(--black); color: var(--white); border-color: var(--black); }
.slot-btn:disabled, .slot-btn.booked, .slot-btn.closed {
  background: var(--gray-100);
  color: var(--gray-400);
  border-color: var(--gray-200);
  cursor: not-allowed;
  text-decoration: line-through;
}
.slot-btn .slot-label {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--gray-400);
  margin-top: 2px;
  text-decoration: none;
}
.slot-btn.booked .slot-label, .slot-btn.closed .slot-label {
  color: var(--gray-400);
}
.slots-loading { text-align: center; padding: 32px; color: var(--gray-400); }
.slots-info {
  font-size: 13px;
  color: var(--gray-700);
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 16px;
}

/* ─── BOOKING SUMMARY ─── */
.booking-summary {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.booking-summary h3 { font-size: 15px; font-weight: 600; margin-bottom: 16px; color: #aaa; }
.booking-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid #222;
}
.booking-summary__row:last-child { border-bottom: none; }
.booking-summary__label { color: #999; }
.booking-summary__value { font-weight: 500; text-align: right; }
.booking-summary__total .booking-summary__value {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

/* ─── FORM ─── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-label span { color: var(--danger); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-100);
  color: var(--black);
  font-size: 15px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--black);
  background: var(--white);
}
.form-input.error, .form-select.error { border-color: var(--danger); }
.form-hint { font-size: 12px; color: var(--gray-400); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }
.form-textarea { min-height: 80px; resize: vertical; }

/* ─── TOGGLE ─── */
.toggle-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.toggle-label { font-size: 14px; font-weight: 500; }
.toggle-sublabel { font-size: 12px; color: var(--gray-400); }
.toggle-switch {
  position: relative; width: 48px; height: 26px; flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--gray-200);
  border-radius: 26px;
  transition: background .2s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  height: 20px; width: 20px;
  left: 3px; bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn--green { background: var(--accent); color: white; }
.btn--green:hover:not(:disabled) { background: var(--accent-dark); }

.btn--black { background: var(--black); color: white; }
.btn--black:hover:not(:disabled) { background: #1a1a1a; }

.btn--outline { background: transparent; color: var(--black); border: 1.5px solid var(--gray-200); }
.btn--outline:hover:not(:disabled) { border-color: var(--black); }

.btn--danger { background: var(--danger); color: white; }
.btn--danger:hover:not(:disabled) { background: #dc2626; }

.btn--full { width: 100%; }
.btn--lg { padding: 16px 32px; font-size: 17px; }

.btn--wa {
  background: var(--accent);
  color: white;
  padding: 18px 28px;
  font-size: 17px;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(34,197,94,.35);
  width: 100%;
  justify-content: center;
}
.btn--wa:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(34,197,94,.4); }

/* ─── ALERT ─── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
}
.alert--warning { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.alert--info    { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.alert--success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.alert--danger  { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ─── CONFIRM PAGE ─── */
.confirm-card {
  max-width: 480px;
  margin: 48px auto;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.confirm-card__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}
.confirm-card__title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.confirm-card__code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 16px 0;
  cursor: pointer;
}
.confirm-card__code:hover { background: var(--gray-200); }
.confirm-card__hint { font-size: 12px; color: var(--gray-400); margin-bottom: 24px; }
.confirm-card__details {
  text-align: left;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}
.confirm-card__detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
}
.confirm-card__detail-label { color: var(--gray-400); }
.confirm-card__btn-row { display: flex; gap: 12px; }
.confirm-card__btn-row .btn { flex: 1; }

/* ─── LOADING SPINNER ─── */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── MISC ─── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--gray-400); }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--black);
  color: #666;
  text-align: center;
  padding: 24px 20px;
  font-size: 13px;
  margin-top: 80px;
}
.site-footer a { color: var(--accent); }
