/* --- Fonts --- */
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-SemiBold.woff2") format("woff2"), url("fonts/Inter-SemiBold.woff") format("woff");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Regular.woff2") format("woff2"), url("fonts/Inter-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-SemiBold.woff2") format("woff2"), url("fonts/PlayfairDisplay-SemiBold.woff") format("woff");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* --- Tokens --- */
:root {
  --navy:   #222759;
  --blue:   #2e4e9d;
  --sky:    #61c4eb;
  --mid:    #5f84cf;
  --light:  #c8dcff;
  --orange: #ec631d;
  --orange-hover: #ff8648;
  --bg:     #f5fcff;
  --white:  #ffffff;
  --text:   #1f1f1f;
  --radius-card: 15px;
  --radius-btn:  13px;
  --font-main:   "Inter", sans-serif;
  --font-head:   "Playfair Display", sans-serif;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--navy);
  min-width: 320px;
  line-height: 1.4;
  font-size: 16px;
}

/* --- Header / Nav --- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  padding: 14px 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 22px;
  color: var(--navy);
  white-space: nowrap;
}
.logo img { width: 40px; }

.city-tabs {
  display: flex;
  gap: 8px;
}

.tab {
  padding: 8px 22px;
  border: 1.5px solid #d0d8ef;
  border-radius: 20px;
  background: var(--white);
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  transition: all 0.2s;
}
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 280px;
  background: var(--sky);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

#hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(34,39,89,0.7) 0%, rgba(34,39,89,0.2) 60%, transparent 100%);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: 40px 40px 40px;
  max-width: 700px;
  color: var(--white);
}

.hero-text h1 {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.1;
}

.hero-text .address {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 6px;
}

/* --- Main layout --- */
.booking {
  max-width: 860px;
  margin: 48px auto 80px;
  padding: 0 24px;
}

.step { margin-bottom: 48px; }
.step h2 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 20px;
}
.hidden { display: none !important; }

/* --- Service cards --- */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  border: 1.5px solid #dce6f5;
  border-radius: var(--radius-card);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.service-card:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(46,78,157,0.12); }
.service-card.selected { border-color: var(--orange); box-shadow: 0 4px 16px rgba(236,99,29,0.15); }

.service-card img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.service-info { flex: 1; }
.service-info h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.service-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 8px;
}
.service-meta {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: var(--orange);
  border-radius: 20px;
  padding: 3px 12px;
}

/* --- Stylist chips --- */
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.chip-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border: 1.5px solid #dce6f5;
  border-radius: 40px;
  background: var(--white);
  transition: all 0.2s;
}
.chip:hover .chip-inner { border-color: var(--blue); }
.chip.active .chip-inner { background: var(--navy); border-color: var(--navy); color: var(--white); }

.chip-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
}
.chip-photo-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

.chip-name { font-size: 14px; font-weight: 600; color: var(--navy); }
.chip.active .chip-name { color: var(--white); }
.chip-lang { font-size: 11px; color: #888; display: block; }
.chip.active .chip-lang { color: rgba(255,255,255,0.65); }

/* --- Calendar --- */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 4px;
}
.cal-header span {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
}
.cal-nav {
  width: 36px;
  height: 36px;
  border: 1.5px solid #dce6f5;
  border-radius: 50%;
  background: var(--white);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: all 0.2s;
}
.cal-nav:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day-name {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  padding: 6px 0;
  text-transform: uppercase;
}
.cal-day {
  text-align: center;
  padding: 10px 4px;
  border-radius: 10px;
  font-size: 14px;
}
button.cal-day {
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-weight: 600;
}
.cal-day.available { background: var(--light); color: var(--navy); }
.cal-day.available:hover { background: var(--orange); color: var(--white); }
.cal-day.unavailable { color: #ccc; }
.cal-day.past { color: #ddd; }

/* --- Time slots --- */
#time-slots { display: flex; flex-wrap: wrap; gap: 10px; }

.time-slot {
  padding: 10px 20px;
  border: 1.5px solid #dce6f5;
  border-radius: var(--radius-btn);
  background: var(--white);
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  transition: all 0.2s;
}
.time-slot:hover { border-color: var(--blue); color: var(--blue); }
.time-slot.selected { background: var(--orange); color: var(--white); border-color: var(--orange); }

/* --- Form --- */
#booking-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
}
#booking-form input {
  height: 52px;
  padding: 0 18px;
  border: 1.5px solid #dce6f5;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
#booking-form input::placeholder { color: #aaa; }
#booking-form input:focus { border-color: var(--blue); }

#booking-form button[type=submit] {
  height: 52px;
  padding: 0 34px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.5px;
}
#booking-form button[type=submit]:hover { background: var(--orange-hover); }
#booking-form button[type=submit]:disabled { opacity: 0.5; cursor: default; }

/* --- Confirmation --- */
.confirm-box {
  background: var(--light);
  border: 1.5px solid var(--blue);
  border-radius: var(--radius-card);
  padding: 32px;
}
.confirm-box h3 {
  font-family: var(--font-head);
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 12px;
}

/* --- Error --- */
.error {
  background: #fdecea;
  border: 1.5px solid #f5c6cb;
  border-radius: 10px;
  padding: 14px 18px;
  color: #c62828;
  margin-top: 16px;
  font-size: 14px;
}

.loading { color: #888; font-style: italic; font-size: 14px; }

/* --- Responsive --- */
@media (max-width: 640px) {
  .hero-text h1 { font-size: 32px; }
  .hero-text { padding: 24px 20px; }
  .logo span { display: none; }
  .city-tabs { gap: 6px; }
  .tab { padding: 7px 14px; font-size: 13px; }
  .booking { margin-top: 28px; }
  .step h2 { font-size: 24px; }
}
