/* Lead popup v3 */
#leadPopup .modal-dialog {
    max-width: 760px;
    margin: 1rem auto;
}

@media (max-width: 767.98px) {
    #leadPopup .modal-dialog {
        margin: 0;
        max-width: 100%;
        min-height: 100%;
        display: flex;
        align-items: flex-end;
    }

    #leadPopup.show .modal-dialog {
        transform: none;
    }
}

.lead-popup {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
    position: relative;
}

@media (max-width: 767.98px) {
    .lead-popup {
        border-radius: 24px 24px 0 0;
        animation: popupSlideUp .35s ease;
    }
}

@keyframes popupSlideUp {
    from { transform: translateY(100%); opacity: .5; }
    to { transform: translateY(0); opacity: 1; }
}

.lead-popup .btn-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 12;
    background: #fff;
    opacity: 1;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
}

.popup-left {
    background: linear-gradient(155deg, #0f172a 0%, #1e293b 45%, #b45309 130%);
    color: #fff;
    padding: 36px 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    position: relative;
    overflow: hidden;
}

.popup-left::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(249, 168, 37, .15);
    top: -60px;
    right: -40px;
}

.popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(249, 168, 37, .22);
    color: #fde68a;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 16px;
    width: fit-content;
    border: 1px solid rgba(251, 191, 36, .35);
}

.popup-left h3 {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.popup-left > p {
    font-size: 14px;
    opacity: .92;
    margin-bottom: 18px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.popup-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.popup-trust-pill {
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    padding: 6px 10px;
    border-radius: 999px;
}

.popup-perks {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.popup-perks li {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-perks i {
    color: #F9A825;
    font-size: 16px;
    flex-shrink: 0;
}

.popup-right {
    padding: 32px 28px 28px;
    background: #fff;
}

.popup-form-head {
    margin-bottom: 16px;
}

.popup-form-head h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 4px;
    color: #111827;
}

.popup-form-head p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.popup-right .form-control,
.popup-right .form-select {
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    padding: 12px 14px;
    font-size: 15px;
}

.popup-right .form-control:focus,
.popup-right .form-select:focus {
    border-color: #F9A825;
    box-shadow: 0 0 0 3px rgba(249, 168, 37, .18);
}

.popup-input-icon {
    position: relative;
}

.popup-input-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.popup-input-icon .form-control {
    padding-left: 40px;
}

.btn-cta {
    background: linear-gradient(135deg, #F9A825, #FF6F00) !important;
    border: none !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(249, 168, 37, .4);
    margin-top: 6px;
}

.btn-cta:hover {
    transform: translateY(-1px);
    color: #111 !important;
    box-shadow: 0 10px 28px rgba(249, 168, 37, .5);
}

.popup-tnc {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    margin: 12px 0 0;
}

.popup-success-msg {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.popup-success-msg.show {
    display: block;
}

.popup-success-msg i {
    font-size: 48px;
    color: #10B981;
    margin-bottom: 12px;
}

@media (max-width: 767.98px) {
    .popup-left {
        padding: 24px 20px 20px;
        text-align: center;
        align-items: center;
    }

    .popup-left h3 {
        font-size: 1.25rem;
    }

    .popup-trust-row {
        justify-content: center;
    }

    .popup-perks li {
        justify-content: center;
    }

    .popup-right {
        padding: 22px 18px 24px;
    }
}
