/* Email Capture Modal Styles */
.email-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.email-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.email-modal {
    background: linear-gradient(135deg, #1a1f3a 0%, #0a0e27 100%);
    border: 1px solid rgba(53, 67, 240, 0.3);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(53, 67, 240, 0.2);
    width: 90%;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.email-modal-overlay.active .email-modal {
    transform: scale(1);
}

.email-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.email-modal-close:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: rgba(255, 68, 68, 0.4);
    transform: rotate(90deg);
}

.email-modal-content {
    padding: 50px 30px 30px;
    text-align: center;
}

.email-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: rgba(53, 67, 240, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.email-modal-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #3543F0 0%, #667eea 100%);
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(10px);
}

.email-modal-icon svg {
    width: 40px;
    height: 40px;
    stroke: #3543F0;
    position: relative;
    z-index: 1;
}

.email-modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.email-modal-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 40px 0;
}

.email-form {
    margin-bottom: 30px;
}

.email-input-group {
    position: relative;
    margin-bottom: 20px;
}

.email-input {
    width: 100%;
    padding: 18px 24px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: #3543F0;
    background: rgba(255, 255, 255, 0.08);
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.email-submit-btn {
    width: 100%;
    padding: 18px 32px;
    margin-top: 20px;
    background: linear-gradient(135deg, #3543F0 0%, #667eea 100%);
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.email-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(53, 67, 240, 0.4);
}

.email-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    animation: rotate 1s linear infinite;
}

.spinner-circle {
    stroke: #ffffff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.email-error,
.email-success {
    margin-top: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.email-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.email-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.email-benefits {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.benefit-item svg {
    width: 20px;
    height: 20px;
    fill: #10b981;
    flex-shrink: 0;
}

.email-privacy {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Mobile and Responsive */
@media (max-width: 768px) {
    .email-modal-overlay {
        padding: 20px;
        align-items: flex-start;
        padding-top: 10vh;
    }
    
    .email-modal {
        width: 100%;
        max-width: none;
        margin: 0;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .email-modal-content {
        padding: 40px 20px 30px;
    }
    
    .email-modal-title {
        font-size: 1.5rem;
    }
    
    .email-modal-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .email-input,
    .email-submit-btn {
        font-size: 1rem;
        padding: 16px 20px;
    }
    
    .email-modal-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .email-modal-icon svg {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .email-modal-overlay {
        padding: 10px;
        padding-top: 5vh;
    }
    
    .email-modal {
        border-radius: 16px;
        max-height: 90vh;
    }
    
    .email-modal-content {
        padding: 30px 16px 24px;
    }
    
    .email-modal-title {
        font-size: 1.25rem;
    }
    
    .email-modal-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 24px;
    }
    
    .benefit-item {
        font-size: 0.875rem;
    }
    
    .email-modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }
}

/* Very small screens */
@media (max-height: 600px) {
    .email-modal-overlay {
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .email-modal {
        max-height: calc(100vh - 40px);
    }
    
    .email-modal-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
}