/**
 * Modern Newsletter Section Styles
 * Enhanced newsletter signup with modern design
 * Created: December 2024
 */

/* ============================================
   Newsletter Section Base
   ============================================ */
.newsletter-modern-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #07294d 0%, #0a3d6b 100%);
    overflow: hidden;
}

.newsletter-wrapper {
    position: relative;
    z-index: 1;
}

/* ============================================
   Newsletter Content (Left Side)
   ============================================ */
.newsletter-content {
    color: #ffffff;
    padding-right: 30px;
}

.newsletter-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 25px;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.newsletter-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Benefits List */
.newsletter-benefits {
    margin-bottom: 35px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.95);
}

.benefit-item i {
    color: #0c8b51;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.benefit-item span {
    font-size: 1rem;
}

/* Social Links */
.newsletter-social {
    margin-top: 35px;
}

.social-title {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    transform: translateY(-5px);
    color: #ffffff;
}

.social-link.facebook:hover {
    background: #1877f2;
}

.social-link.twitter:hover {
    background: #1da1f2;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.youtube:hover {
    background: #ff0000;
}

.social-link.telegram:hover {
    background: #0088cc;
}

/* ============================================
   Newsletter Form (Right Side)
   ============================================ */
.newsletter-form-wrapper {
    background: #ffffff;
    border-radius: 25px;
    padding: 40px 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.newsletter-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.form-label i {
    color: #f77112;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: #2d3748;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #f77112;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(247, 113, 18, 0.1);
}

.form-control::placeholder {
    color: #a0aec0;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
}

/* Checkbox Group */
.checkbox-group {
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    background: #f8f9fa;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark {
    background: #f77112;
    border-color: #f77112;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 0.75rem;
}

.checkbox-text {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.6;
}

.checkbox-text a {
    color: #f77112;
    text-decoration: none;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #f77112 0%, #d65d0a 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #d65d0a 0%, #c04e08 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(247, 113, 18, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Form Messages */
.form-message {
    display: none;
    padding: 15px 20px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 0.95rem;
    align-items: center;
    gap: 12px;
}

.form-message.show {
    display: flex;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.success-message i {
    color: #28a745;
    font-size: 1.25rem;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.error-message i {
    color: #dc3545;
    font-size: 1.25rem;
}

/* Trust Indicators */
.newsletter-trust {
    display: flex;
    justify-content: space-around;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #718096;
}

.trust-item i {
    font-size: 1.5rem;
    color: #0c8b51;
}

/* Subscriber Count */
.subscriber-count {
    text-align: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: #ffffff;
    font-size: 1.1rem;
}

.subscriber-count i {
    font-size: 1.5rem;
    margin-right: 10px;
    color: #0c8b51;
}

.subscriber-count strong {
    color: #0c8b51;
    font-size: 1.3rem;
}

/* ============================================
   Background Decoration
   ============================================ */
.newsletter-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.decoration-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
}

.decoration-shape.shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #f77112 0%, #d65d0a 100%);
    top: -250px;
    right: -250px;
}

.decoration-shape.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #0c8b51 0%, #0a7043 100%);
    bottom: -200px;
    left: -200px;
}

.decoration-shape.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ============================================
   Loading State
   ============================================ */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn.loading .btn-text::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .newsletter-modern-section {
        padding: 80px 0;
    }

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

    .newsletter-content {
        padding-right: 15px;
    }
}

@media (max-width: 991px) {
    .newsletter-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }

    .newsletter-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .benefit-item {
        justify-content: center;
    }

    .newsletter-social {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .newsletter-modern-section {
        padding: 60px 0;
    }

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

    .newsletter-description {
        font-size: 1rem;
    }

    .newsletter-form-wrapper {
        padding: 30px 25px;
    }

    .form-control {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .submit-btn {
        padding: 15px 25px;
        font-size: 1rem;
    }

    .newsletter-trust {
        flex-direction: column;
        gap: 15px;
    }

    .subscriber-count {
        font-size: 1rem;
    }

    .subscriber-count strong {
        font-size: 1.15rem;
    }
}

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

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

    .newsletter-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .newsletter-form-wrapper {
        padding: 25px 20px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .benefit-item {
        font-size: 0.9rem;
    }

    .benefit-item i {
        font-size: 1.1rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .newsletter-modern-section {
        display: none;
    }
}
