/* ================= LAMPLIFE PREMIUM MODAL STYLE ================= */

:root {
    --bl-color-primary: #b78e28 !important;
    --bl-color-primary-hover: #9a761e !important;
    --bl-radius-md: 1.75rem !important;
    --bl-color-overlay: rgba(15, 23, 42, 0.8) !important;
}

/* 1. Механика всплытия */
.bl-dialog {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    padding: 1.5rem; /* Защита от прилипания к краям экрана */
    transition: opacity 0.3s, visibility 0s 0.3s;
}

.bl-dialog.is-open {
    opacity: 1;
    visibility: visible;
    background-color: var(--bl-color-overlay);
    transition: opacity 0.3s, visibility 0s;
}

/* 2. Контейнер формы */
.bl-dialog__panel .bl-dialog__content-wrapper {
    background: #fff;
    border-radius: var(--bl-radius-md);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(183, 142, 40, 0.2);
    padding: 3rem 2.5rem;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 100%;
    max-width: 440px;
    margin: auto;
}

.bl-dialog.is-open .bl-dialog__content-wrapper {
    transform: scale(1);
}

/* 3. Заголовок */
.bl-dialog__title {
    font-size: 1.6rem !important;
    font-weight: 600 !important;
    color: #1c1c1c !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
    padding-right: 0 !important;
}

/* 4. Кнопка закрытия (Фикс квадратика и позиции) */
.bl-dialog__close {
    position: absolute !important;
    top: 1.5rem !important;
    right: 1.5rem !important;
    font-family: Arial, sans-serif !important;
    font-size: 30px !important;
    line-height: 1 !important;
    color: #94a3b8 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.bl-dialog__close::before { content: '×' !important; }
.bl-dialog__close svg, .bl-dialog__close i { display: none !important; }

/* 5. Инпуты и Форма */
.bl-form { margin-top: 1rem !important; }

.bl-input {
    width: 100% !important;
    height: 3.8rem !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    padding: 0 1.2rem !important;
    margin-bottom: 1rem !important;
    font-size: 1.1rem !important;
    background: #f8fafc !important;
    -webkit-appearance: none !important; /* Фикс для iOS */
    transition: all 0.2s ease !important;
}

.bl-input:focus {
    background: #fff !important;
    border-color: var(--bl-color-primary) !important;
    box-shadow: 0 0 0 4px rgba(183, 142, 40, 0.1) !important;
    outline: none !important;
}

/* 6. Кнопка отправки */
.bl-submit {
    background: var(--bl-color-primary) !important;
    color: #fff !important;
    height: 4rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    width: 100% !important;
    border: none !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    box-shadow: 0 10px 15px -3px rgba(183, 142, 40, 0.3) !important;
}

.bl-submit:hover {
    background: var(--bl-color-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(183, 142, 40, 0.4) !important;
}

/* 7. Политика */
.bl-policy {
    background: transparent !important;
    color: #94a3b8 !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
    padding-top: 1.5rem !important;
    text-align: center !important;
}

.bl-policy a {
    color: var(--bl-color-primary) !important;
    text-decoration: underline !important;
}

/* Скрытые системные элементы */
.bl-antispam, .bl-thank { display: none; }

/* Адаптив под мобильные устройства */
@media screen and (max-width: 480px) {
    .bl-dialog__panel .bl-dialog__content-wrapper {
        padding: 2.5rem 1.5rem;
    }
    .bl-dialog__title {
        font-size: 1.4rem !important;
    }
}