/* ebook-lead-magnet public form styles */


/* Overlay */

.elmlemag-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.elmlemag-overlay[hidden] {
    display: none;
}

/* Modal */

.elmlemag-modal {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    padding: 36px 40px 32px;
    width: 100%;
    max-width: 420px;
}

.elmlemag-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 0;
}

.elmlemag-close:hover {
    color: #111;
}

.elmlemag-pitch {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.25;
}

.elmlemag-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.elmlemag-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
}

.elmlemag-field-input {
    padding: 0.6em 0.9em;
    border: 1px solid var(--wp--preset--color--contrast, #111);
    border-radius: var(--wp--preset--border-radius, 0);
    background: var(--wp--preset--color--base, #fff);
    color: var(--wp--preset--color--contrast, #111);
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    box-sizing: border-box;
}

.elmlemag-field-input:focus {
    outline: 2px solid var(--wp--preset--color--contrast, #111);
    outline-offset: -1px;
    border-color: transparent;
}

.elmlemag-submit-btn {
    width: 100%;
    margin-top: 4px;
}

.elmlemag-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.elmlemag-modal-availability {
    margin: 6px 0 0;
    font-size: 0.82rem;
    color: #666;
    text-align: center;
    min-height: 1em;
}

.elmlemag-message {
    margin: 10px 0 0;
    font-size: 0.9rem;
    min-height: 1.2em;
}

.elmlemag-message.is-error {
    color: #b32d2e;
}

.elmlemag-thankyou-msg {
    color: #444;
    font-size: 0.95rem;
    margin: 0 0 24px;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .elmlemag-modal {
        padding: 28px 20px 24px;
    }
}

/* Social proof toast */

.elmlemag-social-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    max-width: 280px;
    z-index: 99997;
    pointer-events: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.elmlemag-social-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
