:root {
  --boh-red: #c8102e;
  --boh-blue: #003087;
  --boh-black: #0a0a0a;
  --boh-white: #fafafa;
  --boh-grey: #6b6b6b;
  --boh-light: #f0f0f0;
  --boh-border: #dedede;
  --boh-bg-soft: #f8f8f8;
  --boh-card: #ffffff;
  --boh-danger: #b91c1c;
  --boh-success: #116149;
  --boh-warning: #9a6200;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Source Sans 3', 'Inter', sans-serif;
}

html,
body {
  overflow-x: hidden;
}

body {
  background: var(--boh-light);
  color: var(--boh-black);
  font-family: var(--font-body);
}

.booking-page {
  padding: 8rem 2rem 4rem;
}

.booking-hero {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 2.25rem;
}

.booking-hero-logo {
  margin: 0 auto 1rem;
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.booking-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: 2px;
  line-height: 1;
  text-transform: uppercase;
}

.booking-hero-subtitle {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  letter-spacing: 2px;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: var(--boh-red);
  text-transform: uppercase;
}

.booking-hero-description {
  margin: 0.85rem auto 0;
  font-family: var(--font-body);
  color: #2e2e2e;
  max-width: 40rem;
  line-height: 1.5;
}

.google-pill {
  margin: 1.1rem auto 0;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 2px solid #dadce0;
  background: #fff;
  border-radius: 0;
  padding: 0.62rem 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  color: #222;
}

.google-logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  display: block;
}

.google-rating-block {
  display: grid;
  gap: 0.18rem;
  text-align: left;
}

.google-rating-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 1.2px;
  line-height: 1;
  text-transform: uppercase;
  color: #202124;
}

.google-stars {
  display: inline-flex;
  gap: 0.12rem;
  line-height: 1;
}

.google-star {
  color: #fbbc04;
  font-size: 1.08rem;
}

.booking-shell {
  max-width: 1200px;
  margin: 0 auto;
}

.booking-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 1px solid var(--boh-border);
  border-radius: 0;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.loader {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(10, 10, 10, 0.18);
  border-top-color: var(--boh-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.booking-alert {
  border-radius: 0;
  padding: 0.8rem 1rem;
  margin: 0 0 1rem;
  border: 1px solid rgba(185, 28, 28, 0.3);
  background: rgba(185, 28, 28, 0.09);
  color: #7b1212;
}

.is-hidden {
  display: none !important;
}

.panel {
  border: 1px solid var(--boh-border);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 1.35rem;
}

.panel-title {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 2px;
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  text-align: center;
  text-transform: uppercase;
}

.panel-subtitle {
  margin: 0.35rem 0 0;
  color: #4a4a4a;
  text-align: center;
}

.panel-header {
  display: grid;
  grid-template-columns: 5rem 1fr 5rem;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.back-btn {
  display: inline-block;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 2.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0;
  border: 2px solid #111;
  background: transparent;
  color: #111;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: #111;
  color: #fff;
  transform: translateY(-2px);
}

.arrow-icon {
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  display: inline-block;
}

.arrow-left {
  transform: rotate(-135deg);
}

.arrow-right {
  transform: rotate(45deg);
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.barber-card,
.service-card,
.slot-btn,
.action-btn {
  border-radius: 0;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #111;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.action-btn {
  min-height: 2.55rem;
  padding: 0.4rem 0.65rem;
  background: transparent;
  border: 2px solid #0a0a0a;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.barber-card:hover,
.service-card:hover,
.slot-btn:hover,
.action-btn:hover {
  border-color: rgba(200, 16, 46, 0.44);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.barber-card {
  width: 100%;
  padding: 1.45rem 1.05rem;
  text-align: center;
}

.barber-avatar {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  object-fit: cover;
  margin: 0 auto 0.55rem;
  border: 2px solid #e8e8e8;
  background: #fff;
}

.barber-avatar-fallback {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  margin: 0 auto 0.55rem;
  border: 2px solid #e8e8e8;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #fff, #ececec);
}

.card-title {
  margin: 0;
  font-size: 1.08rem;
}

.card-meta {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: #575757;
}

.tap-label {
  margin: 0.35rem 0 0;
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--boh-red);
}

.service-list {
  display: grid;
  gap: 0.65rem;
}

.service-card {
  width: 100%;
  padding: 1.1rem 1.1rem;
  text-align: left;
}

.service-name {
  margin: 0;
  font-size: 1.05rem;
}

.service-meta {
  margin: 0.22rem 0 0;
  font-size: 0.88rem;
  color: #535353;
}

.slot-toolbar {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
  align-items: center;
  gap: 0.5rem;
}

.slot-nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0;
  border: 2px solid #111;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slot-nav-btn:hover:not(:disabled) {
  background: #111;
  color: #fff;
  transform: translateY(-2px);
}

.slot-nav-btn:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.timezone-label {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4c4c4c;
}

.slot-grid-wrap {
  overflow-x: auto;
  padding-bottom: 0.3rem;
}

.slot-grid {
  min-width: 820px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.slot-column {
  display: grid;
  gap: 0.45rem;
}

.slot-heading {
  min-height: 4.25rem;
  text-align: center;
}

.slot-day-label {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b6b6b;
}

.slot-day-name {
  margin: 0.1rem 0 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.06em;
}

.slot-month {
  margin: 0.05rem 0 0;
  color: #444;
}

.slot-btn {
  width: 100%;
  text-align: center;
  padding: 0.72rem 0.55rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.slot-btn-selected {
  border-color: rgba(200, 16, 46, 0.8);
  background: rgba(200, 16, 46, 0.11);
}

.empty-chip {
  border: 1px dashed #d3d3d3;
  border-radius: 0;
  color: #6f6f6f;
  text-align: center;
  font-size: 0.77rem;
  padding: 1rem 0.45rem;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.8fr);
  gap: 0.85rem;
  align-items: start;
}

.section-block {
  border: 1px solid #ddd;
  border-radius: 0;
  background: #fff;
  padding: 1rem;
}

.section-block h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 1.25rem;
}

.checkout-form {
  display: grid;
  gap: 0.75rem;
}

.field,
.country-select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 0;
  border: 1px solid #cdcdcd;
  background: #fff;
  color: #111;
  padding: 0.62rem 0.72rem;
}

.field:focus,
.country-select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(200, 16, 46, 0.72);
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.12);
}

.field-row {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(122px, 0.38fr) minmax(0, 1fr);
}

.name-row {
  grid-template-columns: 1fr 1fr;
}

.field-wrap {
  display: grid;
  gap: 0.3rem;
}

.field-error {
  color: #9b1616;
  font-size: 0.76rem;
  min-height: 1rem;
}

.field-invalid {
  border-color: rgba(155, 22, 22, 0.6);
}

.policy-section {
  transition: border-color 0.25s ease, background 0.25s ease;
}

.policy-section.policy-section-missing {
  border: 2px solid rgba(155, 22, 22, 0.9);
  background: linear-gradient(180deg, #fff6f6 0%, #ffffff 42%);
}

#policy-checkbox-wrap.field-invalid {
  border: 2px solid rgba(155, 22, 22, 0.92);
  background: #fff0f0;
  box-shadow: 0 0 0 3px rgba(155, 22, 22, 0.15);
  border-radius: 0;
  padding: 0.72rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.97rem;
  color: #141414;
  font-weight: 600;
}

.checkbox-row input[type='checkbox'] {
  margin-top: 0.2rem;
  width: 1.08rem;
  height: 1.08rem;
  accent-color: var(--boh-red);
}

#error-policyAccepted.field-error {
  min-height: 1.2rem;
  font-size: 0.93rem;
  font-weight: 700;
  color: #8f1111;
}

.inline-link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  color: var(--boh-red);
  text-decoration: underline;
  text-underline-offset: 2px;
  font: inherit;
  cursor: pointer;
}

.hint {
  margin: 0;
  font-size: 0.84rem;
  color: #5b5b5b;
}

.summary-card {
  position: sticky;
  top: 1.5rem;
}

.summary-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  letter-spacing: 0.07em;
  font-size: 1.5rem;
}

.summary-tile {
  border: 1px solid #ddd;
  border-radius: 0;
  background: #fff;
  padding: 0.75rem;
}

.summary-tile p {
  margin: 0.15rem 0;
}

.summary-meta {
  display: grid;
  gap: 0.45rem;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #fff;
  padding: 0.75rem;
  margin-top: 0.65rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.summary-row-total {
  padding-top: 0.4rem;
  border-top: 1px solid #e4e4e4;
}

.summary-note {
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
  color: #5b5b5b;
}

.confirm-btn,
.btn-solid,
.btn-danger,
.btn-ghost {
  min-height: 2.75rem;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.confirm-btn,
.btn-solid {
  border: 0;
  background: var(--boh-red);
  color: var(--boh-white);
  width: 100%;
  padding: 0.875rem 1.1rem;
}

.confirm-btn:hover,
.btn-solid:hover {
  background: #a80d26;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 16, 46, 0.4);
}

.confirm-btn:disabled,
.btn-solid:disabled,
.btn-danger:disabled,
.btn-ghost:disabled,
.slot-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  border: 2px solid #0a0a0a;
  background: transparent;
  color: #0a0a0a;
  padding: 0.72rem 1rem;
}

.btn-ghost:hover:not(:disabled) {
  background: #0a0a0a;
  color: #fafafa;
  transform: translateY(-2px);
}

.btn-danger {
  border: 0;
  background: #8f0d21;
  color: #fff;
  padding: 0.72rem 1rem;
}

.btn-danger:hover:not(:disabled) {
  background: #730b1a;
  transform: translateY(-2px);
}

.small-actions {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.message-error,
.message-success,
.policy-banner {
  margin-top: 0.65rem;
  border-radius: 0;
  padding: 0.65rem 0.72rem;
  font-size: 0.9rem;
}

.message-error {
  border: 1px solid rgba(185, 28, 28, 0.32);
  background: rgba(185, 28, 28, 0.09);
  color: #861515;
}

.message-success {
  border: 1px solid rgba(17, 97, 73, 0.3);
  background: rgba(17, 97, 73, 0.09);
  color: #114b3a;
}

.policy-banner {
  border: 1px solid rgba(154, 98, 0, 0.35);
  background: rgba(154, 98, 0, 0.1);
  color: #7a4f00;
}

.confirm-stack {
  display: grid;
  gap: 0.75rem;
}

.confirm-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 97, 73, 0.35);
  border-radius: 999px;
  background: rgba(17, 97, 73, 0.09);
  color: #114b3a;
  padding: 0.28rem 0.65rem;
  font-size: 0.73rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.confirm-status.cancelled {
  border-color: rgba(185, 28, 28, 0.35);
  background: rgba(185, 28, 28, 0.1);
  color: #7f1212;
}

.location-card iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 0.8rem;
}

.location-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.65rem;
}

.icon-btn {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.72rem;
  border: 1px solid #d2d2d2;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #171717;
}

.payment-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d6d6d6;
  border-radius: 999px;
  padding: 0.2rem 0.58rem;
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #4d4d4d;
}

.inline-summary {
  margin-top: 0.8rem;
}

.inline-summary .summary-tile p {
  font-size: 0.93rem;
}

.empty-text {
  text-align: center;
  color: #5e5e5e;
  padding: 1.2rem 0.5rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(10, 10, 10, 0.62);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  width: min(460px, 100%);
  border-radius: 1rem;
  border: 1px solid #d7d7d7;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.modal-card-wide {
  width: min(760px, 100%);
  max-height: 88vh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.modal-card h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.07em;
  font-size: 1.7rem;
  text-align: center;
}

.modal-subtext {
  margin: 0.45rem 0 0;
  text-align: center;
  color: #4c4c4c;
}

.modal-scroll {
  min-height: 0;
  overflow-y: auto;
  margin-top: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.82rem;
  padding: 0.7rem;
  background: #fff;
}

.modal-actions {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.modal-actions-single {
  grid-template-columns: 1fr;
}

.reschedule-day {
  border: 1px solid #ddd;
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
}

.reschedule-day-toggle {
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  padding: 0.65rem 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  cursor: pointer;
}

.reschedule-slots {
  border-top: 1px solid #e5e5e5;
  padding: 0.68rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.reschedule-slot-btn {
  border-radius: 0;
  border: 1px solid #d7d7d7;
  background: #fff;
  padding: 0.62rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reschedule-slot-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.reschedule-slot-btn.selected {
  border-color: rgba(200, 16, 46, 0.75);
  background: rgba(200, 16, 46, 0.09);
}

.policy-warning {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  color: #7a4f00;
  text-align: center;
}

@media (max-width: 1080px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .booking-page {
    padding-top: 6.8rem;
  }

  .grid-cards {
    grid-template-columns: 1fr;
  }

  .slot-grid {
    min-width: 680px;
  }

  .small-actions {
    grid-template-columns: 1fr;
  }

  .panel-header {
    grid-template-columns: 4.5rem 1fr 4.5rem;
  }

  .field-row,
  .name-row {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }

  .reschedule-slots {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 480px) {
  .booking-page {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    padding-bottom: 2.8rem;
  }

  .panel {
    padding: 0.9rem;
  }

  .slot-grid {
    min-width: 560px;
  }

  .booking-hero h1 {
    letter-spacing: 0.06em;
  }

  .booking-hero-description {
    font-size: 0.93rem;
  }

  .google-pill {
    padding: 0.5rem 0.75rem;
    gap: 0.55rem;
  }

  .google-logo {
    width: 1.7rem;
    height: 1.7rem;
  }

  .google-rating-text {
    font-size: 1rem;
  }

  .google-star {
    font-size: 0.95rem;
  }
}
