/* --- ESTILOS DA PÁGINA DE CONTACTOS --- */

.contact-grid {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 80px;
}


/* COLUNA 1: FORMULÁRIO */

.contact-form-container {
    flex: 2;
    /* Ocupa 2/3 da largura */
}

.contact-form-container h3 {
    font-size: 1.8em;
    color: #03045A;
    margin-bottom: 25px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row input {
    flex: 1;
}


/* Contador de Caracteres */

.char-count {
    text-align: right;
    font-size: 0.9em;
    color: #555;
    margin-top: -10px;
    margin-bottom: 20px;
}


/* Anexo */

.file-upload-container {
    margin-bottom: 30px;
    border: 1px dashed #ccc;
    padding: 15px;
    border-radius: 5px;
}

.file-upload-container label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #03045A;
}


/* COLUNA 2: INFO FÍSICA */

.contact-info-container {
    flex: 1;
    /* Ocupa 1/3 da largura */
    background-color: #F7F7F9;
    padding: 30px;
    border-radius: 8px;
}

.info-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.info-item h4 {
    font-size: 1.2em;
    color: #007bff;
    margin-bottom: 5px;
}

.info-item p {
    color: #555;
    margin-bottom: 5px;
    line-height: 1.5;
}

.info-item a {
    color: #555;
    text-decoration: none;
}

.info-item a:hover {
    color: #555;
    text-decoration: none;
    text-decoration: underline;
}


/* Seção do Mapa */

.map-section {
    padding-bottom: 80px;
    background-color: #fff;
}

.map-section .section-title {
    margin-bottom: 30px;
}

.map-embed {
    /* Garante que o mapa estenda por toda a largura */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
}

.map-embed iframe {
    display: block;
}


/* --- MEDIA QUERY PARA MOBILE --- */

@media (max-width: 900px) {
    .contact-grid {
        flex-direction: column;
        /* Empilha as colunas */
        gap: 30px;
    }
    .form-row {
        flex-direction: column;
        /* Nome/Sobrenome e Email/Tel em coluna */
        gap: 0;
    }
    .map-embed {
        /* No mobile, o content-wrapper deve ter 100% da largura, mas 
           mantemos o iframe como 100% da largura da viewport para que não haja margens */
        margin-left: 0;
        width: 100%;
    }
}