:root {
  --ink: #11100f;
  --ink-soft: #1c1a18;
  --cream: #f3eddf;
  --paper: #fffdf7;
  --muted: #777168;
  --red: #a92d2c;
  --red-dark: #81211f;
  --gold: #c79a48;
  --line: #ded6c7;
  --green: #28734a;
  --shadow: 0 24px 70px rgba(18, 15, 10, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 20%, rgba(199,154,72,.09), transparent 28%),
    linear-gradient(135deg, #f7f3e9 0%, #eee5d5 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

button, input { font: inherit; }
button { cursor: pointer; }

.hidden { display: none !important; }

.top-stripe {
  height: 8px;
  background: repeating-linear-gradient(115deg, #173c67 0 38px, #f5f0e5 38px 76px, #a42e2d 76px 114px, #f5f0e5 114px 152px);
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; gap: 13px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark, .review-icon {
  width: 48px; height: 48px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--cream); font-family: Georgia, serif; font-size: 13px; letter-spacing: 1px;
  box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 5px rgba(199,154,72,.45);
}
.brand strong { display: block; text-transform: uppercase; font: 700 20px/1 Georgia, serif; letter-spacing: .7px; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; letter-spacing: .4px; }
.header-meta { text-align: right; padding-left: 18px; border-left: 1px solid var(--line); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; }
.header-meta span, .header-meta strong { display: block; }
.header-meta strong { margin-top: 4px; color: var(--red); }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.hero { min-height: calc(100vh - 166px); display: grid; grid-template-columns: 1fr 500px; gap: 72px; align-items: center; padding: 34px 0 80px; }
.hero-copy { max-width: 570px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--red); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 2.1px; }
.eyebrow > span { width: 34px; height: 2px; background: var(--red); }
.eyebrow b { color: var(--ink); }
.hero h1, .booking-header h1, .success-card h1 { margin: 0; font: 700 clamp(48px, 6vw, 78px)/.96 Georgia, "Times New Roman", serif; letter-spacing: -2.8px; }
.hero h1 em { display: block; color: var(--red); font-weight: inherit; }
.hero-text { max-width: 470px; margin: 24px 0 34px; color: #5f5a53; font-size: 18px; line-height: 1.7; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 26px; border-top: 1px solid var(--line); }
.trust-row div { display: grid; gap: 4px; border-right: 1px solid var(--line); padding-right: 16px; margin-right: 16px; }
.trust-row div:last-child { border: 0; margin: 0; }
.trust-row strong { color: var(--gold); font: 700 18px Georgia, serif; }
.trust-row span { color: var(--muted); font-size: 12px; }

.card { background: rgba(255,253,247,.94); border: 1px solid rgba(199,154,72,.32); box-shadow: var(--shadow); }
.auth-card { position: relative; padding: 38px 42px 42px; }
.auth-card::before, .booking-card::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(199,154,72,.17); pointer-events: none; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 7px; background: #ece5d8; position: relative; z-index: 1; }
.tab { border: 0; background: transparent; border-radius: 5px; padding: 11px 14px; color: var(--muted); font-size: 13px; font-weight: 750; }
.tab.active { color: var(--ink); background: var(--paper); box-shadow: 0 3px 10px rgba(0,0,0,.06); }
.form-heading { margin: 28px 0 24px; position: relative; z-index: 1; }
.step-label, .panel-heading span { margin: 0 0 8px; color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: 1.6px; text-transform: uppercase; }
.form-heading h2, .panel-heading h2 { margin: 0; font: 700 27px Georgia, serif; }
.form-heading > p:last-child { color: var(--muted); margin: 8px 0 0; font-size: 13px; }
form { position: relative; z-index: 1; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span, .date-picker > span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; }
.field input, .date-picker input {
  width: 100%; height: 49px; border: 1px solid var(--line); border-radius: 4px; outline: none;
  background: #fff; color: var(--ink); padding: 0 14px; transition: .2s border-color, .2s box-shadow;
}
.field input:focus, .date-picker input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,154,72,.14); }
.field input::placeholder { color: #aaa49c; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 58px; }
.show-password { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--red); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.check-row { display: flex; gap: 10px; align-items: flex-start; color: #666058; font-size: 12px; line-height: 1.5; margin: 4px 0 17px; }
.check-row input { accent-color: var(--red); width: 16px; height: 16px; margin-top: 1px; flex: 0 0 auto; }
.form-error { min-height: 18px; color: var(--red); margin: -4px 0 8px; font-size: 12px; font-weight: 650; }

.primary-button, .outline-button {
  border-radius: 3px; min-height: 50px; padding: 0 18px; font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: 1px; transition: .2s;
}
.primary-button { width: 100%; display: flex; align-items: center; justify-content: space-between; color: white; border: 1px solid var(--red); background: var(--red); box-shadow: 0 9px 20px rgba(169,45,44,.19); }
.primary-button:hover:not(:disabled) { background: var(--red-dark); transform: translateY(-1px); }
.primary-button:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }
.primary-button span { font-size: 18px; }
.outline-button { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.outline-button:hover { border-color: var(--red); color: var(--red); }
.text-button { display: block; margin: 17px auto 0; border: 0; background: transparent; color: var(--red); font-size: 12px; font-weight: 750; }

.booking-view { padding: 45px 0 90px; }
.booking-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 34px; }
.booking-header .eyebrow { margin-bottom: 10px; }
.booking-header h1 { font-size: clamp(38px, 5vw, 58px); }
.booking-header > div > p:last-child { color: var(--muted); margin: 12px 0 0; }
.steps { display: flex; align-items: center; justify-content: center; max-width: 780px; margin: 0 auto 28px; }
.steps .step { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; border: 0; background: none; color: #9b958b; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; cursor: default; }
.steps .step span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; border: 1px solid #cfc7b8; font-size: 11px; }
.steps .step.active { color: var(--red); }
.steps .step.active span, .steps .step.complete span { color: white; background: var(--red); border-color: var(--red); }
.steps i { width: 55px; height: 1px; background: #d8d0c1; margin: 0 8px; }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.booking-card { min-height: 520px; padding: 39px 42px 28px; position: relative; display: flex; flex-direction: column; }
.booking-panel { position: relative; z-index: 1; flex: 1; }
.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 24px; margin-bottom: 25px; border-bottom: 1px solid var(--line); }
.panel-heading span { display: block; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.service-option { position: relative; display: grid; grid-template-columns: 45px 1fr auto; gap: 13px; align-items: center; min-height: 88px; padding: 13px 14px; border: 1px solid var(--line); background: white; color: inherit; text-align: left; transition: .2s; }
.service-option:hover { border-color: var(--gold); transform: translateY(-1px); }
.service-option.selected { border-color: var(--red); box-shadow: inset 3px 0 var(--red); background: #fffaf3; }
.service-symbol { width: 42px; height: 42px; display: grid; place-items: center; background: var(--ink); color: var(--gold); border-radius: 50%; font: 700 16px Georgia, serif; }
.service-option strong, .service-option small { display: block; }
.service-option strong { font-size: 13px; }
.service-option small { color: var(--muted); font-size: 10px; margin-top: 5px; }
.service-option b { color: var(--red); font: 700 15px Georgia, serif; white-space: nowrap; }
.date-picker { display: grid; gap: 9px; max-width: 480px; margin: 38px auto 25px; }
.date-picker input { height: 60px; font-size: 16px; cursor: pointer; }
.date-tip { max-width: 480px; margin: 0 auto; display: flex; gap: 13px; padding: 16px; background: #f6f0e4; border-left: 3px solid var(--gold); color: var(--muted); }
.date-tip > span { color: var(--gold); }
.date-tip p { margin: 0; font-size: 12px; line-height: 1.6; }
.date-tip strong { color: var(--ink); }
.time-legend { display: flex; gap: 20px; color: var(--muted); font-size: 11px; margin-bottom: 18px; }
.time-legend span { display: flex; align-items: center; gap: 6px; }
.time-legend i { width: 8px; height: 8px; border-radius: 50%; }
.time-legend .available { background: var(--green); }
.time-legend .unavailable { background: #bbb5aa; }
.time-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.time-button { height: 44px; border: 1px solid var(--line); background: white; color: var(--ink); font-size: 12px; font-weight: 750; border-radius: 3px; transition: .16s; }
.time-button:not(:disabled):hover { border-color: var(--red); color: var(--red); }
.time-button.selected { background: var(--red); border-color: var(--red); color: white; }
.time-button:disabled { cursor: not-allowed; color: #aaa49a; background: repeating-linear-gradient(135deg, #eeeae2, #eeeae2 5px, #f7f4ed 5px, #f7f4ed 10px); text-decoration: line-through; }
.empty-message { color: var(--muted); text-align: center; padding: 35px 0; }
.review-box { display: grid; grid-template-columns: 56px 1.2fr 1fr .7fr .6fr; align-items: center; gap: 18px; padding: 24px; border: 1px solid var(--line); background: #fff; }
.review-box > div:not(.review-icon) { border-left: 1px solid var(--line); padding-left: 18px; }
.review-box span, .summary-card span, .success-details span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .7px; margin-bottom: 6px; }
.review-box strong { font-size: 13px; }
.confirmation-check { margin-top: 22px; }
.booking-actions { position: relative; z-index: 1; display: flex; gap: 12px; justify-content: flex-end; padding-top: 27px; margin-top: 26px; border-top: 1px solid var(--line); }
.booking-actions .primary-button { width: 220px; }
.summary-card { background: var(--ink); color: var(--cream); padding: 27px 25px; min-height: 250px; box-shadow: 0 18px 40px rgba(0,0,0,.14); border-top: 4px solid var(--red); }
.summary-card > p { margin: 0 0 15px; color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: 1.6px; }
.summary-card h3 { margin: 0 0 50px; font: 500 20px/1.4 Georgia, serif; color: #cac2b5; }
.summary-card #summary-content > div { display: flex; justify-content: space-between; gap: 15px; margin: 18px 0; }
.summary-card #summary-content span { margin: 0; }
.summary-card strong { font-size: 12px; text-align: right; }
.summary-card hr { height: 1px; border: 0; background: #3e3a34; margin: 21px 0; }
.summary-card .summary-total strong { color: var(--gold); font: 700 19px Georgia, serif; }
.summary-card > small { display: block; margin-top: 34px; padding-top: 15px; border-top: 1px solid #33302c; color: #857f75; font-size: 10px; }

.success-view { min-height: calc(100vh - 170px); display: grid; place-items: center; padding: 50px 0 90px; }
.success-card { width: min(650px, 100%); padding: 48px 60px; text-align: center; }
.success-seal { width: 68px; height: 68px; display: grid; place-items: center; border: 2px solid var(--green); border-radius: 50%; margin: 0 auto 24px; color: white; background: var(--green); font-size: 31px; box-shadow: 0 0 0 7px rgba(40,115,74,.1); }
.success-card h1 { font-size: clamp(38px, 6vw, 56px); letter-spacing: -1.8px; }
.success-lead { max-width: 460px; margin: 17px auto; color: var(--muted); line-height: 1.65; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; color: #9a6519; background: #fff0cb; border-radius: 99px; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .7px; }
.status-pill span { width: 7px; height: 7px; background: #d48b22; border-radius: 50%; animation: pulse 1.5s infinite; }
.status-pill.confirmed { color: var(--green); background: #e3f1e8; }
.status-pill.confirmed span { background: var(--green); animation: none; }
@keyframes pulse { 50% { opacity: .35; } }
.success-details { margin: 28px 0; display: grid; grid-template-columns: 1fr 1fr 1.2fr; text-align: left; border: 1px solid var(--line); background: white; }
.success-details div { padding: 17px; border-right: 1px solid var(--line); }
.success-details div:last-child { border: 0; }
.success-details strong { font-size: 12px; }
.confirmation-banner { display: flex; gap: 13px; align-items: center; text-align: left; padding: 16px; margin: 20px 0; color: var(--green); background: #e9f5ed; border: 1px solid #c9e4d2; }
.confirmation-banner > span { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); }
.confirmation-banner p { margin: 4px 0 0; color: #557061; font-size: 12px; }
.simulation-note { color: #999187; font-size: 10px; }
.success-card .primary-button { width: 280px; margin: 25px auto 0; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; width: min(360px, calc(100% - 48px)); display: flex; gap: 13px; align-items: center; padding: 17px; color: var(--cream); background: var(--ink); border-left: 4px solid var(--green); box-shadow: 0 16px 50px rgba(0,0,0,.28); transform: translateY(130%); opacity: 0; transition: .35s; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--green); }
.toast strong { font-size: 12px; }
.toast p { margin: 3px 0 0; color: #bcb5aa; font-size: 11px; }

footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 23px 0 28px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr 440px; gap: 34px; }
  .hero h1 { font-size: 54px; }
  .booking-layout { grid-template-columns: 1fr; }
  .summary-card { grid-row: 1; min-height: auto; }
  .summary-card h3 { margin-bottom: 15px; }
  .summary-card > small { margin-top: 20px; }
}

@media (max-width: 760px) {
  .site-header { padding: 18px 0; }
  .header-meta { display: none; }
  .hero { display: block; padding: 35px 0 70px; }
  .hero-copy { margin-bottom: 37px; }
  .hero h1 { font-size: clamp(46px, 14vw, 65px); }
  .hero-text { font-size: 16px; }
  .auth-card { padding: 28px 24px 30px; }
  .booking-header { align-items: center; }
  .steps .step { font-size: 0; gap: 0; }
  .steps i { flex: 1; width: auto; }
  .booking-card { min-height: 550px; padding: 29px 22px 22px; }
  .panel-heading { display: block; }
  .panel-heading > p { margin-top: 8px; }
  .service-grid { grid-template-columns: 1fr; }
  .time-grid { grid-template-columns: repeat(4, 1fr); }
  .review-box { grid-template-columns: 1fr 1fr; }
  .review-box .review-icon { display: none; }
  .review-box > div:not(.review-icon) { border: 0; padding: 8px; }
  .success-card { padding: 40px 24px; }
  .success-details { grid-template-columns: 1fr; }
  .success-details div { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 480px) {
  main, .site-header, footer { width: min(100% - 26px, 1180px); }
  .brand strong { font-size: 17px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .trust-row span { font-size: 10px; }
  .booking-header .outline-button { min-height: 42px; padding: 0 13px; }
  .booking-header h1 { font-size: 40px; }
  .time-grid { grid-template-columns: repeat(3, 1fr); }
  .booking-actions .primary-button { width: auto; flex: 1; }
  .success-card .primary-button { width: 100%; }
  footer { display: grid; gap: 8px; text-align: center; justify-content: center; }
}
