/* ========================================
   تنسيقات النشرة الإخبارية (Newsletter)
   ======================================== */

/* --- نموذج الاشتراك في الفوتر --- */
.newsletter-form {
    margin-top: 1.5rem;
}

.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
}

.newsletter-btn {
    padding: 0.75rem 1.25rem;
    background: var(--text-light);
    color: var(--gov-primary);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
}

.newsletter-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* --- النافذة المنبثقة (Modal) --- */
.newsletter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.newsletter-modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-white);
    width: 90%;
    max-width: 500px;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-light);
}

.newsletter-modal.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-medium);
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.modal-header {
    background: linear-gradient(135deg, var(--gov-primary) 0%, var(--gov-secondary) 100%);
    padding: 2rem;
    color: var(--text-light);
    text-align: center;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.modal-header h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.modal-body {
    padding: 2rem;
}

.modal-form .form-group {
    margin-bottom: 1rem;
}

.modal-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.modal-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.modal-input:focus {
    border-color: var(--gov-primary);
    outline: none;
}

.modal-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--gov-primary);
    color: var(--text-light);
    border: none;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-btn:hover {
    background: var(--gov-secondary);
    transform: translateY(-2px);
}

.modal-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-medium);
}

/* استجابة الموبايل */
@media (max-width: 480px) {
    .newsletter-input-group {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }

    .modal-content {
        width: 95%;
    }
}