/* Lead Generation Overlay & Modal Styles */
.lead-gen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    /* Fallback */
    backdrop-filter: blur(8px);
    /* The main blur effect */
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lead-gen-overlay.active {
    display: flex;
    opacity: 1;
}

/* Prevent scrolling when modal is open */
body.lead-gen-active {
    overflow: hidden !important;
}

.lead-gen-modal {
    background: #fff;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
    border-top: 5px solid var(--main-color-one, #0056b3);
}

.lead-gen-modal h3 {
    margin-bottom: 15px;
    color: var(--main-color-two, #333);
    font-size: 24px;
    font-weight: 700;
}

.lead-gen-modal p {
    margin-bottom: 25px;
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

.lead-gen-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lead-gen-form input,
.lead-gen-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.lead-gen-form input:focus,
.lead-gen-form select:focus {
    border-color: var(--main-color-one, #0056b3);
    outline: none;
}

.lead-gen-btn {
    background-color: var(--main-color-one, #0056b3);
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.lead-gen-btn:hover {
    background-color: var(--main-color-two, #003d80);
}

.lead-gen-footer {
    margin-top: 15px;
    font-size: 12px;
    color: #999;
}

/* Responsive adjustments */
@media (max-width: 575px) {
    .lead-gen-modal {
        padding: 25px;
    }

    .lead-gen-modal h3 {
        font-size: 20px;
    }
}

/* Exclude Navbar from Blur */
.navbar-area,
.nav-area-wrapper-relative,
header {
    z-index: 10000 !important;
    position: relative;
    /* Ensure z-index works */
    background: #fff;
    /* Ensure it has a background to cover the overlay if needed */
}

/* If navbar is sticky/fixed, this ensures it stays on top */
.navbar-area.is-sticky,
.navbar-area.sticky {
    z-index: 10000 !important;
}

/* Custom Success Modal */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.success-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.success-modal {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.success-overlay.active .success-modal {
    transform: scale(1);
}

.success-modal .icon-box {
    width: 80px;
    height: 80px;
    background: #e8f5e9;
    color: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

.success-modal h3 {
    margin-bottom: 10px;
    color: #333;
}

.success-modal p {
    color: #666;
    margin-bottom: 25px;
}

.success-modal .btn-common {
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.success-modal .btn-common:hover {
    background: #43a047;
}