/* Email Popup Overlay */
.email-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(2px);
}

/* Active state */
.email-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup content container */
.email-popup-content {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.email-popup-overlay.active .email-popup-content {
    transform: translateY(0);
}

/* Close button */
.email-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    font-weight: 300;
}

.email-popup-close:hover {
    color: #333;
}

/* Icon */
.email-popup-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

/* Title */
.email-popup-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

/* Subtitle */
.email-popup-subtitle {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 25px;
}

/* Form */
.email-popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Input field */
.email-popup-input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, background-color 0.2s;
    background-color: #f9f9f9;
    font-family: inherit;
}

.email-popup-input:focus {
    border-color: #5bbd4f;
    background-color: #fff;
}

.email-popup-input::placeholder {
    color: #b0b0b0;
}

/* Submit button */
.email-popup-btn {
    background: linear-gradient(90deg, #5bbd4f 0%, #4cae4c 100%);
    color: #000000;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 10px rgba(91, 189, 79, 0.3);
    font-family: inherit;
}

.email-popup-btn:hover {
    background: linear-gradient(90deg, #4cae4c 0%, #439a43 100%);
    box-shadow: 0 6px 15px rgba(91, 189, 79, 0.4);
}

.email-popup-btn:active {
    transform: scale(0.98);
}

.email-popup-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Notice text */
.email-popup-notice {
    font-size: 12px;
    color: #b0b0b0;
    margin-top: 15px;
    margin-bottom: 0;
}

/* Success message */
.email-popup-success {
    padding: 20px 0;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .email-popup-content {
        margin: 20px;
        padding: 30px 20px;
        max-width: calc(100% - 40px);
    }
    
    .email-popup-title {
        font-size: 20px;
    }
    
    .email-popup-subtitle {
        font-size: 13px;
    }
    
    .email-popup-input,
    .email-popup-btn {
        font-size: 15px;
    }
}
