/* Newsletter Subscription Form Styles */
.newsletter-form-container {
/*     max-width: 500px; */
    margin: 0 auto;
/*     padding: 20px; */
/*     font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; */
	transform: translateY(20px);
    transition: all 0.6s ease;
}

.newsletter-form-container.loaded {
    opacity: 1;
    transform: translateY(0);
}

.newsletter-form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    border: 1px solid #e1e5e9;
}

.newsletter-form-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    text-align: center;
    line-height: 1.3;
}

.newsletter-form-description {
    font-size: 16px;
    color: #6c757d;
    text-align: center;
    line-height: 1.5;
}

.newsletter-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: #482908;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.form-group input[type="text"].error,
.form-group input[type="email"].error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

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

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

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

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    display: none;
    font-weight: 500;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #c3e6cb;
    font-weight: 500;
}

.form-messages .error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #f5c6cb;
    font-weight: 500;
}

/* Thank You Page Styles */
.newsletter-thank-you-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.newsletter-thank-you-wrapper {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 60px 40px;
    border: 1px solid #e1e5e9;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.thank-you-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.thank-you-message {
    font-size: 18px;
    color: #6c757d;
    margin: 0 0 40px 0;
    line-height: 1.6;
}

.download-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    border: 2px dashed #dee2e6;
}

.download-text {
    font-size: 16px;
    color: #495057;
    margin: 0 0 25px 0;
    font-weight: 500;
}

.download-button {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.download-button.primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
}

.download-button.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
}

.download-button.success {
    background: linear-gradient(135deg, #fd7e14 0%, #e83e8c 100%);
    color: white;
    border: none;
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.download-button:active {
    transform: translateY(-1px);
}

.no-download-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.no-download-message p {
    color: #856404;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.back-to-home {
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-to-home:hover {
    color: #005a87;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .newsletter-form-wrapper {
        padding: 30px 25px;
    }
    
    .newsletter-form-title {
        font-size: 24px;
    }
    
    .newsletter-form-description {
        font-size: 14px;
    }
    
    .newsletter-thank-you-wrapper {
        padding: 40px 25px;
    }
    
    .thank-you-title {
        font-size: 28px;
    }
    
    .thank-you-message {
        font-size: 16px;
    }
    
    .download-section {
        padding: 20px;
    }
    
    .download-button {
        padding: 15px 30px;
        font-size: 16px;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .newsletter-form-wrapper {
        padding: 15px 15px;
    }
	
	.form-group {
      margin-bottom: 20px;
   }
    
    .newsletter-thank-you-wrapper {
        padding: 30px 20px;
    }
    
    .thank-you-title {
        font-size: 24px;
    }
    
    .download-button {
        width: 100%;
        min-width: auto;
    }
}

/* Loading Animation */
.newsletter-form-container.loading {
    pointer-events: none;
}

.newsletter-form-container.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Focus States for Accessibility */
.newsletter-submit-btn:focus,
.download-button:focus {
    outline: 3px solid rgba(0, 124, 186, 0.5);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .newsletter-form-wrapper,
    .newsletter-thank-you-wrapper {
        border: 2px solid #000000;
    }
    
    .newsletter-submit-btn,
    .download-button {
        border: 2px solid #000000;
    }
}
