/**
 * Newsletter Subscription Modal Styles
 */

/* Modal Container */
.newsletter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.newsletter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.newsletter-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

/* Header */
.newsletter-header {
    padding: 28px 32px 18px;
    text-align: center;
    background: linear-gradient(135deg, #0078D4 0%, #00BCF2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.newsletter-icon {
    font-size: 36px;
    margin-bottom: 10px;
    animation: bounce 1s ease infinite;
}

.newsletter-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.newsletter-header p {
    font-size: 14px;
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
}

/* Close Button */
.newsletter-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.newsletter-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Form */
.newsletter-form {
    padding: 24px 32px 28px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.form-group input[type="email"],
.form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #0078D4;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.checkbox-label:hover {
    background: #f5f5f5;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #0078D4;
}

.checkbox-label span {
    font-size: 15px;
    color: #555;
}

/* Submit Button */
.newsletter-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #0078D4 0%, #00BCF2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.newsletter-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 120, 212, 0.3);
}

.newsletter-submit:active:not(:disabled) {
    transform: translateY(0);
}

.newsletter-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Privacy Text */
.newsletter-privacy {
    text-align: center;
    font-size: 13px;
    color: #777;
    margin-top: 15px;
    margin-bottom: 0;
}

/* Success Message */
.newsletter-success {
    padding: 60px 40px;
    text-align: center;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease;
}

.newsletter-success h3 {
    font-size: 24px;
    color: #0078D4;
    margin: 0 0 10px 0;
}

.newsletter-success p {
    font-size: 16px;
    color: #555;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.newsletter-close-success {
    padding: 12px 30px;
    background: #0078D4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-close-success:hover {
    background: #005a9e;
    transform: translateY(-2px);
}

/* Newsletter Trigger Buttons */
.newsletter-trigger {
    background: linear-gradient(135deg, #0078D4 0%, #00BCF2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.newsletter-trigger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 120, 212, 0.3);
}

.newsletter-trigger:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .newsletter-content {
        width: 95%;
        max-height: 95vh;
    }

    .newsletter-header {
        padding: 30px 20px 15px;
    }

    .newsletter-header h2 {
        font-size: 22px;
    }

    .newsletter-header p {
        font-size: 14px;
    }

    .newsletter-form {
        padding: 20px;
    }

    .newsletter-success {
        padding: 40px 20px;
    }
}

/* Newsletter Banner Section (for homepage) */
.newsletter-banner-section {
    padding: 0 0 8px 0;
    margin: 0;
}

/* Newsletter Banner (for homepage) */
.newsletter-banner {
    background: linear-gradient(135deg, #0078D4 0%, #00BCF2 100%);
    color: white;
    padding: 28px 40px;
    border-radius: 0;
    margin: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.newsletter-banner-text {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.newsletter-banner h3 {
    font-size: 20px;
    margin: 0 0 4px 0;
    font-weight: 700;
}

.newsletter-banner p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

.newsletter-banner-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.newsletter-banner .newsletter-trigger {
    background: white;
    color: #0078D4;
    white-space: nowrap;
    flex-shrink: 0;
}

.newsletter-banner .newsletter-trigger:hover {
    background: #f0f0f0;
}
