/* ==========================================================================
   Leads Backend - Modal Styles
   Matches site brand: #F5A632 (gold/orange), dark theme, Raleway font
   ========================================================================== */

/* Overlay */
.leads-backend-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(6px);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.leads-backend-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Modal card */
.leads-backend-modal-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 32px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: leadsBackedSlideUp 0.4s ease;
}

@keyframes leadsBackedSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close button */
.leads-backend-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.leads-backend-modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

/* Header */
.leads-backend-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.leads-backend-modal-header h2 {
    margin: 0 0 10px 0;
    font-family: 'Raleway', Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
}

.leads-backend-modal-header p {
    margin: 0;
    font-size: 15px;
    color: #6b7280;
    line-height: 1.5;
}

/* Form */
#leads-backend-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#leads-backend-form input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#leads-backend-form input[type="email"]:focus {
    outline: none;
    border-color: #F5A632;
    box-shadow: 0 0 0 3px rgba(245, 166, 50, 0.2);
}

.leads-backend-submit-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: #111827;
    background: #F5A632;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.leads-backend-submit-btn:hover {
    background: #e0942b;
}

.leads-backend-submit-btn:active {
    transform: scale(0.98);
}

.leads-backend-submit-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* Message */
#leads-backend-message {
    margin-top: 8px;
    font-size: 13px;
    color: #dc2626;
    min-height: 18px;
}

/* Success state */
#leads-backend-download {
    text-align: center;
    animation: leadsBackedFadeIn 0.4s ease;
}

@keyframes leadsBackedFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.leads-backend-success-icon {
    font-size: 48px;
    color: #22c55e;
    margin-bottom: 12px;
}

#leads-backend-download h3 {
    margin: 0 0 8px 0;
    font-family: 'Raleway', Helvetica, Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

#leads-backend-download p {
    margin: 0 0 20px 0;
    font-size: 15px;
    color: #6b7280;
}

.leads-backend-download-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: #111827;
    background: #F5A632;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

.leads-backend-download-btn:hover {
    background: #e0942b;
}

/* Responsive */
@media (max-width: 480px) {
    .leads-backend-modal-card {
        padding: 32px 24px;
        margin: 16px;
    }
}