/* =========================================================
   ANISIIA MASAZI
   REZERVACNI SYSTEM — KLIENTSKA STRANKA
   ========================================================= */


/* =========================================================
   HERO
   ========================================================= */

.booking-page-hero {
    padding: 76px 0 54px;
}

.booking-page-hero-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(320px, 390px);
    gap: 70px;
    align-items: center;
}

.booking-page-hero h1 {
    max-width: 850px;
}

.booking-page-hero .hero-lead {
    max-width: 720px;
}


/* Pravy informacni blok */

.booking-how {
    padding: 28px;

    border: 1px solid var(--line);
    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 249, 240, 0.94),
            rgba(223, 231, 216, 0.70)
        );
}

.booking-how-title {
    margin-bottom: 20px;

    font-family: "Cormorant Garamond", serif;
    font-size: 27px;
    font-weight: 700;

    color: var(--text);
}

.booking-how-list {
    display: grid;
    gap: 15px;
}

.booking-how-item {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    align-items: center;
}

.booking-how-number {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--white);

    color: var(--accent-dark);

    font-size: 13px;
    font-weight: 800;
}

.booking-how-item strong {
    display: block;

    color: var(--text);

    font-size: 14px;
}

.booking-how-item span:not(.booking-how-number) {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.45;
}

/* =========================================================
   HLAVNI REZERVACNI BLOK
   ========================================================= */

.booking-client-section {
    padding-top: 32px;
}

.booking-shell {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        340px;
    gap: 34px;
    align-items: start;
}

.booking-main {
    min-width: 0;
}


/* =========================================================
   JEDNOTLIVE KROKY
   ========================================================= */

.booking-step {
    margin-bottom: 26px;
    padding: 32px;

    border: 1px solid var(--line);
    border-radius: 30px;

    background: rgba(255, 249, 240, 0.82);
}

.booking-step.is-disabled {
    opacity: 0.52;
    pointer-events: none;
}

.booking-step-head {
    display: flex;
    gap: 18px;
    align-items: flex-start;

    margin-bottom: 27px;
}

.booking-step-number {
    flex: 0 0 auto;

    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--sage-light);

    color: var(--accent-dark);

    font-size: 13px;
    font-weight: 800;
}

.booking-step-head h2 {
    margin: 0;

    font-size: 34px;
    line-height: 1.08;
}

.booking-step-head p {
    margin: 6px 0 0;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.55;
}


/* =========================================================
   DATUM — 30 DNI
   ========================================================= */

.booking-date-scroll {
    width: 100%;

    overflow-x: auto;

    padding: 2px 2px 12px;

    scrollbar-width: thin;
}

.booking-date-list {
    display: flex;
    gap: 10px;

    width: max-content;
}

.booking-date {
    width: 94px;
    min-height: 96px;

    padding: 12px 9px;

    border: 1px solid var(--line);
    border-radius: 20px;

    background: var(--white);
    color: var(--text);

    cursor: pointer;

    font-family: "Lato", sans-serif;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.booking-date:hover {
    transform: translateY(-2px);

    border-color: rgba(201, 130, 85, 0.55);

    box-shadow:
        0 9px 24px rgba(47, 41, 36, 0.06);
}

.booking-date.is-selected {
    border-color: var(--accent);

    background: var(--accent);

    color: var(--white);
}

.booking-date-label {
    display: block;

    min-height: 17px;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.booking-date-day {
    display: block;

    margin-top: 8px;

    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.booking-date-month {
    display: block;

    margin-top: 5px;

    color: var(--muted);

    font-size: 12px;
}

.booking-date.is-selected .booking-date-label,
.booking-date.is-selected .booking-date-month {
    color: rgba(255, 255, 255, 0.83);
}


/* =========================================================
   CAS
   ========================================================= */

.booking-time-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 10px;
}

.booking-time {
    min-width: 0;
    min-height: 68px;

    padding: 10px 8px;

    border: 1px solid var(--line);
    border-radius: 17px;

    background: var(--white);
    color: var(--text);

    cursor: pointer;

    font-family: "Lato", sans-serif;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.booking-time strong {
    display: block;

    font-size: 15px;
    font-weight: 800;
}

.booking-time span {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 10px;
}


/* Volno */

.booking-time.is-available:hover {
    transform: translateY(-2px);

    border-color: var(--accent);

    box-shadow:
        0 8px 20px rgba(47, 41, 36, 0.06);
}


/* Vybrany cas */

.booking-time.is-selected {
    border-color: var(--accent);

    background: var(--accent);

    color: var(--white);
}

.booking-time.is-selected span {
    color: rgba(255, 255, 255, 0.84);
}


/* Obsazeno */

.booking-time.is-occupied {
    cursor: not-allowed;

    border-color: rgba(47, 41, 36, 0.08);

    background: rgba(47, 41, 36, 0.055);

    color: var(--muted);
}

.booking-time.is-occupied span {
    color: var(--accent-dark);

    font-weight: 700;
}


/* Nedostupne */

.booking-time.is-unavailable {
    cursor: not-allowed;

    opacity: 0.43;
}


/* =========================================================
   PROCEDURY
   ========================================================= */

.booking-services-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}

.booking-service {
    position: relative;

    display: block;

    width: 100%;

    padding: 22px;

    border: 1px solid var(--line);
    border-radius: 22px;

    background: var(--white);

    color: var(--text);

    text-align: left;

    cursor: pointer;

    font-family: "Lato", sans-serif;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.booking-service:hover {
    transform: translateY(-2px);

    border-color: rgba(201, 130, 85, 0.55);

    box-shadow:
        0 12px 30px rgba(47, 41, 36, 0.07);
}

.booking-service.is-selected {
    border-color: var(--accent);

    box-shadow:
        inset 0 0 0 1px var(--accent);
}

.booking-service-name {
    display: block;

    padding-right: 34px;

    font-family: "Cormorant Garamond", serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.08;

    color: var(--text);
}

.booking-service-variant {
    display: block;

    margin-top: 7px;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.45;
}

.booking-service-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-end;

    margin-top: 18px;
    padding-top: 16px;

    border-top: 1px solid var(--line);
}

.booking-service-time {
    color: var(--muted);

    font-size: 13px;
    line-height: 1.45;
}

.booking-service-price {
    flex: 0 0 auto;

    color: var(--accent-dark);

    font-family: "Cormorant Garamond", serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
}

.booking-service-check {
    position: absolute;

    top: 18px;
    right: 18px;

    width: 24px;
    height: 24px;

    display: grid;
    place-items: center;

    border: 1px solid var(--line);
    border-radius: 50%;

    color: transparent;

    font-size: 12px;
}

.booking-service.is-selected .booking-service-check {
    border-color: var(--accent);

    background: var(--accent);

    color: var(--white);
}


/* =========================================================
   FORMULAR
   ========================================================= */

.booking-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.booking-field {
    display: grid;

    gap: 8px;
}

.booking-field-full {
    grid-column: 1 / -1;
}

.booking-field label {
    color: var(--text);

    font-size: 13px;
    font-weight: 800;
}

.booking-required {
    color: var(--accent-dark);
}

.booking-optional {
    margin-left: 5px;

    color: var(--muted);

    font-size: 11px;
    font-weight: 400;
}

.booking-field input,
.booking-field textarea {
    box-sizing: border-box;

    width: 100%;

    min-height: 52px;

    padding: 13px 15px;

    border: 1px solid var(--line);
    border-radius: 15px;

    outline: none;

    background: var(--white);
    color: var(--text);

    font-family: "Lato", sans-serif;
    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.booking-field textarea {
    min-height: 120px;

    resize: vertical;
}

.booking-field input:focus,
.booking-field textarea:focus {
    border-color: var(--accent);

    box-shadow:
        0 0 0 4px rgba(201, 130, 85, 0.10);
}


/* Honeypot — uzivatel jej neuvidi */

.booking-honeypot {
    position: absolute !important;

    left: -10000px !important;
    top: auto !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;
}

.booking-submit-wrap {
    margin-top: 25px;
}

.booking-submit {
    min-width: 220px;
}

.booking-submit[disabled] {
    cursor: wait;

    opacity: 0.60;
}


/* =========================================================
   PRAVY SOUHRN
   ========================================================= */

.booking-summary {
    position: sticky;

    top: 112px;

    padding: 28px;

    border-radius: 28px;

    background: var(--bg-deep);

    color: var(--white);

    box-shadow:
        0 24px 60px rgba(47, 41, 36, 0.14);
}

.booking-summary .section-kicker {
    color: var(--sage-light);
}

.booking-summary h3 {
    margin-top: 7px;

    color: var(--white);

    font-size: 31px;
}

.booking-summary-list {
    display: grid;

    margin-top: 23px;
}

.booking-summary-row {
    padding: 15px 0;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.12);
}

.booking-summary-row span {
    display: block;

    color: rgba(255, 255, 255, 0.59);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.booking-summary-row strong {
    display: block;

    margin-top: 5px;

    color: var(--white);

    font-size: 15px;
    line-height: 1.45;
}

.booking-summary-note {
    margin: 21px 0 0;

    color: rgba(255, 255, 255, 0.63);

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   LOADING / PLACEHOLDERS / ERROR
   ========================================================= */

.booking-placeholder {
    grid-column: 1 / -1;

    padding: 25px;

    border: 1px dashed var(--line);
    border-radius: 18px;

    color: var(--muted);

    text-align: center;

    font-size: 14px;
    line-height: 1.55;
}

.booking-loading {
    grid-column: 1 / -1;

    padding: 25px;

    color: var(--muted);

    text-align: center;

    font-size: 14px;
}

.booking-alert {
    margin-bottom: 24px;

    padding: 17px 20px;

    border-radius: 17px;

    font-size: 14px;
    line-height: 1.55;
}

.booking-alert[hidden] {
    display: none;
}

.booking-alert-error {
    border: 1px solid rgba(160, 70, 70, 0.28);

    background: rgba(160, 70, 70, 0.08);

    color: #8c3636;
}


/* =========================================================
   USPESNE ODESLANA REZERVACE
   ========================================================= */

.booking-success {
    padding: 42px;

    border: 1px solid rgba(167, 181, 154, 0.55);
    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(223, 231, 216, 0.75),
            rgba(255, 249, 240, 0.96)
        );
}

.booking-success[hidden] {
    display: none;
}

.booking-success-icon {
    width: 62px;
    height: 62px;

    display: grid;
    place-items: center;

    margin-bottom: 22px;

    border-radius: 50%;

    background: var(--sage);

    color: var(--white);

    font-size: 27px;
}

.booking-success h2 {
    max-width: 760px;

    font-size: 43px;
}

.booking-success p {
    max-width: 680px;

    color: var(--muted);

    line-height: 1.7;
}

.booking-success-details {
    display: grid;
    gap: 10px;

    max-width: 650px;

    margin: 27px 0;

    padding: 22px;

    border-radius: 19px;

    background: rgba(255, 255, 255, 0.66);
}

.booking-success-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 15px;
}

.booking-success-row span {
    color: var(--muted);

    font-size: 13px;
}

.booking-success-row strong {
    color: var(--text);

    font-size: 14px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

    .booking-page-hero-grid {
        grid-template-columns: 1fr;

        gap: 36px;
    }

    .booking-how {
        max-width: 620px;
    }

    .booking-shell {
        grid-template-columns: 1fr;
    }

    /*
     * Souhrn zobrazime pred jednotlivymi kroky,
     * aby byl na tabletu dobre dostupny.
     */

    .booking-summary {
        position: static;

        order: -1;
    }

    .booking-time-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBIL
   ========================================================= */

@media (max-width: 640px) {

    .booking-page-hero {
        padding: 52px 0 36px;
    }

    .booking-page-hero-grid {
        gap: 28px;
    }

    .booking-how {
        padding: 23px;

        border-radius: 23px;
    }

    .booking-step {
        padding: 23px 18px;

        border-radius: 23px;
    }

    .booking-step-head {
        gap: 12px;

        margin-bottom: 22px;
    }

    .booking-step-number {
        width: 38px;
        height: 38px;
    }

    .booking-step-head h2 {
        font-size: 29px;
    }

    .booking-date {
        width: 82px;
        min-height: 87px;
    }

    .booking-date-day {
        font-size: 25px;
    }

    .booking-time-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 8px;
    }

    .booking-time {
        min-height: 64px;
    }

    .booking-services-grid {
        grid-template-columns: 1fr;
    }

    .booking-form-grid {
        grid-template-columns: 1fr;
    }

    .booking-field-full {
        grid-column: auto;
    }

    .booking-service {
        padding: 19px;
    }

    .booking-service-name {
        font-size: 23px;
    }

    .booking-summary {
        padding: 23px;

        border-radius: 23px;
    }

    .booking-success {
        padding: 28px 22px;

        border-radius: 24px;
    }

    .booking-success h2 {
        font-size: 35px;
    }

    .booking-success-row {
        grid-template-columns: 1fr;

        gap: 2px;
    }

    .booking-submit {
        width: 100%;
    }

}


/* =========================================================
   MALE TELEFONY
   ========================================================= */

@media (max-width: 390px) {

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

    .booking-step {
        padding-left: 15px;
        padding-right: 15px;
    }

}