.lead-form-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lead-form-modal[hidden] {
    display: none !important;
}

.lead-form-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 28, 48, 0.62);
    backdrop-filter: blur(4px);
}

.lead-form-modal__dialog {
    position: relative;
    width: min(100%, 460px);
    background: linear-gradient(165deg, #ffffff 0%, #f7f9fc 100%);
    border: 1px solid rgba(35, 86, 165, 0.12);
    border-radius: 20px;
    padding: 36px 32px 30px;
    box-shadow: 0 24px 60px rgba(18, 40, 80, 0.22);
    animation: leadFormIn 0.28s ease;
}

@keyframes leadFormIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lead-form-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #eef2f8;
    color: #2356A5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lead-form-modal__close:hover {
    background: #2356A5;
    color: #fff;
}

.lead-form-modal__eyebrow {
    margin: 0 0 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FF794A;
}

.lead-form-modal__title {
    margin: 0 0 8px;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    line-height: 1.25;
    color: #1a2b4a;

}

.lead-form-modal__subtitle {
    margin: 0 0 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: #5b6b82;
}

.lead-form__group {
    margin-bottom: 16px;
}

.lead-form__group label {
    display: block;
    margin-bottom: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #243652;
}

.lead-form__group label span {
    color: #FF794A;
}

.lead-form__group input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid #d7deea;
    border-radius: 12px;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #1a2b4a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-form__group input:focus {
    border-color: #2356A5;
    box-shadow: 0 0 0 3px rgba(35, 86, 165, 0.12);
}

.lead-form__group input.is-invalid {
    border-color: #d64545;
}

.lead-form__error {
    min-height: 18px;
    margin: 5px 0 0;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #d64545;
}

.lead-form__form-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff1f1;
    color: #b42318;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
}

.lead-form__submit {
    width: 100%;
    height: 50px;
    border: 3px solid #FF794A;
    border-radius: 50px;
    background: #2356A5;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.25s ease, transform 0.2s ease;
}

.lead-form__submit:hover {
    background: #1b4688;
    transform: translateY(-1px);
}

.lead-form__submit:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none;
}

.lead-form__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: leadSpin 0.7s linear infinite;
}

@keyframes leadSpin {
    to {
        transform: rotate(360deg);
    }
}

.lead-form-modal__success {
    text-align: center;
    padding: 12px 0 4px;
}

.lead-form-modal__success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2356A5, #3f7fd4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.lead-form-modal__success-message {
    margin: 0 0 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #3d4f6a;
}

body.lead-form-open {
    overflow: hidden;
}

@media (max-width: 575px) {
    .lead-form-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .lead-form-modal__dialog {
        width: 100%;
        padding: 28px 20px 22px;
        border-radius: 18px 18px 12px 12px;
    }

    .lead-form-modal__title {
        font-size: 24px;
        justify-self: left;
    }
}
