
/* Gosmart popup */

.gosmart-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.gosmart-popup.is-open {
    display: block;
}

.gosmart-popup__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
}

.gosmart-popup__container {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.gosmart-popup__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
}

.gosmart-popup__form-side {
    padding: 45px 40px;
    box-sizing: border-box;
}

.gosmart-popup__logo {
    display: block;
    max-width: 190px;
    max-height: 65px;
    object-fit: contain;
    margin-bottom: 35px;
}

.gosmart-popup__form-side h2 {
    margin: 0 0 15px;
    font-size: 22px;
    line-height: 1.25;
    color: #233046;
}

.gosmart-popup__form-side p {
    margin: 0 0 25px;
    font-size: 15px;
    line-height: 1.5;
    color: #555;
}

.gosmart-popup__field {
    margin-bottom: 15px;
}

.gosmart-popup__field input,
.gosmart-popup__field textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 15px;
    box-sizing: border-box;
    border: 1px solid #d9dfe7;
    border-radius: 5px;
    background: #fff;
    font: inherit;
    font-size: 14px;
    color: #233046;
}

.gosmart-popup__field textarea {
    height: 85px;
    resize: vertical;
}

.gosmart-popup__submit {
    display: block;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 5px;
    background: var(--clinicdelta-theme-color);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.gosmart-popup__submit:hover {
    opacity: 0.9;
}

.gosmart-popup__image {
    min-height: 480px;
    background-image: url('/img/form-60-bg.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.gosmart-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    cursor: pointer;
}

.gosmart-popup__close::before,
.gosmart-popup__close::after {
    content: "";
    position: absolute;
    top: 16px;
    left: 8px;
    width: 18px;
    height: 2px;
    background: #333;
}

.gosmart-popup__close::before {
    transform: rotate(45deg);
}

.gosmart-popup__close::after {
    transform: rotate(-45deg);
}

.gosmart-popup__error {
    margin-top: 12px;
    color: #d93025;
    font-size: 13px;
}

.gosmart-popup__success h2 {
    color: #233046;
}

.gosmart-popup__success p {
    line-height: 1.6;
}

/* Floating phone button */

.gosmart-phone {
    position: fixed;
    top: 50%;
    right: 25px;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--clinicdelta-theme-color);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.gosmart-phone:hover {
    opacity: 0.9;
}

@media (max-width: 767px) {
    .gosmart-popup__overlay {
        padding: 12px;
        overflow-y: auto;
    }

    .gosmart-popup__container {
        max-width: 460px;
        margin: auto;
    }

    .gosmart-popup__content {
        grid-template-columns: 1fr;
    }

    .gosmart-popup__form-side {
        padding: 35px 24px;
    }

    .gosmart-popup__logo {
        max-width: 150px;
        margin-bottom: 25px;
    }

    .gosmart-popup__form-side h2 {
        font-size: 16px;
    }

    .gosmart-popup__image {
        min-height: 190px;
        background-position: center;
    }

    .gosmart-phone {
        right: 12px;
        width: 54px;
        height: 54px;
        font-size: 26px;
    }
}

/* Gosmart — согласие на обработку персональных данных */

.gosmart-popup__consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: inherit;
    cursor: pointer;
}

.gosmart-popup__consent input {
    flex: 0 0 13px;
    width: 13px;
    height: 13px;
    margin: 3px 0 0;
    accent-color: var(--clinicdelta-theme-color);
    cursor: pointer;
}

.gosmart-popup__consent span {
    flex: 1;
}

.gosmart-popup__consent a {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .gosmart-popup__consent {
        font-size: 12px;
    }
}