/* ========================================
   Newsletter Modal Styles
   ======================================== */

/* Overlay */
.newsletter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.newsletter-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.newsletter-modal {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.newsletter-modal-overlay.active .newsletter-modal {
    transform: translateY(0) scale(1);
}

/* Close Button */
.newsletter-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-tertiary, #F3F4F6);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.newsletter-modal-close:hover {
    background: var(--border-light, #E5E7EB);
    transform: scale(1.1);
}

.newsletter-modal-close i {
    font-size: 14px;
    color: var(--text-secondary, #475569);
}

/* Icon */
.newsletter-modal-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 16px;
}

/* Title */
.newsletter-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #0F172A);
    text-align: center;
    margin: 0 0 12px 0;
}

/* Description */
.newsletter-modal-description {
    font-size: 15px;
    color: var(--text-secondary, #475569);
    text-align: center;
    line-height: 1.6;
    margin: 0 0 28px 0;
}

/* Form */
.newsletter-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Input Field */
.newsletter-modal-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid var(--border-light, #E5E7EB);
    border-radius: 10px;
    background: var(--bg-secondary, #F9FAFB);
    color: var(--text-primary, #0F172A);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.newsletter-modal-input:focus {
    border-color: var(--accent-default, #2563EB);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.newsletter-modal-input::placeholder {
    color: var(--text-muted, #6B7280);
}

.newsletter-modal-input.error {
    border-color: var(--accent-red, #EF4444);
    background: #FEF2F2;
}

/* Error Message */
.newsletter-modal-error {
    font-size: 13px;
    color: var(--accent-red, #EF4444);
    margin: -8px 0 0 0;
    display: none;
}

.newsletter-modal-error.visible {
    display: block;
}

/* Submit Button */
.newsletter-modal-submit {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-primary, #1F3A8A) 0%, var(--accent-default, #2563EB) 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.newsletter-modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 58, 138, 0.3);
}

.newsletter-modal-submit:active {
    transform: translateY(0);
}

.newsletter-modal-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Disclaimer */
.newsletter-modal-disclaimer {
    font-size: 12px;
    color: var(--text-muted, #6B7280);
    text-align: center;
    line-height: 1.5;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 480px) {
    .newsletter-modal {
        padding: 32px 24px;
        margin: 16px;
        width: calc(100% - 32px);
    }

    .newsletter-modal-icon {
        font-size: 40px;
    }

    .newsletter-modal-title {
        font-size: 20px;
    }

    .newsletter-modal-description {
        font-size: 14px;
    }

    .newsletter-modal-input,
    .newsletter-modal-submit {
        padding: 12px 14px;
        font-size: 14px;
    }
}
