﻿/* Contact Page Styles com o mesmo herói do Index, inclui shapes, overlay e animações */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* Variáveis base alinhadas ao Index */
:root {
    --primary-color: #7E6DDB;
    --primary-dark: #6151b8;
    --secondary-color: #F8B595;
    --accent-color: #A5DEE5;
    --dark-color: #2D3047;
    --light-color: #F9F9F9;
    --text-color: #4A4A68;
    --text-light: #8B8BA5;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #F9D5BB);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --whatsapp-color: #25D366;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header moderno, idêntico ao Index ===== */
.modern-header {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

/* Permite distinguir no DevTools, mantém o mesmo layout */
.contact-header {
}

.header-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Imagem de fundo do header, use head2.jpeg para diferenciar do Index */
.header-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('/images/head4.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: none;
    will-change: auto;
}

/* Shapes acima da foto e abaixo do overlay */
.floating-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.1;
    filter: blur(40px);
    animation: float 15s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 10%;
    background: var(--gradient-secondary);
    animation-delay: 2s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    bottom: 15%;
    left: 15%;
    animation-delay: 4s;
}

.shape-4 {
    width: 180px;
    height: 180px;
    bottom: 25%;
    right: 20%;
    animation-delay: 6s;
}

.shape-5 {
    width: 220px;
    height: 220px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 8s;
}

.header-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    /* antes: background com opacidade ~0.8 + backdrop-filter: blur(5px); */
    background: linear-gradient( 135deg, rgba(245, 247, 250, 0.35) 0%, rgba(228, 232, 240, 0.35) 100% );
    /* remove o desfoque global */
    backdrop-filter: none;
}


.header-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-text {
    flex: 1;
    max-width: 600px;
}

.header-title {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.title-line {
    display: block;
}

    .title-line.accent {
        background: var(--gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        position: relative;
    }

.header-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.2rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 520px;
}

.header-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

    .cta-button.primary {
        background: var(--gradient);
        color: #fff;
    }

        .cta-button.primary:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(126, 109, 219, 0.4);
        }

    .cta-button.secondary {
        background: transparent;
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
    }

        .cta-button.secondary:hover {
            background: var(--primary-color);
            color: #fff;
            transform: translateY(-5px);
        }

.header-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.visual-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.main-image {
    position: relative;
    z-index: 3;
    animation: float 6s infinite ease-in-out;
}

.hero-logo {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
}

.floating-elements {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--primary-color);
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    animation: float 8s infinite ease-in-out;
}

.element-1 {
    top: 10%;
    right: 10%;
    animation-delay: 1s;
}

.element-2 {
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.element-3 {
    top: 50%;
    right: 0;
    animation-delay: 3s;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-color);
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: var(--gradient);
    margin-bottom: 10px;
    animation: scrollLine 2s infinite;
}

.scroll-indicator i {
    animation: bounce 2s infinite;
}

/* ===== Métodos de contato ===== */
.contact-methods {
    padding: 100px 0;
    background: #ffffff;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.method-card {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

    .method-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

.method-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: var(--shadow);
}

    .method-icon.whatsapp {
        background: var(--whatsapp-color);
    }

.method-card h3 {
    margin: 10px 0 8px;
    color: var(--dark-color);
}

.method-link {
    color: var(--primary-color);
    font-weight: 600;
}

    .method-link:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

.method-text {
    color: var(--text-light);
}

/* ===== Formulário ===== */
.contact-form-section {
    padding: 100px 0;
    background: #f5f7fb;
    position: relative;
}

.form-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 36px;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #e8eaf0;
}

.form-header {
    text-align: center;
    margin-bottom: 28px;
}

    .form-header h2 {
        font-size: 2.2rem;
        margin: 0 0 10px 0;
        color: var(--dark-color);
    }

    .form-header p {
        color: var(--text-light);
        margin: 0;
        font-size: 1.05rem;
    }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.required {
    color: #e53e3e;
    margin-left: 4px;
}

.form-input, .form-textarea {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .form-input:focus, .form-textarea:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(126, 109, 219, 0.15);
    }

    .form-input.error, .form-textarea.error {
        border-color: #e53e3e;
    }

.form-textarea {
    resize: vertical;
    min-height: 130px;
}

.field-error {
    color: #e53e3e;
    font-size: 0.9rem;
    margin-top: 8px;
}

.field-hint {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 6px;
}

/* Radio e checkbox */
.contact-method-group {
    border: none;
    margin: 0;
    padding: 0;
}

    .contact-method-group legend {
        font-weight: 600;
        color: var(--text-color);
        margin-bottom: 10px;
    }

.radio-group {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.radio-label, .checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

    .radio-label input[type="radio"], .checkbox-label input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

.radio-custom, .checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

.radio-custom {
    border-radius: 50%;
}

.checkbox-custom {
    border-radius: 4px;
}

.radio-label input[type="radio"]:checked + .radio-custom,
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

    .radio-label input[type="radio"]:checked + .radio-custom::after {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #fff;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
        content: '✓';
        color: #fff;
        font-size: 14px;
        font-weight: bold;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

.checkbox-text {
    line-height: 1.5;
}

/* Botão principal aproveitando o padrão de CTA */
.btn-submit {
    width: 100%;
    justify-content: center;
}

.btn-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Alertas */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    border-left: 4px solid;
}

.alert-success {
    background: #f0fdf4;
    border-left-color: #22c55e;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border-left-color: #e53e3e;
    color: #991b1b;
}

/* Overlay de carregamento */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: #fff;
    padding: 26px;
    border-radius: 14px;
    text-align: center;
    box-shadow: var(--shadow);
    min-width: 260px;
}

    .loading-content i {
        font-size: 28px;
        color: var(--primary-color);
        margin-bottom: 8px;
    }

/* ===== FAQ ===== */
.contact-faq {
    padding: 100px 0;
    background: #ffffff;
}

.faq-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 34px 0;
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
    background: #fff;
}

    .faq-item:hover {
        border-color: var(--primary-color);
    }

.faq-question {
    width: 100%;
    padding: 18px 20px;
    background: #fff;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .faq-question:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: -2px;
    }

    .faq-question i {
        font-size: 1rem;
        color: var(--text-light);
        transition: transform 0.2s ease;
    }

    .faq-question[aria-expanded="true"] i {
        transform: rotate(180deg);
    }

.faq-answer {
    padding: 0 20px;
    background: #f8fafc;
    max-height: 0;
    overflow: hidden;
    transition: all 0.25s ease;
}

    .faq-answer.open {
        max-height: 240px;
        padding: 16px 20px;
    }

    .faq-answer p {
        margin: 0;
        color: var(--text-light);
    }

/* ===== CTA final ===== */
.final-cta {
    background: var(--gradient);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.cta-content h2 {
    font-size: 2.4rem;
    margin: 0 0 10px 0;
}

.cta-content p {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 20px;
}

/* ===== Animações ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes scrollLine {
    0% {
        height: 40px;
    }

    50% {
        height: 20px;
    }

    100% {
        height: 40px;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* ===== Responsivo ===== */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .header-text {
        max-width: 100%;
    }

    .header-title {
        font-size: 2.6rem;
    }

    .header-actions {
        justify-content: center;
    }

    .hero-logo {
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .header-title {
        font-size: 2.1rem;
    }

    .header-subtitle {
        font-size: 1.05rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .element {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .modern-header {
        padding: 80px 0 60px;
    }

    .header-title {
        font-size: 1.8rem;
    }

    .header-subtitle {
        font-size: 1rem;
    }

    .shape {
        display: none;
    }

    .shape-1, .shape-5 {
        display: block;
    }
}
