/* Lead capture modal: minimal Bringer dark theme */

body.wf-lead-modal-open {
    overflow: hidden;
}

.wf-lead-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.wf-lead-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.wf-lead-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 9, 13, 0.82);
    backdrop-filter: blur(4px);
}

.wf-lead-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 32rem;
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
    padding: 1.75rem 1.5rem 1.5rem;
    margin: 0;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.wf-lead-modal__panel.bringer-block {
    padding: 1.75rem 1.5rem 1.5rem;
}

.wf-lead-modal .wf-lead-modal__panel button.wf-lead-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--bringer-s-heading, #F5F7FA);
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    transition: background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.wf-lead-modal .wf-lead-modal__panel button.wf-lead-modal__close:hover {
    background: var(--bringer-s-border-mute, rgba(255, 255, 255, 0.12));
}

.wf-lead-modal__close-icon {
    display: block;
    flex-shrink: 0;
}

.wf-lead-modal__title {
    margin: 0 2.75rem 0.5rem 0;
    font-size: 1.35rem;
    color: var(--bringer-s-heading, #F5F7FA);
}

.wf-lead-modal__lead {
    margin: 0 0 1.25rem;
}

.wf-lead-modal__optional {
    font-weight: 400;
    opacity: 0.7;
}

.wf-lead-modal__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.wf-form-captcha-label {
    display: block;
    margin-bottom: 0.5em;
}

.wf-form-captcha {
    min-height: 65px;
    margin: 0 0 1.25em;
}

.wf-lead-modal-form {
    position: relative;
    width: 100%;
}

.wf-lead-modal-form .bringer-form-content {
    transition: opacity 0.3s;
}

.wf-lead-modal-form select {
    width: 100%;
    margin-bottom: 1.25em;
    padding: 0.85em 1em;
    background: transparent;
    border: 1px solid var(--bringer-s-border-mute, rgba(255, 255, 255, 0.2));
    color: inherit;
    border-radius: 4px;
}

.wf-lead-modal-form input[type="date"] {
    width: 100%;
    margin-bottom: 1.25em;
    padding: 0.85em 1em;
    background: transparent;
    border: 1px solid var(--bringer-s-border-mute, rgba(255, 255, 255, 0.2));
    color: inherit;
    border-radius: 4px;
    color-scheme: dark;
}

.wf-lead-modal-form [type="submit"] {
    margin-bottom: 0;
    width: 100%;
}

.wf-lead-modal-form.is-busy .bringer-form-content {
    opacity: 0.5;
    pointer-events: none;
}

.wf-lead-modal-form.is-busy {
    pointer-events: none;
}

.wf-lead-modal-form.is-busy .bringer-form-spinner {
    opacity: 1;
}

.wf-lead-modal-form.is-error {
    animation: sta_shake 0.3s linear;
}

.wf-lead-modal__response {
    margin-top: 1rem;
    text-align: center;
    font-size: var(--bringer-t-meta-fs, 0.75rem);
    font-weight: var(--bringer-t-meta-fw, 600);
    letter-spacing: var(--bringer-t-meta-ls, 0.08em);
    text-transform: uppercase;
    color: var(--bringer-s-heading, #F5F7FA);
}

.wf-lead-modal__response[hidden] {
    display: none;
}

.wf-lead-modal__response.is-success {
    color: var(--bringer-s-text-accent, #5C9DFF);
}

.wf-lead-modal__response.is-error {
    color: #f87171;
}

@media only screen and (max-width: 480px) {
    .wf-lead-modal {
        padding: 0.75rem;
        align-items: flex-end;
    }

    .wf-lead-modal__panel {
        max-height: calc(100vh - 1.5rem);
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}
