/*
====================================
PageYaRona - Contact Page Styles
====================================
Purpose: Dedicated stylesheet for contact.html
Performance: Modular CSS for better loading and maintainability
Last Updated: October 2025
*/

/* 
=====================================
1. CONTACT PAGE HERO SECTION
=====================================
*/
.contact-hero {
    padding: 100px 0 80px 0;
    background: linear-gradient(135deg, var(--page-bg) 0%, var(--subtle-bg) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern-dots.svg') repeat;
    opacity: 0.05;
    z-index: 1;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
}

.contact-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--c-accent), var(--heading-color));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.contact-hero .lead {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-color);
    opacity: 0.9;
}

.contact-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.benefit-item {
    text-align: center;
    max-width: 200px;
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--c-accent);
    margin-bottom: 1rem;
    display: block;
}

.benefit-text {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* 
=====================================
2. CONTACT FORM SECTION
=====================================
*/
.contact-section {
    padding: 80px 0;
    background-color: var(--page-bg);
}

.section-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.section-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.section-intro p {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Form Container */
.form-container {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(105, 203, 192, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--c-accent), var(--c-accent-hover));
    z-index: 1;
}

.form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(105, 203, 192, 0.12);
}

.form-container h2 {
    color: var(--heading-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

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

.form-control {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
    padding: 12px 0;
    font-size: 1.1rem;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    font-family: inherit;
}

.form-control:focus {
    background-color: transparent;
    box-shadow: none;
    border-color: var(--c-accent);
    color: var(--text-color);
    outline: none;
    border-bottom-width: 3px;
}

.form-control:invalid {
    border-color: #e74c3c;
}

.form-control:valid {
    border-color: var(--c-accent);
}

/* Floating Labels */
.form-group label {
    position: absolute;
    top: 12px;
    left: 0;
    color: var(--text-color);
    opacity: 0.7;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 500;
    z-index: 2;
}

.form-control:focus + label,
.form-control:not(:placeholder-shown) + label {
    top: -16px;
    left: 0;
    font-size: 0.85rem;
    color: var(--c-accent);
    opacity: 1;
    font-weight: 600;
}

/* Textarea Specific Styles */
.form-group textarea.form-control {
    resize: vertical;
    min-height: 100px;
    padding-top: 15px;
}

.form-group textarea.form-control + label {
    top: 15px;
}

.form-group textarea.form-control:focus + label,
.form-group textarea.form-control:not(:placeholder-shown) + label {
    top: -16px;
}

/* Submit Button */
.form-container .btn-submit {
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent-hover));
    border: none;
    color: var(--c-text-dark);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.form-container .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(105, 203, 192, 0.3);
    color: var(--c-text-dark);
}

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

/* Form Success/Error States */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.form-message.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* 
=====================================
3. CONTACT INFO SECTION
=====================================
*/
.contact-info {
    background: var(--subtle-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--c-accent), var(--c-accent-hover));
    z-index: 1;
}

.contact-info h2 {
    color: var(--heading-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.contact-method:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--c-accent);
    color: inherit;
    text-decoration: none;
}

.contact-method i {
    font-size: 1.5rem;
    margin-right: 1rem;
    min-width: 30px;
    text-align: center;
}

.contact-method.whatsapp i {
    color: #25D366;
}

.contact-method.email i {
    color: #3498db;
}

.contact-method.calendar i {
    color: var(--c-accent);
}

.contact-method-content {
    flex: 1;
}

.contact-method-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--heading-color);
}

.contact-method-desc {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
}

/* 
=====================================
4. BUSINESS HOURS & LOCATION
=====================================
*/
.business-info {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.business-info h3 {
    color: var(--heading-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.business-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    font-size: 1.2rem;
    color: var(--c-accent);
    margin-top: 0.2rem;
    min-width: 20px;
}

.info-content h4 {
    color: var(--heading-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-content p {
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 
=====================================
5. FAQ SECTION
=====================================
*/
.contact-faq {
    padding: 80px 0;
    background: var(--page-bg);
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-header h2 {
    font-size: 2.2rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.faq-header p {
    color: var(--text-color);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.faq-question {
    padding: 1.5rem;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-weight: 600;
    color: var(--heading-color);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--c-accent);
}

.faq-question .faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-color);
    line-height: 1.6;
    opacity: 0.8;
}

/* 
=====================================
6. RESPONSIVE DESIGN
=====================================
*/
@media (max-width: 768px) {
    .contact-hero {
        padding: 80px 0 60px 0;
    }
    
    .contact-benefits {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .contact-section {
        padding: 60px 0;
    }
    
    .form-container,
    .contact-info {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .business-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-method {
        padding: 1rem;
    }
    
    .contact-method:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 2.2rem;
    }
    
    .contact-hero .lead {
        font-size: 1.1rem;
    }
    
    .form-container,
    .contact-info {
        padding: 1.5rem;
    }
    
    .form-control {
        font-size: 1rem;
    }
    
    .contact-method i {
        font-size: 1.3rem;
    }
}

/* 
=====================================
7. DARK MODE OPTIMIZATIONS
=====================================
*/
body.dark-mode .contact-hero {
    background: linear-gradient(135deg, var(--page-bg) 0%, var(--subtle-bg) 100%);
}

body.dark-mode .form-container {
    background-color: #1a1a1a;
    box-shadow: 0 20px 60px rgba(105, 203, 192, 0.12);
}

body.dark-mode .contact-info {
    background-color: #1a1a1a;
}

body.dark-mode .business-info {
    background-color: #1a1a1a;
}

body.dark-mode .contact-method {
    background-color: #1a1a1a;
}

body.dark-mode .faq-item {
    background-color: #1a1a1a;
}

/* 
=====================================
8. PERFORMANCE OPTIMIZATIONS
=====================================
*/
.form-container {
    contain: layout style paint;
}

.contact-method {
    contain: layout style;
}

/* Preload critical form states */
.form-control:focus {
    will-change: border-color;
}

.contact-method:hover {
    will-change: transform, box-shadow;
}

/* 
=====================================
9. ACCESSIBILITY IMPROVEMENTS
=====================================
*/
.form-control {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.form-control:focus {
    outline-color: var(--c-accent);
}

.contact-method:focus {
    outline: 2px solid var(--c-accent);
    outline-offset: 2px;
}

.btn-submit:focus {
    outline: 2px solid var(--c-accent);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-container,
    .contact-info,
    .business-info {
        border-width: 2px;
    }
    
    .form-control {
        border-bottom-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .form-container,
    .contact-method,
    .btn-submit {
        transition: none;
    }
    
    .form-container:hover {
        transform: none;
    }
    
    .contact-method:hover {
        transform: none;
    }
    
    .btn-submit:hover {
        transform: none;
    }
}