/* ==========================================================================
   CONTACT.HTML - Página de Contactos e Localização (Atualizado 2026)
   ========================================================================== */

:root {
    --primary: #007bff;
    --primary-light: #3b82f6;
    --primary-dark: #0056b3;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
}

/* --------------------------------------------------------------------------
   Cabeçalho Otimizado - Compacto, Elegante e Sem Espaços Mortos
   -------------------------------------------------------------------------- */
.page-header {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.9)), url('../img/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    padding: 20px 0 !important;       /* Altura reduzida para eliminar espaço desnecessário */
    margin-bottom: 35px !important;   /* Espaço controlado antes de começar o conteúdo */
    border-bottom: 3px solid var(--primary);
}

/* --------------------------------------------------------------------------
   Cartões de Informação (Telefone, Email, Endereço)
   -------------------------------------------------------------------------- */
.contact-info-card {
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    text-align: center;
    border: 1px solid var(--border-color);
    height: 100%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
    border-color: rgba(0, 123, 255, 0.2);
}

.contact-info-card .icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 20px auto;
    transition: transform 0.3s ease;
}

.contact-info-card:hover .icon-box {
    transform: scale(1.1);
}

.contact-info-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.contact-info-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Formulário de Contacto
   -------------------------------------------------------------------------- */
.contact-form-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

/* Customização dos Inputs nativos do Bootstrap e auxiliares */
.contact-form .form-control {
    border: 1px solid #cbd5e1 !important;
    padding: 15px 20px !important;
    height: auto !important;
    font-size: 0.95rem;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    color: var(--text-dark) !important;
    transition: all 0.2s ease-in-out !important;
}

.contact-form .form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.15) !important;
    background-color: #ffffff !important;
}

/* Alinhamento para caixas de validação de erro (help-block) */
.help-block.text-danger ul {
    list-style: none;
    padding: 5px 0 0 0;
    margin: 0;
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Secção do Mapa Integrado
   -------------------------------------------------------------------------- */
.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    height: 450px;
    margin-top: 20px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --------------------------------------------------------------------------
   Ajustes de Responsividade
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .page-header {
        padding: 15px 0 !important;
    }
    .page-header h3 {
        font-size: 1.6rem !important;
    }
    .contact-form-container {
        padding: 25px;
    }
    .map-wrapper {
        height: 300px;
    }
}