:root {
  font-family: "Aptos", "Segoe UI Variable Text", "SF Pro Text", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: #17231f;
  background: #f7f6f2;
  --accent: var(--brand);
  --accent-dark: var(--brand-dark);
  --ink: #17231f;
  --muted: #6e7873;
  --line: #e2e4df;
  --surface: #ffffff;
  --soft: #f7f3ee;
  --success: #39735d;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 5%, rgba(var(--brand-rgb), .07), transparent 28rem),
    linear-gradient(180deg, #fbfbf9 0, #f5f5f1 100%);
}

a { color: var(--accent-dark); text-underline-offset: 3px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 3px solid #28728f;
  outline-offset: 3px;
}

.brand {
  width: min(1180px, calc(100% - 48px));
  min-height: 76px;
  margin: 18px auto 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand__identity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand__identity img { width: 58px; height: 58px; object-fit: contain; }
.brand__identity > span { font-size: 1.28rem; font-weight: 780; letter-spacing: -.04em; }
.brand__identity small { color: var(--accent); font: inherit; }
.language select {
  min-width: 138px;
  padding: 10px 36px 10px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, .88);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(23, 35, 31, .035);
}

.booking-progress { width: min(540px, calc(100% - 40px)); margin: 7px auto 24px; }
.booking-progress ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.booking-progress ol::before,
.booking-progress ol::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset-block-start: 17px;
  inset-inline-start: 25%;
  width: 50%;
  height: 2px;
  border-radius: 10px;
}
.booking-progress ol::before { background: #d8dcd8; }
.booking-progress ol::after {
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .32s ease;
}
body[data-stage="details"] .booking-progress ol::after,
body[data-stage="success"] .booking-progress ol::after { transform: scaleX(1); }
.booking-progress li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #818985;
  font-size: .72rem;
  font-weight: 720;
  letter-spacing: .075em;
  text-align: center;
  text-transform: uppercase;
}
.booking-progress__marker {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #727b77;
  background: #fbfbf9;
  border: 2px solid #cdd2ce;
  border-radius: 50%;
  font-size: .75rem;
  transition: color .2s, background .2s, border-color .2s;
}
.booking-progress li[data-state="active"] { color: var(--ink); }
.booking-progress li[data-state="active"] .booking-progress__marker {
  color: var(--accent-dark);
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(var(--brand-rgb), .09);
}
.booking-progress li[data-state="complete"] { color: var(--accent-dark); }
.booking-progress li[data-state="complete"] .booking-progress__marker {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.booking-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto 32px; }
.booking-stage { animation: stage-in .22s ease-out both; }
.booking-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(28, 43, 37, .12);
  border-radius: 26px;
  box-shadow: 0 22px 65px rgba(25, 38, 33, .09), 0 2px 8px rgba(25, 38, 33, .04);
}
.booking-card--time { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr); min-height: 675px; }

#notice:not(:empty) {
  max-width: 900px;
  margin: 0 auto 18px;
  padding: 13px 17px;
  color: #71451f;
  background: #fff8ef;
  border: 1px solid #ead9c4;
  border-radius: 12px;
  font-size: .84rem;
  line-height: 1.55;
  box-shadow: 0 7px 20px rgba(71, 45, 22, .035);
}
.intro {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 44px 48px 32px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, .06), transparent 16rem),
    linear-gradient(145deg, #71351f 0%, var(--accent-dark) 58%, #984a2d 130%);
}
.intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -7rem -9rem auto;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: .67rem;
  font-weight: 780;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.intro .eyebrow { color: rgba(255, 255, 255, .9); }
h1 { margin: 0; font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 760; letter-spacing: -.055em; line-height: 1.05; }
.intro h1 { max-width: 440px; }
.description { max-width: 500px; margin: 13px 0 21px; color: rgba(255, 255, 255, .94); font-size: .91rem; line-height: 1.62; }
.host { display: flex; align-items: center; gap: 12px; }
.host__photo {
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .76);
  object-fit: cover;
  box-shadow: 0 5px 18px rgba(56, 23, 12, .13);
}
.host strong { display: block; font-size: .91rem; }
.host small { display: block; margin-top: 3px; color: rgba(255, 255, 255, .9); font-size: .76rem; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 17px 0 21px; }
.facts p {
  margin: 0;
  padding: 6px 10px;
  color: rgba(255, 255, 255, .94);
  background: rgba(255, 255, 255, .095);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  font-size: .7rem;
}
.facts p:first-child { color: #fff; font-weight: 680; }

.calendar-wrap { margin-top: auto; padding-top: 4px; }
.calendar-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.calendar-bar h2 { margin: 0; font-size: 1.08rem; font-weight: 700; letter-spacing: -.02em; }
.calendar-nav { display: flex; gap: 3px; }
.calendar-nav button {
  width: 37px;
  height: 37px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
  font-size: 1.3rem;
}
.calendar-nav button:hover:not(:disabled) { background: rgba(255, 255, 255, .18); }
.calendar-nav button:disabled { cursor: default; opacity: .3; }
.weekdays, .calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.weekdays { margin: 16px 0 9px; color: rgba(255, 255, 255, .92); font-size: .68rem; font-weight: 700; text-align: center; text-transform: uppercase; }
.calendar > span { min-width: 0; }
.calendar button {
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  font-size: .82rem;
  font-weight: 650;
  transition: background .13s, border-color .13s, color .13s;
}
.calendar button:not(:disabled):hover { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .25); }
.calendar button:disabled { cursor: default; color: rgba(255, 255, 255, .28); }
.calendar button[data-availability="unavailable"] { background: rgba(9, 29, 22, .3); border-color: rgba(255, 255, 255, .09); color: rgba(255, 255, 255, .34); }
.calendar button[data-today="true"] { border-color: rgba(255, 255, 255, .48); }
.calendar button:not(:disabled)[aria-pressed="true"] { color: var(--accent-dark); background: #fff; border-color: #fff; box-shadow: 0 6px 18px rgba(55, 24, 12, .18); }
.help { margin: 19px 0 0; color: rgba(255, 255, 255, .94); font-size: .72rem; line-height: 1.5; }
.help a { color: #fff; font-weight: 620; }

.scheduler { min-width: 0; padding: 48px 46px 38px; }
.section-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 30px; }
.section-heading__number {
  width: 37px;
  height: 37px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--accent-dark);
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-strong);
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 780;
}
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { margin: 0; font-size: 1.45rem; font-weight: 740; letter-spacing: -.035em; }
.section-heading h1 { font-size: clamp(1.8rem, 3vw, 2.45rem); }
.control-group { margin-bottom: 23px; }
.control-label { margin: 0 0 9px; color: var(--ink); font-size: .78rem; font-weight: 700; }
.duration { display: flex; gap: 4px; padding: 4px; background: #f0f2ef; border: 1px solid #eaede9; border-radius: 12px; }
.duration button {
  min-height: 43px;
  flex: 1 1 100px;
  padding: 8px 13px;
  color: #606a65;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
}
.duration button:hover:not(:disabled) { color: var(--ink); }
.duration button[aria-pressed="true"] { color: var(--ink); background: #fff; border-color: #dfe3df; box-shadow: 0 3px 8px rgba(21, 34, 28, .06); font-weight: 650; }
.duration button:disabled { cursor: default; opacity: .52; }

.timezone-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 26px;
  padding: 11px 13px;
  background: #fafaf8;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.timezone-card__icon { width: 29px; height: 29px; display: grid; flex: 0 0 auto; place-items: center; color: var(--accent-dark); background: var(--brand-soft); border-radius: 50%; font-size: 1rem; }
.timezone-card p { margin: 0; color: var(--muted); font-size: .69rem; line-height: 1.35; }
.timezone-card strong { display: block; margin-top: 2px; color: var(--ink); font-size: .79rem; font-weight: 650; }
.slot-heading { display: flex; align-items: center; gap: 12px; margin: 0 0 13px; }
.slot-heading h3 { margin: 0; color: var(--ink); font-size: .88rem; font-weight: 700; line-height: 1.45; }
.slot-heading__line { height: 1px; flex: 1; background: var(--line); }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-height: 330px; overflow-y: auto; padding: 2px 4px 2px 2px; scrollbar-color: #c2c8c3 transparent; }
.slots p { grid-column: 1 / -1; margin: 4px 0; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.slots button {
  min-height: 49px;
  padding: 10px;
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid #dec9bc;
  border-radius: 11px;
  font-weight: 680;
  transition: color .13s, background .13s, border-color .13s, transform .13s;
}
.slots button:hover { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.slots button[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }

.booking-card--details { max-width: 970px; margin: 0 auto; }
.details-content { padding: 47px 50px 0; }
.appointment-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 19px;
  background: var(--soft);
  border: 1px solid #eadfd6;
  border-radius: 15px;
}
.appointment-summary__icon { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; color: #fff; background: var(--success); border-radius: 50%; font-weight: 800; }
.appointment-summary__copy { min-width: 0; flex: 1; }
#selection { margin: 0; color: var(--ink); font-size: .91rem; font-weight: 680; line-height: 1.55; }
.company { margin: 3px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 2px;
  color: var(--accent-dark);
  background: transparent;
  border: 0;
  font-weight: 700;
  text-decoration: none;
}
.text-button:hover { text-decoration: underline; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
.field label { display: block; margin: 0 0 8px; color: var(--ink); font-size: .79rem; font-weight: 680; }
.field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #aeb8b2;
  border-radius: 11px;
  transition: border-color .13s, box-shadow .13s;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .09); outline: 0; }
.field input[readonly] { color: #59645f; background: #f5f6f4; border-color: var(--line); }
.small { margin: 16px 0 28px; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.public-details { margin: 21px 0 28px; }
.public-details__security { max-width: 440px; margin-bottom: 19px; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #38443f;
  font-size: .79rem;
  line-height: 1.55;
}
.consent input {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--accent);
}
.privacy-note { margin: 12px 0 0; color: var(--muted); font-size: .74rem; line-height: 1.55; }
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-inline: -50px;
  padding: 22px 50px;
  background: #f5f6f3;
  border-top: 1px solid var(--line);
}
.primary, .secondary {
  min-height: 48px;
  padding: 11px 21px;
  border-radius: 999px;
  font-weight: 700;
}
.primary { color: #fff; background: var(--accent); border: 1px solid var(--accent); }
.primary:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); }
.primary:disabled { cursor: default; opacity: .55; }
.secondary { color: var(--accent-dark); background: #fff; border: 1px solid #d5b29d; }
.secondary:hover { background: var(--brand-soft); border-color: var(--accent); }
.form-actions .primary { min-width: 205px; }
a.primary { display: flex; align-items: center; justify-content: center; text-decoration: none; }

.booking-card--success { max-width: 760px; margin: 0 auto; padding: 62px 54px; text-align: center; }
.success-mark { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 22px; color: #fff; background: var(--success); border-radius: 50%; box-shadow: 0 8px 24px rgba(57, 115, 93, .2); font-size: 1.7rem; font-weight: 800; }
.booking-card--success .eyebrow { margin-bottom: 9px; }
.booking-card--success h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.success-copy { max-width: 570px; margin: 17px auto 22px; color: var(--muted); line-height: 1.7; }
.success-summary { max-width: 600px; margin: 0 auto 21px; padding: 14px 18px; color: var(--ink); background: var(--soft); border: 1px solid #eadfd6; border-radius: 12px; font-size: .86rem; font-weight: 650; line-height: 1.55; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
[hidden] { display: none !important; }

html[dir="rtl"] .calendar-nav button,
html[dir="rtl"] #back-to-time span { transform: scaleX(-1); }

@keyframes stage-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .booking-card--time { grid-template-columns: minmax(0, 1fr) minmax(355px, .92fr); }
  .intro { padding: 38px 34px 30px; }
  .scheduler { padding: 40px 32px 32px; }
  .description { font-size: .85rem; }
  .slots { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .brand { width: calc(100% - 32px); min-height: 62px; margin-top: 8px; }
  .brand__identity img { width: 45px; height: 45px; }
  .brand__identity > span { font-size: 1rem; }
  .language select { min-width: 0; max-width: 135px; padding: 8px 29px 8px 9px; font-size: .75rem; }
  .booking-progress { margin-top: 5px; margin-bottom: 18px; }
  .booking-progress li { font-size: .62rem; letter-spacing: .045em; }
  .booking-progress__marker { width: 32px; height: 32px; }
  .booking-progress ol::before, .booking-progress ol::after { inset-block-start: 15px; }
  .booking-shell { width: calc(100% - 24px); margin-bottom: 22px; }
  .booking-card { border-radius: 19px; }
  .booking-card--time { display: block; min-height: 0; }
  .intro { padding: 29px 23px 25px; }
  .intro h1 { font-size: 2rem; }
  .description { margin-bottom: 17px; }
  .facts { margin-bottom: 24px; }
  .scheduler { padding: 29px 23px 26px; }
  .section-heading { margin-bottom: 23px; }
  .section-heading h2 { font-size: 1.25rem; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 330px; }
  .details-content { padding: 30px 23px 0; }
  .appointment-summary { align-items: flex-start; padding: 15px; }
  .appointment-summary__icon { width: 32px; height: 32px; }
  .field-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 23px; }
  .form-actions { margin-inline: -23px; padding: 18px 23px; }
  .form-actions .primary { min-width: 0; }
  .booking-card--success { padding: 46px 25px; }
}

@media (max-width: 410px) {
  .brand__identity > span { display: none; }
  .intro { padding-inline: 14px; }
  .weekdays, .calendar { gap: 2px; }
  .calendar-nav button { width: 44px; height: 44px; }
  .slots { grid-template-columns: 1fr; }
  .appointment-summary { display: grid; grid-template-columns: 32px minmax(0, 1fr); }
  .appointment-summary__icon { grid-column: 1; }
  .appointment-summary__copy { grid-column: 2; }
  .appointment-summary .text-button { grid-column: 2; justify-self: start; padding-top: 0; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
