/* Newsletter signup specific styles - Professional Enhanced Version */

/* Typography and base improvements */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #fafbfc;
}

.newsletter-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Enhanced Hero Section */
.newsletter-hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.newsletter-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #1a202c;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.newsletter-hero p {
    font-size: 1.2rem;
    color: #4a5568;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* Professional Form Container */
.signup-form-container {
    background: white;
    border-radius: 20px;
    padding: 4rem;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    margin-bottom: 4rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.signup-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #02812c 0%, #764ba2 100%);
}

/* Enhanced Form Groups */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.form-group label::after {
    content: ' *';
    color: #e53e3e;
    font-weight: 400;
}

.form-group label.optional::after {
    content: ' (optional)';
    color: #718096;
    font-weight: 400;
    font-size: 0.85rem;
}

/* Professional Input Styling */
.form-group input,
.form-group select {
    width: 100%;
    padding: 1.25rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 400;
    background: #fafbfc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #2d3748;
    line-height: 1.5;
}

.form-group input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #02812c;
    background: white;
    box-shadow: 
        0 0 0 3px rgba(2, 129, 44, 0.1),
        0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.form-group input:hover:not(:focus),
.form-group select:hover:not(:focus) {
    border-color: #cbd5e0;
    background: white;
}

/* Enhanced Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Professional Checkbox Section */
.checkbox-group {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(145deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    position: relative;
}

.checkbox-group::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #02812c 0%, #764ba2 100%);
    border-radius: 0 2px 2px 0;
}

.checkbox-group h3 {
    color: #1a202c;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.checkbox-item:hover {
    background: rgba(255, 255, 255, 0.5);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 1rem;
    margin-top: 2px;
    accent-color: #02812c;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-item label {
    margin-bottom: 0;
    font-weight: 500;
    color: #2d3748;
    cursor: pointer;
    line-height: 1.5;
}

/* Enhanced Privacy Notice */
.privacy-notice {
    background: linear-gradient(145deg, #edf2f7 0%, #e2e8f0 100%);
    padding: 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    border: 1px solid #cbd5e0;
    position: relative;
}

.privacy-notice::before {
    content: '🔒';
    position: absolute;
    top: -8px;
    left: 20px;
    background: white;
    padding: 0 8px;
    font-size: 1.2rem;
}

.privacy-notice a {
    color: #02812c;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.privacy-notice a:hover {
    border-bottom-color: #02812c;
}

/* Professional Submit Button */
.submit-button {
    width: 100%;
    background: linear-gradient(135deg, #02812c 0%, #059598 50%, #764ba2 100%);
    background-size: 200% 200%;
    color: white;
    padding: 1.5rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.submit-button::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.6s ease;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(2, 129, 44, 0.4);
    background-position: 100% 0;
}

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

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

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

.submit-button:disabled::before {
    display: none;
}

/* Enhanced Benefits Section */
.benefits-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.benefit-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #02812c 0%, #764ba2 100%);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.15),
        0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.benefit-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.benefit-card h3 {
    color: #1a202c;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.benefit-card p {
    color: #4a5568;
    line-height: 1.6;
    font-weight: 400;
}

/* Enhanced Success Message */
.success-message {
    display: none;
    background: linear-gradient(145deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.success-message.show {
    display: block;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Enhanced Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #02812c;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(2, 129, 44, 0.05);
}

.back-link:hover {
    color: white;
    background: #02812c;
    transform: translateX(-4px);
}

/* Enhanced Responsive Design */
@media (max-width: 968px) {
    .newsletter-container {
        padding: 0 1.5rem;
    }
    
    .signup-form-container {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .newsletter-hero h1 {
        font-size: 2rem;
    }

    .newsletter-hero p {
        font-size: 1.1rem;
    }

    .signup-form-container {
        padding: 2rem;
        margin: 0 1rem;
        border-radius: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .newsletter-container {
        padding: 0 1rem;
    }
    
    .benefits-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 2rem;
    }
    
    .checkbox-group {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .signup-form-container {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 1rem;
    }
    
    .submit-button {
        padding: 1.25rem;
        font-size: 0.9rem;
    }
}

/* Enhanced focus indicators for accessibility */
.form-group input:focus-visible,
.form-group select:focus-visible,
.checkbox-item input:focus-visible,
.submit-button:focus-visible {
    outline: 2px solid #02812c;
    outline-offset: 2px;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Loading state animation */
.submit-button.loading {
    position: relative;
    color: transparent;
}

.submit-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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