:root {
    --bg: #f7f1f1;
    --surface: #ffffff;
    --primary: #1e1b1b;
    --accent: #b7848c;
    --accent-soft: #f2dfe3;
    --muted: #776d6d;
    --border: rgba(30, 27, 27, 0.08);
    --select-base-border: rgba(30, 27, 27, 0.1);
    --select-hover-border: rgba(183, 132, 140, 0.55);
    --select-border: rgba(183, 132, 140, 0.72);
    --select-hover-shadow: 0 16px 35px rgba(33, 28, 28, 0.08);
    --select-active-shadow: 0 18px 38px rgba(33, 28, 28, 0.10);
    --select-transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
    --shadow: 0 20px 60px rgba(33, 28, 28, 0.08);
    --radius-xl: 28px;
    --page-bg-image: url("../img/sisley-consultation-bg.jpg");
    --page-bg-overlay: rgba(0, 0, 0, 0.18);
    --wiz-logo-w: 130px;
    --wiz-logo-h: 38px;
    --wiz-logo-mt: 50px;
    --wiz-logo-mb: 50px;
    --wiz-logo-align: center;
    --wiz-max-w: 720px;
}

html,
body {
    overflow-x: clip;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #111;
    color: var(--primary);
}

body,
.page-shell,
#booking-flow > [class*="col-"],
.panel-card,
.service-card,
.service-card-body,
.city-selector,
.store-picker-layout,
.store-list,
.store-card {
    min-width: 0;
}

.page-shell {
    min-height: 100vh;
    position: relative;
    isolation: isolate;
}

.page-shell::before,
.page-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.page-shell::before {
    background-image: var(--page-bg-image);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translateZ(0);
    z-index: -2;
}

.page-shell::after {
    background: var(--page-bg-overlay);
    z-index: -1;
}

[data-booking-root].is-loading {
    cursor: progress;
}

[data-booking-root].is-loading [data-service-card],
[data-booking-root].is-loading [data-city-button],
[data-booking-root].is-loading [data-store-card],
[data-booking-root].is-loading [data-day-button],
[data-booking-root].is-loading [data-slot-link] {
    pointer-events: none;
}

.wizard-header {
    width: 100%;
    max-width: var(--wiz-max-w);
    display: flex;
    justify-content: var(--wiz-logo-align);
    margin: 0 auto;
    padding-top: var(--wiz-logo-mt);
    padding-bottom: var(--wiz-logo-mb);
}

.wizard-logo-link {
    display: inline-flex;
}

.wizard-logo {
    width: var(--wiz-logo-w);
    height: var(--wiz-logo-h);
    object-fit: contain;
}

.beauty-navbar {
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.92) !important;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #201a1b, #b7848c);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.brand-title {
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--primary);
}

.nav-link {
    color: var(--muted);
    font-weight: 600;
    border-radius: 999px;
    padding: 0.65rem 1rem !important;
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary);
    background: rgba(183,132,140,0.12);
}

.glass-card,
.panel-card,
.hero-card,
.slot-card,
.metric-card {
    background: rgba(255,255,255,0.84);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 2rem;
}

.hero-chip {
    display: inline-flex;
    gap: .5rem;
    align-items: center;
    padding: .55rem .95rem;
    border-radius: 999px;
    background: rgba(183,132,140,0.14);
    color: #7b4f57;
    font-size: .92rem;
    font-weight: 600;
}

.section-title {
    font-size: clamp(1.6rem, 2vw, 2.4rem);
    font-weight: 800;
    line-height: 1.1;
}

.section-text {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.panel-card,
.metric-card {
    padding: 1.25rem;
}

.service-card {
    display: block;
    border: 2px solid var(--select-base-border);
    border-radius: 22px;
    padding: 1rem;
    height: 100%;
    background: #fff;
    color: var(--primary);
    transition: var(--select-transition);
}

.service-card:hover,
.service-card.active {
    transform: translateY(-2px);
    box-shadow: var(--select-hover-shadow);
    border-color: var(--select-hover-border);
}

.service-card.active {
    border-color: var(--select-border);
    box-shadow: var(--select-active-shadow);
}

.service-card-with-image {
    overflow: hidden;
    padding: 0;
}

.service-card-with-image:hover {
    color: var(--primary);
}

.service-image-wrap {
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--accent-soft);
    overflow: hidden;
}

.service-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.service-card-with-image:hover .service-image,
.service-card-with-image.active .service-image {
    transform: scale(1.035);
}

.service-card-body {
    display: block;
    padding: 1rem;
}

.service-effect {
    border-top: 1px solid var(--border);
    color: #5f5555;
    font-size: .86rem;
    line-height: 1.45;
    margin-top: .75rem;
    padding-top: .75rem;
}

.service-badge,
.master-badge {
    display: inline-flex;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #7b4f57;
    font-size: .8rem;
    font-weight: 700;
    padding: .35rem .65rem;
}

.master-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f1919, #b7848c);
    color: #fff;
    font-weight: 800;
}

.city-selector {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.city-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 2px solid var(--select-base-border);
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    font-size: .92rem;
    font-weight: 800;
    line-height: 1;
    padding: .75rem .95rem;
    text-decoration: none;
    transition: var(--select-transition);
}

.city-chip:hover,
.city-chip.active {
    background: #fff;
    border-color: var(--select-hover-border);
    box-shadow: var(--select-hover-shadow);
    color: var(--primary);
    transform: translateY(-2px);
}

.city-chip.active {
    border-color: var(--select-border);
    box-shadow: var(--select-active-shadow);
}

.city-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #7b4f57;
    font-size: .78rem;
}

.city-chip.active .city-chip-count,
.city-chip:hover .city-chip-count {
    background: var(--accent-soft);
    color: #7b4f57;
}

.store-picker-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}

.store-list {
    display: grid;
    gap: .75rem;
    max-height: none;
    overflow: visible;
    padding: .15rem;
}

.store-card {
    display: block;
    border: 2px solid var(--select-base-border);
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    color: var(--primary);
    padding: 1rem;
    text-decoration: none;
    transition: var(--select-transition);
}

.store-card:hover,
.store-card.active {
    border-color: var(--select-hover-border);
    box-shadow: var(--select-hover-shadow);
    color: var(--primary);
    transform: translateY(-2px);
}

.store-card.active {
    background: #fff;
    border-color: var(--select-border);
    box-shadow: var(--select-active-shadow);
}

.store-card-head {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: flex-start;
}

.store-card-name,
.store-card-network,
.store-card-address,
.store-card-meta {
    display: block;
}

.store-card-name {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}

.store-card-network {
    color: #7b4f57;
    font-size: .78rem;
    font-weight: 800;
    margin-top: .25rem;
    text-transform: uppercase;
}

.store-card-address {
    color: #5f5555;
    font-size: .9rem;
    line-height: 1.45;
    margin-top: .75rem;
}

.store-card-meta {
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.45;
    margin-top: .75rem;
    padding-top: .75rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: .75rem;
}

.calendar-day,
.slot-card button,
.quick-filter {
    border: 2px solid var(--select-base-border);
    background: #fff;
    border-radius: 18px;
    width: 100%;
}

.calendar-day {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-height: 106px;
    padding: .85rem;
    text-align: left;
    transition: var(--select-transition);
}

.calendar-day.active,
.calendar-day:hover,
.quick-filter.active {
    background: #fff;
    border-color: var(--select-hover-border);
    box-shadow: var(--select-hover-shadow);
    color: var(--primary);
    transform: translateY(-2px);
}

.calendar-day.active,
.quick-filter.active {
    border-color: var(--select-border);
    box-shadow: var(--select-active-shadow);
}

.calendar-day-kicker,
.calendar-day-date,
.calendar-day-count {
    display: block;
}

.calendar-day-kicker {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.2;
}

.calendar-day-date {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.calendar-day-count {
    color: #7b4f57;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: auto;
}

.calendar-day.active .calendar-day-kicker,
.calendar-day:hover .calendar-day-kicker {
    color: var(--muted);
}

.calendar-day.active .calendar-day-date,
.calendar-day:hover .calendar-day-date {
    color: var(--primary);
}

.calendar-day.active .calendar-day-count,
.calendar-day:hover .calendar-day-count {
    color: #7b4f57;
}

.slot-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: .75rem;
}

.slot-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.slot-card button {
    color: var(--primary);
    background: #fff;
    cursor: pointer;
    min-height: 56px;
    padding: .9rem .75rem;
    font-weight: 800;
    transition: var(--select-transition);
}

.slot-card button.active,
.slot-card button:hover {
    background: #fff;
    border-color: var(--select-hover-border);
    box-shadow: var(--select-hover-shadow);
    color: var(--primary);
    transform: translateY(-2px);
}

.slot-card button.active {
    border-color: var(--select-border);
    box-shadow: var(--select-active-shadow);
}

.booking-empty-state {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    color: var(--muted);
    font-weight: 700;
    padding: 1rem;
}

.timeline-row {
    display: grid;
    grid-template-columns: 150px repeat(5, 1fr);
    gap: .75rem;
    align-items: stretch;
}

.timeline-cell {
    min-height: 88px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: #fff;
    padding: .75rem;
}

.timeline-booking {
    border-left: 5px solid #7eab94;
    background: rgba(126,171,148,0.10);
}

.timeline-pending {
    border-left: 5px solid #d3a04f;
    background: rgba(211,160,79,0.12);
}

.timeline-cancelled {
    border-left: 5px solid #ce6f76;
    background: rgba(206,111,118,0.10);
}

.timeline-blocked {
    border-left: 5px solid #8d8d99;
    background: rgba(141,141,153,0.12);
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.table-soft {
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(30, 27, 27, 0.06);
}

.form-control,
.form-select {
    border-radius: 16px;
    padding: .8rem 1rem;
    border-color: rgba(30, 27, 27, 0.1);
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 .25rem rgba(183,132,140,.18);
    border-color: rgba(183,132,140,.7);
}

.required-note {
    color: var(--muted);
    font-size: .84rem;
    font-weight: 700;
}

.required-marker {
    color: #b44f60;
    font-weight: 900;
}

.optional-marker {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    margin-left: .25rem;
}

.consent-list {
    display: grid;
    gap: .75rem;
}

.consent-row {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.45;
}

.consent-row .form-check-input {
    margin-top: .18rem;
}

.consent-row .form-check-label {
    display: block;
    max-width: 100%;
    overflow-wrap: break-word;
}

.consent-row a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent-required-link {
    white-space: nowrap;
}

.consent-required-marker {
    margin-left: .12rem;
}

.consent-row .invalid-feedback {
    font-size: .84rem;
    margin-top: .25rem;
}

[data-booking-root].is-confirmed [data-booking-flow-content] {
    display: none !important;
}

.booking-thankyou-page {
    background: #fff;
    margin: 0 auto;
    max-width: 920px;
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.thankyou-kicker {
    color: #7b4f57;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
    margin-bottom: .75rem;
    text-transform: uppercase;
}

.thankyou-title {
    font-size: clamp(1.8rem, 3.4vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    margin: 0 0 .85rem;
}

.thankyou-lead {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.65;
    margin: 0 0 1.5rem;
    max-width: 640px;
}

.thankyou-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid var(--border);
}

.thankyou-detail {
    min-width: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.thankyou-detail:nth-child(odd) {
    padding-right: 1rem;
}

.thankyou-detail:nth-child(even) {
    padding-left: 1rem;
    border-left: 1px solid var(--border);
}

.thankyou-detail dt {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
    margin-bottom: .28rem;
}

.thankyou-detail dd {
    color: var(--primary);
    font-size: .98rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
    overflow-wrap: anywhere;
}

.thankyou-next {
    margin-top: 1.35rem;
}

.thankyou-next h2 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 .6rem;
}

.thankyou-next ul {
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
    padding-left: 1.1rem;
}

.thankyou-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.page-staff .panel-card,
.page-staff .admin-edit-card,
.page-staff .metric-card {
    background: #fff;
}

.store-window-grid {
    display: grid;
    gap: .6rem;
}

.store-window-row {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(210px, 1.2fr);
    gap: .75rem;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: .75rem;
}

.store-window-times {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: .5rem;
    align-items: center;
}

.user-password-form {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto;
    gap: .5rem;
    min-width: 260px;
}

.calendar-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(160px, auto) auto;
    gap: .75rem;
    align-items: end;
    min-width: min(100%, 640px);
}

.calendar-toolbar label {
    display: grid;
    gap: .25rem;
}

.calendar-toolbar-label {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
}

.calendar-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.calendar-week-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.staff-calendar-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
}

.staff-calendar {
    width: 100%;
    min-width: 1120px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.staff-calendar th,
.staff-calendar td {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: .7rem;
    vertical-align: top;
}

.staff-calendar thead th {
    background: #f8f5f5;
    color: var(--primary);
    font-size: .82rem;
    font-weight: 800;
}

.staff-calendar tbody th {
    background: #f8f5f5;
    color: var(--primary);
    font-size: .9rem;
    font-weight: 800;
}

.staff-calendar tr:last-child th,
.staff-calendar tr:last-child td {
    border-bottom: 0;
}

.staff-calendar th:last-child,
.staff-calendar td:last-child {
    border-right: 0;
}

.staff-calendar-time {
    width: 92px;
}

.staff-calendar-weekday,
.staff-calendar-date {
    display: block;
    line-height: 1.25;
}

.staff-calendar-date {
    color: var(--muted);
    font-size: .78rem;
    margin-top: .15rem;
}

.staff-calendar td {
    min-height: 118px;
    background: #fff;
}

.staff-calendar td.is-closed {
    background: #fafafa;
}

.calendar-booking {
    display: grid;
    gap: .25rem;
    border: 1px solid rgba(30, 27, 27, .08);
    border-left: 4px solid #d3a04f;
    border-radius: 12px;
    background: #fff9ec;
    padding: .65rem;
}

.calendar-booking + .calendar-booking,
.calendar-booking + .calendar-free-slot {
    margin-top: .5rem;
}

.calendar-booking-confirmed {
    border-left-color: #7eab94;
    background: #f4fbf7;
}

.calendar-booking-cancelled {
    border-left-color: #ce6f76;
    background: #fff5f5;
    opacity: .72;
}

.calendar-booking-title {
    color: var(--primary);
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.25;
}

.calendar-booking-meta {
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.calendar-cancel-form {
    margin-top: .25rem;
}

.calendar-free-slot,
.calendar-closed-slot {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    padding: .32rem .58rem;
}

.calendar-free-slot {
    background: rgba(126, 171, 148, .14);
    color: #4c725d;
}

.calendar-closed-slot {
    background: rgba(30, 27, 27, .06);
    color: var(--muted);
}

.btn-dark,
.btn-outline-dark,
.btn-light {
    border-radius: 999px;
    font-weight: 700;
    padding: .8rem 1.15rem;
}

.small-muted {
    font-size: .88rem;
    color: var(--muted);
}

.booking-summary li + li {
    margin-top: .75rem;
}

.booking-summary-panel {
    position: sticky;
    top: 24px;
}

.backoffice-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.backoffice-tabs a {
    background: #fff;
    border: 2px solid var(--select-base-border);
    border-radius: 999px;
    color: var(--primary);
    font-size: .92rem;
    font-weight: 800;
    padding: .75rem 1rem;
    text-decoration: none;
    transition: var(--select-transition);
}

.backoffice-tabs a:hover {
    border-color: var(--select-hover-border);
    box-shadow: var(--select-hover-shadow);
    transform: translateY(-2px);
}

.staff-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.staff-pagination .btn {
    min-width: 2.65rem;
    padding-left: .85rem;
    padding-right: .85rem;
}

.staff-pagination-gap {
    color: var(--muted);
    font-weight: 800;
    padding: .4rem .15rem;
}

.bookings-per-page-form {
    min-width: min(100%, 220px);
}

.bookings-per-page-form label {
    display: grid;
    gap: .25rem;
}

.backoffice-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.admin-edit-card {
    background: rgba(255,255,255,.94);
    border: 2px solid var(--select-base-border);
    border-radius: 18px;
    padding: 1rem;
}

.admin-edit-card .form-label {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
    margin-bottom: .25rem;
}

@media (max-width: 1199.98px) {
    .booking-summary-panel {
        position: static;
    }
}

@media (max-width: 991.98px) {
    .calendar-toolbar {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .calendar-toolbar .btn {
        width: 100%;
    }

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

    .store-picker-layout {
        grid-template-columns: 1fr;
    }

    .store-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 575.98px) {
    .thankyou-details {
        grid-template-columns: 1fr;
    }

    .thankyou-detail,
    .thankyou-detail:nth-child(odd),
    .thankyou-detail:nth-child(even) {
        padding-left: 0;
        padding-right: 0;
        border-left: 0;
    }

    .thankyou-actions .btn {
        width: 100%;
    }

    .store-window-row,
    .store-window-times,
    .user-password-form {
        grid-template-columns: 1fr;
    }
}
