/* ===== ESTILOS DA PÁGINA CONTATO ===== */

/* Page Banner */
.page-banner {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-color) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideInDown 0.8s ease-out;
}

.page-banner p {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-color) 100%);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

/* Contact Container - Ajuste para compensar a linha */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1; /* Garante que os cards fiquem acima da linha */
}

/* Contact Info - Ajuste de altura */
.contact-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--primary-color);
    min-height: 600px; /* Altura mínima para alinhar com o formulário */
    display: flex;
    flex-direction: column;
}

.contact-info h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 2.2rem;
    position: relative;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.contact-info > p {
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Contact Details - Ajuste de espaçamento */
.contact-details {
    margin: 2rem 0;
    flex: 1;
}

/* Contact Item - Ajuste de altura consistente */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 100px; /* Altura mínima consistente */
}

.contact-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2.3rem; /* Aumentado de 1.5rem para 2.3rem (8px a mais) */
    margin-left: 8px; /* Adicionado 8px para direita */
    flex-shrink: 0;
    font-size: 1.3rem;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Ajuste do texto para melhor alinhamento */
.contact-text {
    flex: 1;
}

.contact-text h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-text p {
    color: var(--text-color);
    margin-bottom: 0.3rem;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Estilo para links de contato */
.contact-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    display: block;
}

.contact-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.contact-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

/* Social Contact */
.social-contact {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.social-contact h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: var(--secondary-color);
}

/* Contact Form Container - Ajuste de altura */
.contact-form-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.7rem; /* Padding igual ao contact-info */
    border-radius: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border-right: 4px solid var(--primary-color);
    min-height: 600px; /* Altura mínima para alinhar */
    display: flex;
    flex-direction: column;
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-form h2 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
    position: relative;
}

.contact-form h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.form-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(193, 72, 8, 0.1);
    background: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-footer {
    margin-top: auto; /* Empurra o botão para baixo */
}

.btn-full {
    padding: 16px 30px;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-info {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

#form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: none;
    font-weight: 500;
}

#form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

#form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* CTA Section */
.cta.services-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    text-align: center;
}

.cta.services-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta.services-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta.services-cta .btn {
    background: var(--secondary-color);
    color: white;
    border: 2px solid white;
}

.cta.services-cta .btn:hover {
    background: white;
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Animações */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Popup de Confirmação */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: popupIn 0.3s ease-out;
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-icon {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 20px;
}

.popup-content h3 {
    color: #2c5aa0;
    margin-bottom: 15px;
    font-size: 24px;
}

.popup-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

#close-popup {
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 8px;
}

/* Mensagens do formulário */
#form-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

#form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading button */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsividade Contato */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info,
    .contact-form-container {
        padding: 2.5rem;
        min-height: auto; /* Remove altura mínima no mobile */
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-info,
    .contact-form-container {
        padding: 2rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        min-height: auto; /* Remove altura mínima no mobile */
    }

    .contact-icon {
        margin-right: 0;
        margin-left: 0; /* Remove margem extra no mobile */
        margin-bottom: 1rem;
        align-self: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-banner h1 {
        font-size: 2rem;
    }

    .contact {
        padding: 60px 0;
    }

    .contact-info,
    .contact-form-container {
        padding: 1.5rem;
    }

    .contact-info h2,
    .contact-form h2 {
        font-size: 1.8rem;
    }

    .cta.services-cta h2 {
        font-size: 2rem;
    }
}