/* lead-magnet.css */
/* Premium Modal/Overlay for Lead Magnet */

.lead-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    /* Above everything */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lead-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lead-modal-content {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 550px;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lead-modal-overlay.active .lead-modal-content {
    transform: translateY(0);
}

.lead-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px;
    line-height: 1;
}

.lead-modal-close:hover {
    color: #fff;
}

/* Typography */
.lead-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #a5a5a5);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #cbd5e1;
    /* Soft moon-gray */
    margin-bottom: 30px;
    line-height: 1.5;
}

.lead-highlight {
    color: #ffd700;
    /* Gold highlight */
    font-weight: 500;
}

/* Kit Form Placeholder Styling */
/* This ensures the form looks good even before custom styling */
.formkit-form {
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.formkit-input {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    /* Prevents zoom on iOS */
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.formkit-input:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.formkit-submit {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: none;
    background: #fff;
    color: #000;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.formkit-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Image Preview (Optional) */
.lead-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    opacity: 0.8;
}