/* ==========================================================================
   CONTATO E FORMULÁRIOS
   Seção de contato, formulários, FAQ, WhatsApp e elementos relacionados
   ========================================================================== */

/* Contato Section */
.contato-section {
    padding: var(--section-spacing) 0;
    background: var(--background-color);
}

.contact-content {
    margin-bottom: 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: flex-start;
}

/* Contact Form Section */
.contact-form-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
}

.form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.form-title {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-description {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Contact Form */
.contact-form {
    margin-bottom: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group.checkbox-group {
    grid-column: 1 / -1;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-label i {
    color: var(--primary-color);
    font-size: var(--font-sm);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: var(--font-base);
    transition: all var(--transition-normal);
    background: var(--background-color);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}

.form-input:invalid,
.form-select:invalid,
.form-textarea:invalid {
    border-color: #e74c3c;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    display: block;
    color: #e74c3c;
    font-size: var(--font-sm);
    margin-top: 0.25rem;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: var(--font-sm);
    line-height: 1.5;
}

.form-checkbox {
    display: none;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    position: relative;
    transition: all var(--transition-fast);
}

.form-checkbox:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.form-checkbox:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-dark);
    font-size: 12px;
    font-weight: bold;
}

.checkbox-text {
    color: var(--text-light);
}

.checkbox-text a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.checkbox-text a:hover {
    color: var(--primary-color);
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.form-actions .btn {
    min-width: 200px;
    position: relative;
}

.btn-loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading .btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Quick Actions */
.quick-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.quick-title {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: var(--font-lg);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-section);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.action-card.whatsapp:hover {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.action-card.phone:hover {
    border-color: var(--secondary-color);
    background: rgba(0, 85, 102, 0.1);
}

.action-card.email:hover {
    border-color: var(--accent-color);
    background: rgba(0, 153, 102, 0.1);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-xl);
}

.action-card.whatsapp .action-icon {
    background: #25D366;
    color: white;
}

.action-card.phone .action-icon {
    background: var(--secondary-color);
    color: white;
}

.action-card.email .action-icon {
    background: var(--accent-color);
    color: white;
}

.action-content {
    text-align: center;
}

.action-content h5 {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: var(--font-base);
}

.action-content p {
    color: var(--text-light);
    font-size: var(--font-sm);
    margin-bottom: 0;
}

/* Contact Info Section */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-cards {
    display: grid;
    gap: 1.5rem;
}

.info-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.info-card .card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: var(--font-xl);
    margin-bottom: 1rem;
}

.info-card .card-title {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: var(--font-lg);
}

.info-card .card-text {
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Schedule */
.schedule {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.schedule-item .day {
    color: var(--text-dark);
    font-weight: var(--font-weight-medium);
}

.schedule-item .time {
    color: var(--text-light);
}

/* Support Info */
.support-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--font-sm);
}

.support-item i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.support-item span {
    color: var(--text-light);
}

.support-item a {
    color: var(--text-light);
    text-decoration: none;
}

.support-item a:hover {
    color: var(--primary-color);
}

/* Certifications */
.certifications {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--font-sm);
}

.cert-item i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.cert-item span {
    color: var(--text-light);
}

/* Map Section */
.map-section {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.map-title {
    padding: 1rem 1.5rem;
    margin-bottom: 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-light);
}

.map-container {
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
}

.map-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.map-info h5 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: var(--font-base);
}

.map-info p {
    color: var(--text-light);
    font-size: var(--font-sm);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    font-size: var(--font-sm);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.map-link:hover {
    color: var(--primary-color);
}

/* FAQ Section */
.faq-section {
    margin: 4rem 0;
    background: var(--bg-section);
    padding: 3rem 0;
    border-radius: var(--border-radius-lg);
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-title {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.faq-description {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    box-shadow: var(--shadow-medium);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.question-text {
    color: var(--text-dark);
    font-size: var(--font-lg);
    margin-bottom: 0;
    font-weight: var(--font-weight-medium);
}

.faq-toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--primary-color);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.faq-toggle:hover {
    transform: scale(1.1);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    background: var(--secondary-color);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.answer-text {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

.faq-cta {
    text-align: center;
    margin-top: 2rem;
}

.cta-text {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Contact CTA */
.contact-cta {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    text-align: center;
    color: var(--text-white);
}

.cta-background {
    position: relative;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.cta-description {
    font-size: var(--font-lg);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.cta-stat {
    text-align: center;
}

.cta-stat .stat-number {
    display: block;
    font-size: var(--font-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
}

.cta-stat .stat-label {
    font-size: var(--font-sm);
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: var(--z-fixed);
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #25D366;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: var(--shadow-dark);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: white;
}

.whatsapp-btn i {
    font-size: var(--font-xl);
}

.whatsapp-text {
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
}

.whatsapp-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(37, 211, 102, 0.3);
    border-radius: 50px;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 48px;
    height: 48px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: var(--z-fixed);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }
    
    .whatsapp-btn {
        padding: 0.875rem 1.25rem;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .back-to-top {
        bottom: 5rem;
        left: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-form-section {
        padding: 1.5rem;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .question-text {
        font-size: var(--font-base);
    }
    
    .answer-text {
        padding: 0 1rem 1rem;
    }
    
    .contact-cta {
        padding: 2rem 1rem;
    }
    
    .map-overlay {
        position: static;
        margin: 1rem;
        margin-top: -60px;
        z-index: 1;
        background: rgba(255, 255, 255, 0.98);
    }
} 