/* ============================================
   ARQUIVO: assets/css/contato.css
   CSS específico para página de contato
   ============================================ */

/* ============================================
   HERO CONTATO
   ============================================ */
.hero-contato {
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF5E6 50%, #FFE8F0 100%);
    padding: 5rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-contato::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,193,7,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-contato h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #1A202C;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.hero-contato p {
    font-size: 1.3rem;
    color: #4A5568;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   SEÇÃO DE CONTATO
   ============================================ */
.contato-section {
    padding: 5rem 2rem;
    background: white;
}

.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Container principal com padding adaptativo */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* ============================================
   INFORMAÇÕES DE CONTATO
   ============================================ */
.contato-info {
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF5F8 100%);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    height: fit-content; /* Ajusta altura automaticamente */
}

.contato-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1A202C;
    font-weight: 700;
}

.contato-info .lead {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    transition: all 0.3s ease;
    align-items: flex-start; /* Alinhamento correto no mobile */
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.info-icon {
    min-width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #F4D35E 0%, #EAB543 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2E2C54;
    font-size: 1.8rem;
    flex-shrink: 0; /* Não encolhe no mobile */
}

.info-text {
    flex: 1; /* Ocupa espaço disponível */
    min-width: 0; /* Permite quebra de linha */
}

.info-text h4 {
    font-size: 1.2rem;
    color: #1A202C;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-text p {
    color: #718096;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word; /* Quebra palavras longas */
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #1DA851;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
}

/* Redes Sociais */
.social-links {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255,193,7,0.2);
}

.social-links h4 {
    font-size: 1.1rem;
    color: #1A202C;
    margin-bottom: 1rem;
}

.social-icons-contato {
    display: flex;
    gap: 1rem;
}

.social-icons-contato a {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7B5E91;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.social-icons-contato a:hover {
    background: linear-gradient(135deg, #F4D35E 0%, #7B5E91 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(244,211,94,0.3);
}

/* ============================================
   FORMULÁRIO DE CONTATO
   ============================================ */
.contato-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    width: 100%; /* Garante largura total */
    box-sizing: border-box; /* Inclui padding na largura */
}

.contato-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1A202C;
    font-weight: 700;
}

/* Alertas */
.alert {
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start; /* Alinhamento no topo para mobile */
    gap: 1rem;
    animation: slideDown 0.4s ease;
    word-wrap: break-word; /* Quebra texto longo */
}

.alert i {
    font-size: 1.5rem;
    flex-shrink: 0; /* Ícone não encolhe */
    margin-top: 2px; /* Alinha com texto */
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border-left: 4px solid #4CAF50;
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    border-left: 4px solid #F44336;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Formulário */
.contato-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%; /* Garante largura total */
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%; /* Garante largura total */
}

.form-group label {
    font-weight: 600;
    color: #1A202C;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.9rem 1.2rem;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #F7FAFC;
    width: 100%; /* Garante largura total */
    box-sizing: border-box; /* Inclui padding e border na largura */
    -webkit-appearance: none; /* Remove estilo padrão iOS */
    -moz-appearance: none; /* Remove estilo padrão Firefox */
}

/* Correção específica para iOS/Safari */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    max-width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7B5E91;
    background: white;
    box-shadow: 0 0 0 4px rgba(123,94,145,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
}

.error-message {
    color: #F44336;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #F44336;
}

.form-group.error .error-message {
    display: block;
}

/* Checkbox */
.form-group-checkbox {
    position: relative;
    z-index: 1;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    z-index: 2;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    cursor: pointer;
    accent-color: #7B5E91;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    margin: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #4A5568;
    position: relative;
    z-index: 2;
    user-select: none;
    margin: 0;
    font-weight: normal;
}

/* Botão Submit */
.btn-submit {
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #F4D35E 0%, #EAB543 100%);
    color: #2E2C54;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 4px 15px rgba(244,211,94,0.3);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244,211,94,0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-submit.loading {
    pointer-events: none;
}

.btn-submit.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-note {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 0.5rem;
    text-align: center;
}

/* ============================================
   MAPA
   ============================================ */
.mapa-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF5F8 100%);
}

.mapa-wrapper {
    max-width: 1200px;
    margin: 2rem auto 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.mapa-placeholder {
    height: 400px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #718096;
}

.mapa-placeholder i {
    font-size: 4rem;
    color: #7B5E91;
    margin-bottom: 1rem;
}

.mapa-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
    padding: 5rem 2rem;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.faq-item {
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF5F8 100%);
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.faq-item h4 {
    font-size: 1.1rem;
    color: #1A202C;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.faq-item h4 i {
    color: #7B5E91;
    font-size: 1.3rem;
}

.faq-item p {
    color: #718096;
    line-height: 1.7;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 968px) {
    .contato-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-contato h1 {
        font-size: 2.2rem;
    }

    .hero-contato p {
        font-size: 1.1rem;
    }

    .contato-info,
    .contato-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .info-items {
        gap: 1.5rem;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .social-links {
        text-align: center;
    }
    
    .social-icons-contato {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-contato {
        padding: 4rem 1.5rem 2rem;
    }
    
    .hero-contato h1 {
        font-size: 1.8rem;
    }
    
    .hero-contato p {
        font-size: 1rem;
    }

    .contato-section {
        padding: 3rem 1rem;
    }
    
    .contato-info,
    .contato-form-wrapper {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .contato-info h2,
    .contato-form-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .info-item {
        padding: 1.2rem;
    }
    
    .info-icon {
        min-width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .info-text h4 {
        font-size: 1rem;
    }
    
    .info-text p {
        font-size: 0.9rem;
    }
    
    .btn-whatsapp {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .social-icons-contato a {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }

    .btn-submit {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .checkbox-label {
        font-size: 0.85rem;
        align-items: flex-start;
    }

    .checkbox-wrapper {
        align-items: flex-start;
    }

    .checkbox-wrapper input[type="checkbox"] {
        margin-top: 2px;
    }
    
    .form-note {
        font-size: 0.8rem;
    }
    
    .alert {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .mapa-section,
    .faq-section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
    
    .faq-item h4 {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .faq-item p {
        font-size: 0.9rem;
    }
    
    .filtros {
        padding: 1.5rem 1rem;
        margin: -2rem auto 3rem;
    }
    
    .filtros-container {
        gap: 0.5rem;
    }
}