/* ============================================================================
   Newsletter Subscription Section — Gmind Institute
   ============================================================================
   Add this CSS to your main stylesheet or include it separately.
   ============================================================================ */

/* ── Newsletter Section ── */
.newsletter-section {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 50%, #01579b 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.newsletter-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.newsletter-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ── Newsletter Content ── */
.newsletter-content {
    margin-bottom: 2rem;
}

.newsletter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.newsletter-icon svg {
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.newsletter-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* ── Newsletter Form ── */
.newsletter-form {
    margin-top: 1rem;
}

.newsletter-form-fields {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-input {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-input-name {
    flex: 0 0 180px;
}

.newsletter-input-email {
    flex: 1 1 250px;
    min-width: 200px;
}

.newsletter-submit-btn {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    background: #ff6d00;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.newsletter-submit-btn:hover {
    background: #e65100;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 109, 0, 0.4);
}

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

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

/* ── Spinner ── */
.newsletter-spinner {
    animation: newsletter-spin 1s linear infinite;
}

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

/* ── Message ── */
.newsletter-message {
    margin-top: 1rem;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.newsletter-message-success {
    background: rgba(76, 175, 80, 0.2);
    color: #a5d6a7;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.newsletter-message-error {
    background: rgba(244, 67, 54, 0.2);
    color: #ef9a9a;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* ── Privacy Text ── */
.newsletter-privacy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.75rem;
}

/* ── Unsubscribe Page ── */
.unsubscribe-page {
    max-width: 600px;
    margin: 4rem auto;
    text-align: center;
    padding: 3rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.unsubscribe-page h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    color: #1a237e;
    margin-bottom: 1rem;
}

.unsubscribe-page p {
    color: #666;
    line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 60px 0;
    }

    .newsletter-title {
        font-size: 1.5rem;
    }

    .newsletter-form-fields {
        flex-direction: column;
    }

    .newsletter-input-name,
    .newsletter-input-email {
        flex: 1 1 auto;
        width: 100%;
    }

    .newsletter-submit-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .newsletter-section {
        padding: 40px 0;
    }

    .newsletter-title {
        font-size: 1.25rem;
    }

    .newsletter-subtitle {
        font-size: 0.9rem;
    }

    .newsletter-icon {
        width: 60px;
        height: 60px;
    }

    .newsletter-icon svg {
        width: 32px;
        height: 32px;
    }
}
