/**
 * EPA Contact Page Styles
 * 
 * Specific styles for the contact form and contact page components
 * Built to complement the main styles.css file
 * 
 * @author Isai
 * @version 1.0
 */

/* ==============================================
   CONTACT FORM COMPONENTS
   ============================================== */

/* Form Input Fields */
.contact-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.875rem 1.25rem;
    color: #ffffff;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

.contact-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-input:focus {
    outline: none;
    border-color: #2EAEB3;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(46, 174, 179, 0.1);
}

.contact-input:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Textarea Specific Styles */
.contact-textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    color: #ffffff;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    transition: all 0.3s ease;
    resize: none;
    min-height: 120px;
}

.contact-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-textarea:focus {
    outline: none;
    border-color: #2EAEB3;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(46, 174, 179, 0.1);
}

.contact-textarea:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Custom Checkbox Styles */
.contact-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 1.125rem;
    height: 1.125rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.contact-checkbox:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.contact-checkbox:checked {
    background-color: #2EAEB3;
    border-color: #2EAEB3;
}

.contact-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.375rem;
    height: 0.625rem;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: translate(-50%, -60%) rotate(45deg);
}

.contact-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 174, 179, 0.2);
}

/* ==============================================
   FORM VALIDATION STATES
   ============================================== */

/* Error States */
.form-group.error .contact-input,
.form-group.error .contact-textarea {
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

.form-group.error .contact-input:focus,
.form-group.error .contact-textarea:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-group .form-error {
    display: none;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    margin-top: 0.25rem;
}

.form-group.error .form-error {
    display: block;
}

/* Success States */
.form-group.success .contact-input,
.form-group.success .contact-textarea {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

/* ==============================================
   CONTACT IMAGE SECTION
   ============================================== */

.contact-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.contact-image-wrapper {
    position: relative;
    z-index: 10;
}


/* ==============================================
   BUTTON LOADING STATE
   ============================================== */

.newsletter-cta-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.newsletter-cta-btn .btn-loading {
    display: none;
}

.newsletter-cta-btn.loading .btn-text {
    display: none;
}

.newsletter-cta-btn.loading .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 1023px) {
    .contact-image-container {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .contact-image-wrapper::before {
        top: -0.5rem;
        right: -0.5rem;
        width: 80px;
        height: 80px;
        background-size: 12px 12px;
    }
}

@media (max-width: 768px) {
    .contact-input,
    .contact-textarea {
        font-size: 0.785rem;
        padding: 0.75rem 1rem;
    }
    
    .contact-textarea {
        min-height: 100px;
        padding: 0.875rem 1rem;
    }
    
    .contact-checkbox {
        width: 1rem;
        height: 1rem;
    }
    
    .contact-checkbox:checked::after {
        width: 0.3125rem;
        height: 0.5rem;
    }
    
    .contact-image-container {
        padding: 0.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 640px) {
    .contact-image-wrapper::before {
        display: none;
    }
}

/* ==============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================== */

@media (prefers-reduced-motion: reduce) {
    .contact-input,
    .contact-textarea,
    .contact-checkbox,
    .newsletter-cta-btn {
        transition: none;
    }
}

/* Focus visible improvements for keyboard navigation */
.contact-input:focus-visible,
.contact-textarea:focus-visible {
    outline: 2px solid #2EAEB3;
    outline-offset: 2px;
}

.contact-checkbox:focus-visible {
    outline: 2px solid #2EAEB3;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .contact-input,
    .contact-textarea {
        border-width: 2px;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .contact-checkbox {
        border-width: 2px;
    }
}