* {
  box-sizing: border-box;
}

:root {
  --navy: #101b3d;
  --blue: #304dcc;
  --blue-2: #5368ed;
  --text: #18213d;
  --muted: #68728e;
  --line: #e4e8f1;
  --soft: #f5f7fb;
  --soft-blue: #eef2ff;
  --cream: #f7f1ed;
  --green: #0aa76d;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(29, 45, 82, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7f9fc;
  color: var(--text);
  font-family: "DM Sans", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  width: min(1440px, calc(100% - 34px));
  margin: 0 auto;
  min-height: 100vh;
}

.topbar {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #edf0f6;
  padding: 0 18px;
}

.brand-area {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand {
  color: #173896;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1.7px;
}

.brand-divider {
  width: 1px;
  height: 44px;
  background: var(--line);
  margin: 0 18px;
}

.shop-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.shop-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  background: #f0e4dd;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 22px;
}

.shop-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-name {
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-location {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #536079;
}

.desktop-nav a {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
}

.desktop-nav a:hover {
  color: var(--blue);
}

.heart {
  font-size: 29px;
  line-height: 1;
}

.nav-tag {
  color: #67718d;
  font-size: 12px;
  line-height: 1.15;
}

.mobile-menu {
  display: none;
  border: 0;
  background: transparent;
  font-size: 25px;
  color: var(--navy);
}

.mobile-nav {
  display: none;
}

.hero {
  margin-top: 18px;
  min-height: 205px;
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  border-radius: 14px;
  overflow: hidden;
  background: #f4eee9;
  border: 1px solid #eee7e1;
}

.hero-copy {
  padding: 35px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero h1 {
  margin: 0;
  color: #111522;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.03;
  font-weight: 600;
}

.hero-copy > p {
  margin: 8px 0 20px;
  color: #31343d;
  font-size: 16px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #363c49;
  font-size: 12px;
}

.hero-visual {
  min-height: 205px;
  background:
    linear-gradient(90deg, rgba(247, 241, 237, .1), rgba(247, 241, 237, .05)),
    radial-gradient(circle at 65% 40%, rgba(255,255,255,.9), transparent 26%),
    linear-gradient(135deg, #eee1d8, #d8c6b8 52%, #efe5dd);
  position: relative;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.52);
  filter: blur(1px);
}

.hero-visual::before {
  width: 110px;
  height: 110px;
  right: 24%;
  top: 20px;
}

.hero-visual::after {
  width: 70px;
  height: 70px;
  right: 12%;
  bottom: 18px;
}

.hero-visual-overlay {
  position: absolute;
  inset: auto 30px 24px auto;
  z-index: 1;
  text-align: right;
  color: #322c29;
}

.hero-visual-overlay span {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 25px;
}

.hero-visual-overlay small {
  font-size: 10px;
  letter-spacing: .12em;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
  align-items: stretch;
}

.booking-panel {
  background: var(--white);
  border: 1px solid #e6e9f0;
  border-radius: 14px;
  padding: 18px;
  min-width: 0;
  box-shadow: 0 4px 18px rgba(28, 45, 78, .025);
}

.step-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 17px;
}

.step-number {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: #eef2ff;
  color: #294ac6;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}

.step-heading h2 {
  margin: 0;
  font-size: 17px;
}

.step-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.service-list {
  display: grid;
  gap: 9px;
}

.service-card {
  width: 100%;
  min-height: 99px;
  display: grid;
  grid-template-columns: 94px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px;
  background: #fff;
  border: 1px solid #e1e5ee;
  border-radius: 10px;
  text-align: left;
  color: var(--text);
  transition: .18s ease;
}

.service-card:hover {
  border-color: #9cacfb;
  transform: translateY(-1px);
}

.service-card.selected {
  border-color: #4864df;
  box-shadow: 0 0 0 1px #4864df inset;
}

.service-image {
  width: 94px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #eee6df, #d7cbc2);
  display: grid;
  place-items: center;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-placeholder {
  font-size: 27px;
  color: #78665b;
}

.service-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.service-info strong {
  font-size: 14px;
}

.service-info span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.service-info small {
  color: #4b5264;
  font-size: 11px;
}

.service-price {
  min-width: 62px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.service-price strong {
  font-size: 14px;
}

.radio-dot {
  width: 18px;
  height: 18px;
  border: 1.5px solid #aab2c5;
  border-radius: 50%;
  position: relative;
}

.radio-dot.active {
  border-color: #3155d6;
}

.radio-dot.active::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #3155d6;
  border-radius: 50%;
  inset: 4px;
}

.staff-block {
  margin-top: 16px;
}

.staff-block label,
.details-panel label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 7px;
}

.staff-block select,
.details-panel input {
  width: 100%;
  height: 42px;
  border: 1px solid #dce1eb;
  border-radius: 8px;
  background: white;
  padding: 0 12px;
  outline: none;
  color: #2b334a;
}

.staff-block select:focus,
.details-panel input:focus {
  border-color: #5770e5;
  box-shadow: 0 0 0 3px #eef2ff;
}

.field-note {
  color: #7a8296;
  font-size: 11px;
  margin: 7px 0 0;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px 14px;
}

.calendar-header strong {
  font-size: 15px;
}

.calendar-header button {
  border: 0;
  background: transparent;
  font-size: 27px;
  color: #18233f;
  width: 34px;
  height: 34px;
}

.date-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.date-card {
  border: 0;
  border-radius: 9px;
  background: #f5f7fb;
  min-height: 68px;
  color: #4f5870;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.date-card span {
  font-size: 10px;
}

.date-card strong {
  font-size: 18px;
  color: #26304a;
}

.date-card small {
  font-size: 9px;
  color: #8b92a5;
}

.date-card.selected {
  background: linear-gradient(180deg, #3558d4, #2748c1);
  color: white;
  box-shadow: 0 6px 14px rgba(44, 75, 200, .25);
}

.date-card.selected strong,
.date-card.selected small {
  color: white;
}

.date-card.disabled {
  opacity: .38;
  cursor: not-allowed;
}

.timezone {
  margin: 14px 0 16px;
  padding: 11px 12px;
  border-radius: 8px;
  background: #f7f8fb;
  color: #59627a;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}

.slot-title {
  font-size: 13px;
  margin: 0 0 10px;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.time-slot {
  height: 39px;
  border: 1px solid #dce2ec;
  background: white;
  border-radius: 7px;
  color: #25304a;
  font-size: 12px;
}

.time-slot:hover,
.time-slot.selected {
  border-color: #3155d6;
  background: #3155d6;
  color: white;
}

.empty-slot {
  padding: 24px 10px;
  text-align: center;
  border-radius: 9px;
  background: #f7f8fb;
  color: var(--muted);
  font-size: 12px;
}

.details-panel label {
  margin-top: 13px;
}

.details-panel label:first-of-type {
  margin-top: 0;
}

.details-panel label span {
  color: #9299a9;
  font-weight: 400;
}

.phone-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 6px;
}

.country-code {
  height: 42px;
  border: 1px solid #dce1eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #384158;
  font-size: 12px;
}

.summary-card {
  margin-top: 16px;
  padding: 14px;
  background: #f5f7fb;
  border-radius: 9px;
  min-height: 130px;
}

.summary-title {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
}

.summary-title button {
  border: 0;
  background: transparent;
  color: #3155d6;
  font-size: 11px;
}

.summary-empty {
  color: #7c8497;
  font-size: 12px;
  margin: 20px 0 4px;
}

.summary-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #333b50;
  font-size: 12px;
  margin: 9px 0;
}

.summary-row > span {
  width: 18px;
  color: #5e6a87;
}

.summary-row div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-row small {
  color: #81889a;
  font-size: 10px;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #dfe3ec;
  margin-top: 12px;
  padding-top: 11px;
  font-size: 12px;
}

.summary-total strong {
  font-size: 15px;
}

.pay-at-venue {
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  text-align: right;
  margin-top: 4px;
}

.primary-btn {
  width: 100%;
  min-height: 45px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #3155cf, #405bd9);
  color: white;
  font-weight: 700;
  margin-top: 13px;
  box-shadow: 0 7px 15px rgba(49, 85, 207, .18);
}

.primary-btn:hover {
  filter: brightness(1.04);
}

.secure-note {
  text-align: center;
  color: #80889b;
  font-size: 10px;
  margin-top: 9px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 8px 28px;
  color: #69738a;
  font-size: 11px;
}

.footer > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer strong {
  color: #1c2947;
}

.footer-right {
  color: #8a91a2;
}

.loading-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #6e778c;
}

.loading-logo {
  color: #173896;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -2px;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #e5e9f3;
  border-top-color: #3558d4;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.loading-screen p {
  font-size: 13px;
}

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

.error-page,
.confirmation-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f7f9fc;
}

.error-card,
.confirmation-card {
  width: min(520px, 100%);
  background: white;
  border: 1px solid #e2e7f0;
  border-radius: 20px;
  padding: 42px;
  text-align: center;
  box-shadow: var(--shadow);
}

.error-icon,
.success-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
}

.error-icon {
  background: #fff0f0;
  color: #e03434;
}

.success-icon {
  background: #e9faf2;
  color: #08a66c;
}

.error-card h1,
.confirmation-card h1 {
  margin: 0 0 10px;
  color: #14203f;
  font-size: 28px;
}

.error-card p,
.confirmation-card p {
  color: var(--muted);
  line-height: 1.6;
}

.confirmation-summary {
  margin: 22px 0;
  padding: 18px;
  background: #f5f7fb;
  border-radius: 12px;
  display: grid;
  gap: 7px;
}

.confirmation-summary span {
  color: #667087;
  font-size: 13px;
}

.confirmation-note {
  font-size: 12px;
}

.confirmation-note code {
  background: #eef2ff;
  padding: 2px 5px;
  border-radius: 4px;
}

.powered-small {
  margin-top: 20px;
  color: #8b93a4;
  font-size: 11px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #17213d;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 12px;
  z-index: 100;
  transition: .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 1100px) {
  .booking-grid {
    grid-template-columns: 1fr 1fr;
  }

  .details-panel {
    grid-column: 1 / -1;
  }

  .hero {
    grid-template-columns: 1fr .75fr;
  }

  .desktop-nav {
    gap: 15px;
  }
}

@media (max-width: 800px) {
  .site-shell {
    width: 100%;
  }

  .topbar {
    height: 76px;
    padding: 0 16px;
  }

  .brand {
    font-size: 27px;
  }

  .brand-divider {
    margin: 0 10px;
    height: 38px;
  }

  .shop-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .shop-name {
    max-width: 185px;
    font-size: 14px;
  }

  .shop-location {
    font-size: 11px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-nav {
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: .2s ease;
  }

  .mobile-nav.open {
    max-height: 160px;
    padding: 8px 18px;
  }

  .mobile-nav a {
    display: block;
    color: #34405c;
    text-decoration: none;
    padding: 10px 0;
    font-size: 13px;
  }

  .hero {
    margin: 10px;
    min-height: 180px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 25px 22px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .hero-visual {
    display: none;
  }

  .trust-row {
    gap: 9px 14px;
  }

  .booking-grid {
    display: flex;
    flex-direction: column;
    margin: 10px;
  }

  .booking-panel {
    padding: 15px;
  }

  .service-card {
    grid-template-columns: 82px 1fr auto;
  }

  .service-image {
    width: 82px;
    height: 72px;
  }

  .date-strip {
    grid-template-columns: repeat(5, 1fr);
  }

  .footer {
    padding: 14px 18px 25px;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .footer-right {
    display: none;
  }
}

@media (max-width: 480px) {
  .shop-name {
    max-width: 140px;
  }

  .hero {
    margin: 8px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-copy > p {
    font-size: 14px;
  }

  .booking-grid {
    margin: 8px;
  }

  .step-heading h2 {
    font-size: 15px;
  }

  .step-heading p {
    font-size: 10px;
  }

  .service-card {
    grid-template-columns: 72px 1fr auto;
    gap: 8px;
  }

  .service-image {
    width: 72px;
    height: 66px;
  }

  .service-info span {
    display: none;
  }

  .service-info strong {
    font-size: 12px;
  }

  .service-price strong {
    font-size: 12px;
  }

  .time-slots {
    grid-template-columns: repeat(2, 1fr);
  }

  .error-card,
  .confirmation-card {
    padding: 30px 22px;
  }
}
