/* Własny overlay */
.appt-overlay {
    visibility: hidden;
    opacity: 0;
    height: 100dvh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(92, 92, 92, 0.4);
    backdrop-filter: blur(5px);
    z-index: 1001;
    transition: opacity .3s ease-in-out, visibility .3s ease-in-out;
    cursor: pointer;
}

.appt-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Modal wrapper */
.appointment-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
    max-width: 56rem;
    width: calc(100% - 3rem);
    max-height: 90dvh;
    overflow: hidden;
    flex-direction: column;
}

.appointment-modal.active {
    display: flex;
}

/* scrollowalny środek */
.appointment-modal__body {
    overflow-y: auto;
    flex: 1;
    padding: 0 .2rem 2rem;
}

/* intro – dwa akapity z małym odstępem */
.appointment-intro p {
    margin-bottom: .8rem;
}
.appointment-intro p:last-child {
    margin-bottom: 0;
}

/* pola */
.appointment-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.8rem;
}

.appointment-required { color: var(--color-accent); }
.appointment-optional { color: var(--middle-grey); font-size: 1.2rem; }

/* custom dropdown */
.appt-dropdown {
    position: relative;
}

.appt-dropdown__trigger {
    cursor: pointer;
    user-select: none;
}

.appt-dropdown__value {
    flex: 1;
    font-size: 1.3rem;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.appt-dropdown__placeholder {
    color: var(--middle-grey);
}

.appt-chevron {
    flex-shrink: 0;
    pointer-events: none;
    transition: transform .2s ease;
}

.appt-dropdown.open .appt-chevron {
    transform: rotate(180deg);
}

.appt-dropdown__list {
    display: none;
    position: absolute;
    top: calc(100% + .5rem);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 6px 24px rgba(0,0,0,.13);
    z-index: 200;
    max-height: 22rem;
    overflow-y: auto;
    padding: .6rem 0;
    list-style: none;
    margin: 0;
}

.appt-dropdown.open .appt-dropdown__list {
    display: block;
}

.appt-dropdown__option {
    padding: 1rem 2rem;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background .12s;
    color: var(--primary-text-color);
    list-style: none;
}

.appt-dropdown__option:hover {
    background: var(--light-grey);
}

.appt-dropdown__option.selected {
    color: var(--color-accent);
    font-weight: 500;
}

/* textarea – styl jak #delivery_message w checkout */
.appt-textarea {
    background-color: var(--light-grey);
    border-radius: .8rem;
    border: 2px solid transparent;
    color: var(--primary-text-color);
    font-size: 1.3rem;
    font-family: inherit;
    width: 100%;
    min-height: 10rem;
    padding: 1.4rem 2rem;
    outline: none;
    resize: vertical;
}

.appt-textarea::placeholder {
    color: var(--middle-grey);
    opacity: 1;
}

.appt-textarea:focus {
    border-color: var(--color-accent);
}

/* error */
.appointment-error {
    display: none;
    font-size: 1.2rem;
    color: #c0392b;
    margin-top: .4rem;
    padding-left: .4rem;
}

.appointment-error--general {
    display: block;
    margin-bottom: .5rem;
}

/* intro text */
.appointment-intro {
    color: var(--middle-grey);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.appointment-intro p {
    font-size: 1.3rem;
}

/* sukces */
.appointment-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0 1rem;
    gap: 1.4rem;
}

.appointment-success__title {
    font-size: 2rem;
    font-weight: 400;
    color: var(--primary-text-color);
}

.appointment-success__desc {
    font-size: 1.4rem;
    color: var(--middle-grey);
    line-height: 1.6;
}

/* strona wizyta-w-salonie */
.wizyta-intro {
    color: var(--middle-grey);
    line-height: 1.6;
    margin-bottom: 3rem;
}

.wizyta-intro p {
    font-size: 1.4rem;
    margin-bottom: .8rem;
}

.wizyta-intro p:last-child {
    margin-bottom: 0;
}

.wizyta-form {
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
}

/* ===== pod formularzem ===== */

.wizyta-below {
    margin-top: 6rem;
    border-top: 1px solid var(--light-grey);
    padding-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.wizyta-section__title {
    font-size: 2rem;
    font-weight: 400;
    color: var(--primary-text-color);
    margin-bottom: 2rem;
}

.wizyta-seo-intro__text p {
    font-size: 1.4rem;
    color: var(--middle-grey);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.wizyta-seo-intro__benefits {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    margin-top: 2rem;
}

.wizyta-benefit {
    display: flex;
    align-items: center;
    gap: .8rem;
    font-size: 1.3rem;
    color: var(--primary-text-color);
}

/* telefon CTA */
.wizyta-phone-cta {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    margin-top: 1.6rem;
    padding: 1rem 2rem;
    border-radius: 3rem;
    background: var(--light-grey);
    color: var(--primary-text-color);
    text-decoration: none;
    font-size: 1.3rem;
    transition: background .15s;
}

.wizyta-phone-cta:hover {
    background: #e0e0e0;
    color: var(--primary-text-color);
}

.wizyta-phone-cta strong {
    color: var(--color-accent);
}

/* baner CTA obrączki */
.wizyta-rings-cta {
    display: block;
    position: relative;
    border-radius: 1.4rem;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 21 / 7;
}

.wizyta-rings-cta__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.wizyta-rings-cta:hover .wizyta-rings-cta__img {
    transform: scale(1.04);
}

.wizyta-rings-cta__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,.7) 0%, rgba(0,0,0,.3) 55%, rgba(0,0,0,.05) 100%);
}

.wizyta-rings-cta__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem;
    gap: .8rem;
}

.wizyta-rings-cta__label {
    font-size: 1.1rem;
    color: rgba(255,255,255,.7);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.wizyta-rings-cta__title {
    font-size: 2.6rem;
    font-weight: 400;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.wizyta-rings-cta__desc {
    font-size: 1.3rem;
    color: rgba(255,255,255,.85);
    line-height: 1.6;
    max-width: 42rem;
    margin: 0;
}

.wizyta-rings-cta__btn {
    display: inline-flex;
    align-self: flex-start;
    margin-top: .4rem;
    font-size: 1.3rem;
    color: #fff;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 3rem;
    padding: .7rem 2rem;
    transition: background .2s, border-color .2s;
}

.wizyta-rings-cta:hover .wizyta-rings-cta__btn {
    background: rgba(255,255,255,.2);
    border-color: #fff;
}

@media (max-width: 768px) {
    .wizyta-rings-cta {
        aspect-ratio: 4 / 3;
    }
    .wizyta-rings-cta__img {
        object-position: center center;
    }
    .wizyta-rings-cta__overlay {
        background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.2) 55%, transparent 100%);
    }
    .wizyta-rings-cta__content {
        justify-content: flex-end;
        padding: 2rem;
    }
    .wizyta-rings-cta__title {
        font-size: 2rem;
    }
    .wizyta-rings-cta__desc {
        display: none;
    }
}

.wizyta-salony__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

.wizyta-salon-card {
    display: block;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    text-decoration: none;
}

.wizyta-salon-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.wizyta-salon-card:hover img {
    transform: scale(1.05);
}

.wizyta-salon-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 55%, rgba(0,0,0,.05) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.2rem;
    gap: .8rem;
}

.wizyta-salon-card__text {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.wizyta-salon-card__city {
    font-size: 1.4rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.2;
}

.wizyta-salon-card__mall {
    font-size: 1.1rem;
    color: rgba(255,255,255,.8);
}

.wizyta-salon-card__btn {
    display: inline-block;
    align-self: flex-start;
    font-size: 1.1rem;
    color: #fff;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 3rem;
    padding: .4rem 1.2rem;
    transition: background .2s, border-color .2s;
}

.wizyta-salon-card:hover .wizyta-salon-card__btn {
    background: rgba(255,255,255,.2);
    border-color: #fff;
}

@media (max-width: 1024px) {
    .wizyta-salony__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .wizyta-seo-intro__benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .wizyta-salony__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* mobilka: full width + full height */
@media (max-width: 768px) {
    #sezamAppointmentModal {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }
}
