/**
 * Demo Email Capture Modal Styles
 */

.demo-email-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.demo-email-modal-overlay.visible {
    opacity: 1;
}

.demo-email-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-email-modal-overlay.visible .demo-email-modal {
    transform: scale(1) translateY(0);
}

/* Header */
.demo-email-modal-header {
    text-align: center;
    padding: 32px 32px 24px;
    background: linear-gradient(180deg, rgba(54, 139, 193, 0.2) 0%, transparent 100%);
}

.demo-email-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #368BC1 0%, #2a6f9a 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(54, 139, 193, 0.3);
}

.demo-email-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.demo-email-modal-header h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
}

.demo-email-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin: 0;
}

/* Body */
.demo-email-modal-body {
    padding: 0 32px 24px;
}

/* Benefits list */
.demo-email-benefits {
    margin-bottom: 24px;
}

.demo-benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.demo-benefit-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.demo-benefit-item svg {
    width: 20px;
    height: 20px;
    stroke: #10b981;
    flex-shrink: 0;
}

.demo-benefit-item span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

/* Form */
.demo-email-form {
    margin-top: 20px;
}

.demo-email-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-email-input-group input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.demo-email-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.demo-email-input-group input:focus {
    border-color: #368BC1;
    background: rgba(54, 139, 193, 0.1);
}

.demo-email-input-group input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.demo-email-submit-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.demo-email-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.demo-email-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.demo-email-submit-btn .spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Privacy notice */
.demo-email-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.demo-email-privacy svg {
    width: 14px;
    height: 14px;
}

/* Error message */
.demo-email-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
}

/* Success state */
.demo-email-success {
    text-align: center;
    padding: 20px 0;
}

.demo-email-success .success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.demo-email-success .success-icon svg {
    width: 36px;
    height: 36px;
    stroke: white;
}

.demo-email-success h3 {
    color: #fff;
    font-size: 22px;
    margin: 0 0 8px;
}

.demo-email-success p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0 0 20px;
}

.discount-code-display {
    background: rgba(16, 185, 129, 0.15);
    border: 2px dashed rgba(16, 185, 129, 0.5);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 20px;
}

.discount-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    display: block;
    margin-bottom: 4px;
}

.discount-code {
    color: #10b981;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Monaco', 'Menlo', monospace;
    letter-spacing: 2px;
}

.demo-signup-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #368BC1 0%, #2a6f9a 100%);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.demo-signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(54, 139, 193, 0.3);
}

/* Footer */
.demo-email-modal-footer {
    padding: 16px 32px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-skip-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    transition: color 0.2s;
}

.demo-skip-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Social proof */
.demo-social-proof {
    padding: 16px 32px 24px;
    text-align: center;
}

.social-proof-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.social-proof-stat strong {
    color: #fbbf24;
    font-size: 18px;
}

.social-proof-stat span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* Mobile responsive */
@media (max-width: 520px) {
    .demo-email-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .demo-email-modal {
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
        overflow-y: auto;
    }

    .demo-email-modal-header {
        padding: 24px 20px 20px;
    }

    .demo-email-modal-header h2 {
        font-size: 20px;
    }

    .demo-email-modal-body {
        padding: 0 20px 20px;
    }

    .demo-email-modal-footer {
        padding: 12px 20px;
    }

    .demo-social-proof {
        padding: 12px 20px 20px;
    }

    .discount-code {
        font-size: 22px;
    }
}
