:root {
    --contact-accent: #B8781C;
    --contact-dark: #1a1a1a;
    --contact-muted: #666;
    --contact-border: #e4e4e4;
}

.contact-page-section {
    width: 100%;
}

/* =====================================================
   CARTÕES DE INFORMAÇÃO
===================================================== */

.info-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.info-section h2,
.form-section h2,
.dept-section h2,
.map-section h2 {
    color: var(--contact-dark);
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 700;
}

.info-section .sub,
.form-section .sub,
.dept-section .sub {
    color: var(--contact-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    padding: 1.5rem 1rem;
    border: 1px solid var(--contact-dark);
    border-radius: 16px;
    background: #fff;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
    border-color: var(--contact-accent);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.info-card>i {
    margin-bottom: 0.7rem;
    /* color: var(--contact-accent); */
    font-size: 2rem;
}

.info-card h3 {
    margin-bottom: 0.55rem;
    color: var(--contact-dark);
    font-size: 1rem;
    font-weight: 700;
}

.info-card p,
.info-card a {
    margin-bottom: 0;
    color: var(--contact-muted);
    font-size: 0.86rem;
    line-height: 1.6;
    text-decoration: none;
}

.info-card a:hover {
    color: var(--contact-accent);
}

/* =====================================================
   FORMULÁRIO E DEPARTAMENTOS
===================================================== */

.main-content {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.form-section,
.dept-section {
    height: 100%;
    padding: clamp(1.3rem, 3vw, 2.25rem);
}

.dept-section {
    border: 1px solid var(--contact-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.form-section form {
    margin-top: 1.7rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group .form-control,
.form-group .form-select,
.form-group input,
.form-group select,
.form-group textarea {
    min-height: 52px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    color: var(--contact-dark);
    font-family: inherit;
    font-size: 0.9rem;
    box-shadow: none;
}

.form-group textarea {
    min-height: 145px;
    resize: vertical;
}

.form-group .form-control:focus,
.form-group .form-select:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--contact-accent);
    box-shadow: 0 0 0 0.2rem rgba(184, 120, 28, 0.15);
    outline: 0;
}

.btn-submit {
    width: 100%;
    min-height: 54px;
    align-items: center;
    border: 1px solid var(--contact-dark);
    border-radius: 999px;
    background: var(--contact-dark);
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.btn-submit svg {
    width: 21px;
    height: 21px;
}

.btn-submit:hover {
    border-color: var(--contact-accent);
    background: var(--contact-accent);
    color: #fff;
    transform: translateY(-2px);
}

.dept-list {
    margin-top: 1.7rem;
}

.dept-card {
    height: 100%;
    padding: 1.2rem;
    border: 1px solid var(--contact-border);
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.dept-card:hover {
    border-color: rgba(184, 120, 28, 0.5);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.dept-card h4 {
    margin-bottom: 0.55rem;
    color: var(--contact-dark);
    font-size: 0.98rem;
    font-weight: 700;
}

.dept-card p {
    min-height: 50px;
    margin-bottom: 1rem;
    color: var(--contact-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.email-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--contact-accent);
    font-size: 0.8rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.email-row svg {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin-top: 1px;
}

.email-row a {
    color: inherit;
    text-decoration: none;
}

.email-row a:hover {
    text-decoration: underline;
}

/* =====================================================
   MAPA
===================================================== */

.map-section {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.map-container {
    width: 100%;
    min-height: 300px;
    margin-top: 1.5rem;
    overflow: hidden;
    border-radius: 18px;
    background: #f4f4f4;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
    display: block;
    width: 100%;
    min-height: 360px;
    border: 0;
}

@media (max-width: 767.98px) {

    .info-section,
    .main-content,
    .map-section {
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }

    .info-card {
        min-height: 165px;
    }

    .form-section,
    .dept-section {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .map-container,
    .map-container iframe {
        min-height: 280px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .info-card,
    .dept-card,
    .btn-submit {
        transition: none;
    }
}