*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700;800&family=DM+Serif+Display&display=swap');

:root {
    --navy:   #0B1C35;
    --navy2:  #112244;
    --blue:   #2E6DA4;
    --gold:   #C9982A;
    --gold2:  #E8B84B;
    --white:  #FFFFFF;
    --offwhite: #F4F7FB;
    --border: rgba(255,255,255,.12);
    --text:   #1E293B;
    --sub:    #64748B;
    --green:  #1D9E75;
    --radius: 14px;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--offwhite);
    color: var(--text);
}

/* ── Header ────────────────────────────────────────────── */
.pub-header {
    background: var(--navy);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid var(--border);
}
.pub-header__inner {
    max-width: 1000px; margin: 0 auto;
    padding: 14px 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.pub-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.pub-logo__icon { font-size: 1.6rem; }
.pub-logo__name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.125rem; color: var(--white); letter-spacing: .01em;
}
.pub-logo__sub { font-size: .7rem; color: var(--gold2); letter-spacing: .08em; text-transform: uppercase; }
.pub-lang { display: flex; gap: 4px; }
.pub-lang__btn {
    padding: 6px 14px; border-radius: 8px;
    font-size: .8rem; font-weight: 700;
    text-decoration: none; color: rgba(255,255,255,.5);
    border: 1px solid transparent; transition: .2s;
}
.pub-lang__btn--active, .pub-lang__btn:hover {
    color: var(--gold2); border-color: var(--gold2);
    background: rgba(201,152,42,.1);
}

/* ── Main ───────────────────────────────────────────────── */
.pub-main { max-width: 1000px; margin: 0 auto; padding: 28px 24px; }
.pub-alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; }
.pub-alert--error   { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.pub-alert--success { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }

/* ── Footer ─────────────────────────────────────────────── */
.pub-footer {
    text-align: center; padding: 28px;
    font-size: .8125rem; color: var(--sub);
    border-top: 1px solid var(--border);
}
.pub-footer a { color: var(--blue); }

/* ── Booking hero ───────────────────────────────────────── */
.booking-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
    border-radius: 20px;
    padding: 52px 40px 44px;
    text-align: center;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.booking-hero::before {
    content: '';
    position: absolute; top: -60px; right: -60px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(201,152,42,.15) 0%, transparent 70%);
    border-radius: 50%;
}
.booking-hero::after {
    content: '';
    position: absolute; bottom: -40px; left: -40px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(46,109,164,.2) 0%, transparent 70%);
    border-radius: 50%;
}
.booking-hero__title {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem; color: var(--white);
    margin-bottom: 10px; position: relative; z-index: 1;
}
.booking-hero__sub {
    color: var(--gold2); font-size: .9375rem;
    letter-spacing: .04em; position: relative; z-index: 1;
}

/* ── Step indicators ────────────────────────────────────── */
.booking-steps {
    display: flex; align-items: center;
    justify-content: center; margin-bottom: 28px;
}
.booking-step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.booking-step__num {
    width: 38px; height: 38px; border-radius: 50%;
    background: #E2E8F0; color: #94A3B8;
    font-weight: 800; display: flex; align-items: center;
    justify-content: center; font-size: .875rem;
    transition: .25s; border: 2px solid transparent;
}
.booking-step__label {
    font-size: .7rem; font-weight: 700;
    color: #94A3B8; text-align: center; max-width: 80px;
    text-transform: uppercase; letter-spacing: .04em;
}
.booking-step--active .booking-step__num { background: var(--navy); color: var(--gold2); border-color: var(--gold2); }
.booking-step--active .booking-step__label { color: var(--navy); }
.booking-step--done .booking-step__num { background: var(--blue); color: #fff; border-color: var(--blue); }
.booking-step--done .booking-step__label { color: var(--blue); }
.booking-step-line { flex: 1; height: 2px; background: #E2E8F0; max-width: 60px; min-width: 20px; }

/* ── Booking panels ─────────────────────────────────────── */
.booking-panel {
    background: #fff; border-radius: var(--radius);
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    margin-bottom: 16px;
    border: 1px solid rgba(0,0,0,.05);
}
.booking-panel--hidden { display: none; }
.booking-panel__header { padding: 28px 32px 0; }
.booking-panel__title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.375rem; color: var(--navy);
    margin-bottom: 4px;
}
.booking-panel__sub { color: var(--sub); font-size: .875rem; }
.booking-panel__footer {
    padding: 24px 32px;
    display: flex; justify-content: space-between; gap: 10px;
    border-top: 1px solid var(--offwhite);
}

/* ── Service grid ───────────────────────────────────────── */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px; padding: 24px 32px;
}
.service-card {
    border: 2px solid #E8EDF4;
    border-radius: 12px; padding: 20px;
    cursor: pointer; transition: .2s;
    position: relative; background: #FAFBFD;
}
.service-card:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 16px rgba(46,109,164,.12);
    background: #fff; transform: translateY(-1px);
}
.service-card--selected {
    border-color: var(--navy);
    background: #F0F4FA;
    box-shadow: 0 4px 16px rgba(11,28,53,.12);
}
.service-card--selected::after {
    content: '✓';
    position: absolute; top: 12px; right: 14px;
    color: var(--navy); font-weight: 900; font-size: 1rem;
}
.service-card__dot {
    width: 10px; height: 10px;
    border-radius: 50%; margin-bottom: 10px;
}
.service-card__name {
    font-weight: 800; color: var(--navy);
    margin-bottom: 10px; font-size: .9375rem;
    line-height: 1.3;
}
.service-card__meta { display: flex; align-items: center; }
.service-card__price {
    font-size: .9rem; font-weight: 700;
    color: var(--gold);
    background: rgba(201,152,42,.1);
    padding: 3px 10px; border-radius: 20px;
}
.service-card__desc {
    font-size: .8rem; color: var(--sub);
    margin-top: 8px; line-height: 1.5;
}

/* ── Calendar ───────────────────────────────────────────── */
.calendar-wrap { padding: 24px 32px; }
.cal-nav { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 14px; }
.cal-nav button {
    padding: 8px 14px; border-radius: 8px;
    border: 1px solid #E2E8F0; background: #fff;
    cursor: pointer; font-size: 1.1rem; color: var(--sub);
    transition: .15s;
}
.cal-nav button:hover { background: var(--navy); color: var(--gold2); border-color: var(--navy); }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cal-month__name {
    font-weight: 800; color: var(--navy);
    margin-bottom: 12px; font-size: .9375rem;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-day-name {
    text-align: center; font-size: .7rem;
    font-weight: 700; color: var(--sub); padding: 4px 0;
    text-transform: uppercase; letter-spacing: .05em;
}
.cal-day {
    text-align: center; padding: 9px 2px;
    font-size: .875rem; border-radius: 8px; color: #CBD5E1;
}
.cal-day--available {
    color: var(--navy); cursor: pointer;
    font-weight: 700; background: #F0F4FA;
}
.cal-day--available:hover { background: var(--navy); color: var(--gold2); }
.cal-day--selected { background: var(--navy) !important; color: var(--gold2) !important; }
.cal-day--disabled { cursor: not-allowed; opacity: .4; }

/* ── Time slots ─────────────────────────────────────────── */
.slots-wrap { padding: 24px 32px; }
.slots-placeholder { color: var(--sub); font-style: italic; text-align: center; padding: 24px; }
.slots-empty { color: var(--sub); text-align: center; padding: 24px; }
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.slot-btn {
    padding: 13px 8px; border: 2px solid #E2E8F0;
    border-radius: 10px; background: #FAFBFD;
    cursor: pointer; font-size: .9rem;
    font-weight: 700; color: var(--navy); transition: .15s;
}
.slot-btn:hover { border-color: var(--navy); background: #F0F4FA; }
.slot-btn--selected { border-color: var(--navy); background: var(--navy); color: var(--gold2) !important; }

/* ── Booking form ───────────────────────────────────────── */
.booking-form { padding: 0 32px; }
.form-row-pub { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group-pub { margin-bottom: 16px; }
.pub-label {
    display: block; font-size: .8125rem;
    font-weight: 700; color: var(--navy);
    margin-bottom: 6px; text-transform: uppercase;
    letter-spacing: .04em;
}
.pub-input {
    width: 100%; padding: 12px 16px;
    border: 1.5px solid #E2E8F0; border-radius: 10px;
    font-size: .9375rem; color: var(--navy);
    background: #FAFBFD; outline: none; transition: .15s;
    font-family: 'DM Sans', sans-serif;
}
.pub-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46,109,164,.1); background: #fff; }
.pub-textarea { resize: vertical; min-height: 90px; }

/* ── Booking summary ────────────────────────────────────── */
.booking-summary {
    margin: 20px 32px;
    padding: 20px; background: var(--navy);
    border-radius: 12px;
}
.summary-row {
    display: flex; justify-content: space-between;
    padding: 7px 0; font-size: .875rem;
    border-bottom: 1px solid var(--border);
}
.summary-row:last-child { border-bottom: none; }
.summary-row span { color: rgba(255,255,255,.55); }
.summary-row strong { color: var(--white); font-weight: 700; }

/* ── Buttons ────────────────────────────────────────────── */
.btn-booking {
    display: inline-flex; align-items: center;
    justify-content: center; padding: 13px 28px;
    border-radius: 10px; font-size: .9375rem;
    font-weight: 700; cursor: pointer;
    border: none; text-decoration: none;
    transition: .2s; font-family: 'DM Sans', sans-serif;
}
.btn-booking:disabled { opacity: .4; cursor: not-allowed; }
.btn-booking--primary { background: var(--navy); color: var(--gold2); }
.btn-booking--primary:hover:not(:disabled) { background: var(--navy2); transform: translateY(-1px); }
.btn-booking--ghost {
    background: #fff; color: var(--text);
    border: 1.5px solid #E2E8F0;
}
.btn-booking--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-booking--confirm {
    background: var(--gold); color: var(--navy);
    padding: 15px 36px; font-size: 1rem; font-weight: 800;
    letter-spacing: .02em;
}
.btn-booking--confirm:hover { background: var(--gold2); transform: translateY(-1px); }
.btn-booking--danger { background: #DC2626; color: #fff; }
.btn-booking--full { width: 100%; }

/* ── Success / appointment page ─────────────────────────── */
.success-wrap { max-width: 520px; margin: 0 auto; text-align: center; padding: 20px 0; }
.success-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--navy); color: var(--gold2);
    font-size: 2rem; display: flex;
    align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.success-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.875rem; color: var(--navy); margin-bottom: 8px;
}
.success-sub { color: var(--sub); margin-bottom: 24px; }
.success-card {
    background: #fff; border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    padding: 32px; margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,.05);
}
.success-code {
    font-size: 2.25rem; font-weight: 900;
    letter-spacing: .1em; color: var(--navy); margin-bottom: 4px;
}
.success-code-label { font-size: .8rem; color: var(--sub); margin-bottom: 20px; }
.success-details { text-align: left; }
.success-detail {
    display: flex; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid #F1F5F9;
}
.success-detail__label { color: var(--sub); font-size: .875rem; }
.success-detail__value { font-weight: 700; color: var(--navy); font-size: .875rem; }
.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.success-notif { font-size: .8125rem; color: var(--sub); margin-top: 16px; }

/* ── Waitlist link ───────────────────────────────────────── */
.booking-waitlist-link { text-align: center; margin-top: 16px; font-size: .875rem; }
.booking-waitlist-link a { color: var(--sub); text-decoration: none; border-bottom: 1px dashed var(--sub); }
.booking-waitlist-link a:hover { color: var(--navy); border-color: var(--navy); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
    .booking-hero { padding: 36px 24px 32px; border-radius: 14px; }
    .booking-hero__title { font-size: 1.875rem; }
    .cal-months { grid-template-columns: 1fr; }
    .form-row-pub { grid-template-columns: 1fr; }
    .service-grid { grid-template-columns: 1fr; padding: 16px; }
    .booking-panel__header,
    .booking-panel__footer,
    .booking-form,
    .calendar-wrap,
    .slots-wrap { padding-left: 16px; padding-right: 16px; }
    .booking-summary { margin-left: 16px; margin-right: 16px; }
    .booking-step__label { display: none; }
}

/* ── Dark body & background ──────────────────────────── */
body {
    background: #0F1824;
    color: #E2E8F0;
}

.pub-main {
    background: #0F1824;
}

/* ── Footer staff link ───────────────────────────────── */
.pub-footer__staff {
    margin-top: 6px;
}

/* ── Calendar background fix ─────────────────────────── */
.calendar-wrap {
    background: transparent;
}

.cal-month {
    background: rgba(255,255,255,.03);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.06);
}

.cal-day--available {
    background: rgba(255,255,255,.06);
    color: #E2E8F0;
}

.cal-day--available:hover {
    background: var(--navy);
    color: var(--gold2);
}

/* ── Booking panels on dark bg ───────────────────────── */
.booking-panel {
    background: #162032;
    border-color: rgba(255,255,255,.08);
}

.booking-panel__title { color: #F1F5F9; }
.booking-panel__sub   { color: #8A9AB5; }
.booking-panel__footer {
    border-top-color: rgba(255,255,255,.06);
}

/* ── Service cards on dark bg ────────────────────────── */
.service-card {
    background: #1C2D42;
    border-color: rgba(255,255,255,.08);
}

.service-card:hover {
    background: #1F3350;
    border-color: rgba(46,109,164,.5);
}

.service-card--selected {
    background: #1A3055;
    border-color: var(--navy);
}

.service-card__name { color: #F1F5F9; }

/* ── Form inputs on dark bg ──────────────────────────── */
.pub-input {
    background: #1C2D42;
    border-color: rgba(255,255,255,.1);
    color: #F1F5F9;
}

.pub-input:focus {
    background: #1F3350;
    border-color: var(--blue);
}

.pub-input::placeholder { color: #5A7090; }

/* ── Slot buttons on dark bg ─────────────────────────── */
.slot-btn {
    background: #1C2D42;
    border-color: rgba(255,255,255,.08);
    color: #E2E8F0;
}

.slot-btn:hover {
    background: #1F3350;
    border-color: var(--navy);
}