@font-face {
  font-family: 'Bootzy TM';
  src: url('/fonts/BootzyTM.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Filson Pro';
  src: url('/fonts/FilsonProBook.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Filson Pro';
  src: url('/fonts/FilsonProMedium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Filson Pro';
  src: url('/fonts/FilsonProBold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Filson Pro';
  src: url('/fonts/FilsonProBlack.otf') format('opentype');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'Times Condensed Italic';
  src: url('/fonts/TimesNewRomanCondensedItalic.otf') format('opentype');
  font-style: italic;
  font-display: swap;
}

:root {
  --crema: #FFF6E3;
  --carbon: #3E3E3D;
  --azul: #6A87BC;
  --mostaza: #FFD994;
  --blanco: #FFFFFF;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--crema);
  color: var(--carbon);
  font-family: 'Filson Pro', Arial, sans-serif;
  line-height: 1.5;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.brand-header img { width: 44px; height: auto; }
.brand-header span {
  font-family: 'Bootzy TM', cursive;
  font-size: 28px;
  color: var(--azul);
}

h1 {
  font-family: 'Filson Pro', Arial, sans-serif;
  font-weight: 900;
  font-size: 28px;
  margin: 0 0 6px;
}

.tagline {
  font-family: 'Times Condensed Italic', 'Times New Roman', serif;
  font-style: italic;
  color: var(--carbon);
  opacity: 0.85;
  margin: 0 0 28px;
  font-size: 17px;
}

.card {
  background: var(--blanco);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 6px 24px rgba(62, 62, 61, 0.08);
  margin-bottom: 20px;
}

.price-tag {
  display: inline-block;
  background: var(--mostaza);
  color: var(--carbon);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 15px;
  margin-bottom: 16px;
}

.page-wide { max-width: 920px; }

.panel-title {
  font-family: 'Filson Pro', Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 14px;
}

.booking-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 720px) {
  .booking-layout { grid-template-columns: 1fr; }
}

.services-panel { display: flex; flex-direction: column; gap: 12px; }
#servicesList { display: flex; flex-direction: column; gap: 10px; }

.service-card {
  text-align: left;
  border: 2px solid #ecdfc4;
  background: var(--blanco);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  font-family: 'Filson Pro', Arial, sans-serif;
  transition: all 0.15s ease;
}
.service-card:hover { border-color: var(--azul); }
.service-card.selected { border-color: var(--azul); background: #f3f6fb; }
.service-card-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.service-card-desc { font-size: 13px; opacity: 0.75; margin-bottom: 8px; line-height: 1.4; }
.service-card-price {
  display: inline-block;
  background: var(--mostaza);
  color: var(--carbon);
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 700;
  text-transform: capitalize;
}
.cal-nav-btn {
  border: none;
  background: var(--crema);
  color: var(--azul);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}
.cal-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
  margin-bottom: 4px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}

.cal-day {
  aspect-ratio: 1;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-family: 'Filson Pro', Arial, sans-serif;
  font-size: 13px;
  cursor: pointer;
  color: var(--carbon);
}
.cal-day-empty { visibility: hidden; cursor: default; }
.cal-day:disabled { opacity: 0.25; cursor: not-allowed; }
.cal-day.has-slots { background: #f3f6fb; font-weight: 600; }
.cal-day.has-slots:hover { background: var(--mostaza); }
.cal-day.is-today { box-shadow: inset 0 0 0 1px var(--azul); }
.cal-day.selected { background: var(--azul); color: var(--blanco); }

.day-times-title { font-size: 13px; font-weight: 600; margin: 4px 0 8px; }
.day-times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px;
}
.time-btn {
  border: 2px solid var(--azul);
  background: var(--blanco);
  color: var(--azul);
  border-radius: 10px;
  padding: 8px 6px;
  font-family: 'Filson Pro', Arial, sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.time-btn:hover { background: var(--azul); color: var(--blanco); }
.time-btn.selected { background: var(--azul); color: var(--blanco); }

form .field { margin-bottom: 14px; }
label { display: block; font-weight: 500; margin-bottom: 4px; font-size: 14px; }
input[type="text"], input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd3bd;
  border-radius: 10px;
  font-family: 'Filson Pro', Arial, sans-serif;
  font-size: 15px;
}

.cta-btn {
  width: 100%;
  background: var(--azul);
  color: var(--blanco);
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  font-family: 'Filson Pro', Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  margin-top: 8px;
}
.cta-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.cta-btn:hover:not(:disabled) { background: #5a74a3; }

.msg { font-size: 14px; margin-top: 10px; }
.msg.error { color: #b23b3b; }
.msg.loading { color: var(--carbon); opacity: 0.7; }

.back-link { display: inline-block; margin-top: 18px; color: var(--azul); text-decoration: none; font-weight: 500; }

.center { text-align: center; }
.confirm-card { text-align: center; }
.confirm-card .big-emoji { font-size: 44px; }
