/* ========================================================================== */
/* МОДАЛЬНОЕ ОКНО ЗАЯВКИ — request-modal.css                                  */
/* Переиспользуемое окно: вешается на любую кнопку/ссылку через атрибут       */
/* data-open-request-modal (см. includes/request-modal.php и                  */
/* assets/js/request-modal.js). Подключено один раз в header.php,             */
/* поэтому работает одинаково на всех страницах.                              */
/* ========================================================================== */

.request-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 35, 35, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1101;
}

.request-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(440px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    background-color: #ffffff;
    border-radius: 28px;
    padding: 36px 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    z-index: 1102;
}

.request-overlay.open,
.request-modal.open {
    display: block;
}

.request-modal__close {
    position: absolute;
    top: 16px;
    right: 18px;
    border: none;
    background: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: rgb(120, 120, 120);
}

.request-modal__title {
    font-size: 24px;
    margin: 0 0 6px 0;
    padding-right: 24px;
    color: #1a1a1a;
}

.request-modal__text {
    color: rgb(90, 90, 90);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 22px 0;
}


/* ---------------------------------------------------------------------------------- */

/* Секция request-modal.css - форма */

.request-form__group {
    margin-bottom: 16px;
}

.request-form__label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.request-form__input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(18, 124, 124, 0.25);
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a1a;
    background-color: #fafffe;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.request-form__input:focus {
    outline: none;
    border-color: var(--accent, #22686D);
}

.request-form__options {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.request-form__option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(18, 124, 124, 0.15);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.request-form__option:hover {
    border-color: rgba(18, 124, 124, 0.35);
}

.request-form__option input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent, #22686D);
    flex-shrink: 0;
    cursor: pointer;
}

.request-form__option span {
    font-size: 14px;
    line-height: 1.4;
    color: rgb(50, 50, 50);
}

.request-form__consent {
    margin-top: 6px;
    margin-bottom: 4px;
}

.request-form__consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.request-form__consent-label input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent, #22686D);
    flex-shrink: 0;
    cursor: pointer;
}

.request-form__consent-label span {
    font-size: 13px;
    line-height: 1.5;
    color: rgb(90, 90, 90);
}

.request-form__consent-label a {
    color: var(--accent, #22686D);
    text-decoration: underline;
}

.request-form__consent-label a:hover {
    color: var(--accent-hover, #185458);
}

.request-form__submit {
    width: 100%;
    height: 50px;
    margin-top: 22px;
    border: none;
    border-radius: 20px;
    background-color: var(--accent, #22686D);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.request-form__submit:hover {
    background-color: var(--accent-hover, #185458);
    transform: translateY(-2px);
}

.request-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.request-form__status {
    margin-top: 14px;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.request-form__status--success {
    color: rgb(24, 130, 90);
}

.request-form__status--error {
    color: rgb(190, 50, 50);
}


/* ---------------------------------------------------------------------------------- */

/* Секция request-modal.css - адаптив */

@media (max-width: 480px) {
    .request-modal {
        padding: 28px 20px;
        border-radius: 22px;
    }

    .request-modal__title {
        font-size: 20px;
    }
}