.contact-page {
    padding: 64px 0;
    background: #f3f7fb;
}

.contact-section-header {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
}

.contact-section-header>span,
.contact-form-intro>span {
    display: inline-block;
    margin-bottom: 10px;
    color: #16845b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
}

.contact-section-header h2,
.contact-form-intro h2 {
    margin: 0 0 12px;
    color: #06376f;
    font-size: clamp(27px, 3vw, 38px);
}

.contact-section-header p,
.contact-form-intro>p {
    margin: 0;
    color: #617084;
    line-height: 1.7;
}

.contact-channel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.contact-channel-card {
    display: flex;
    gap: 16px;
    min-height: 210px;
    padding: 24px;
    background: #fff;
    border: 1px solid #dfe9f3;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(4, 52, 105, .07);
}

.contact-channel-icon {
    display: flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    font-size: 24px;
}

.contact-icon-whatsapp {
    background: #e2f8eb;
}

.contact-icon-phone {
    background: #e4efff;
}

.contact-icon-occurrence {
    background: #fff2d8;
}

.contact-icon-ouvidoria {
    background: #f0e8ff;
}

.contact-channel-card h3 {
    margin: 3px 0 8px;
    color: #06376f;
    font-size: 19px;
}

.contact-channel-card p {
    margin: 0 0 16px;
    color: #65758a;
    line-height: 1.55;
}

.contact-card-link {
    color: #075bab;
    font-weight: 700;
    text-decoration: none;
}

.contact-services {
    margin-top: 72px;
}

.contact-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.contact-services-grid a {
    display: grid;
    grid-template-columns: 50px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    padding: 20px;
    background: #fff;
    border: 1px solid #dfe9f3;
    border-radius: 15px;
    color: inherit;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.contact-services-grid a:hover {
    transform: translateY(-3px);
    border-color: #9ac0e8;
    box-shadow: 0 12px 24px rgba(4, 52, 105, .09);
}

.contact-services-grid a>span {
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #edf5ff;
    border-radius: 14px;
    font-size: 23px;
}

.contact-services-grid strong {
    align-self: end;
    color: #06376f;
}

.contact-services-grid small {
    margin-top: 4px;
    color: #718096;
}

.contact-faq-layout {
    display: grid;
    grid-template-columns: 1.45fr .75fr;
    gap: 30px;
    margin-top: 72px;
}

.contact-section-left {
    margin-left: 0;
    text-align: left;
}

.contact-faq {
    display: grid;
    gap: 12px;
}

.contact-faq details {
    background: #fff;
    border: 1px solid #dfe8f2;
    border-radius: 13px;
    overflow: hidden;
}

.contact-faq summary {
    position: relative;
    padding: 18px 48px 18px 20px;
    color: #06376f;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.contact-faq summary::-webkit-details-marker {
    display: none;
}

.contact-faq summary::after {
    position: absolute;
    top: 50%;
    right: 20px;
    content: "+";
    transform: translateY(-50%);
    color: #0d69b8;
    font-size: 24px;
}

.contact-faq details[open] summary::after {
    content: "−";
}

.contact-faq details p {
    margin: 0;
    padding: 0 20px 20px;
    color: #66778b;
    line-height: 1.65;
}

.contact-information-card {
    align-self: start;
    padding: 28px;
    background: linear-gradient(145deg, #073f7b, #1269b4);
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 16px 35px rgba(4, 52, 105, .18);
}

.contact-information-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .18);
    margin-bottom: 22px;
}

.contact-information-card h2 {
    margin: 0 0 24px;
}

.contact-information-item {
    display: grid;
    gap: 5px;
    padding: 17px 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.contact-information-item strong {
    font-size: 14px;
}

.contact-information-item span,
.contact-information-item a {
    color: rgba(255, 255, 255, .86);
    text-decoration: none;
}

.contact-map-button {

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin-top: 28px;

    width: 100%;

    padding: 16px 20px;

    background: #ffffff;

    color: #0c4f90;

    text-decoration: none;

    font-weight: 700;

    font-size: 16px;

    border-radius: 14px;

    transition: .25s;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, .10);
}

.contact-map-button:hover {

    background: #edf6ff;

    color: #063f7c;

    transform: translateY(-3px);

    box-shadow:
        0 14px 26px rgba(0, 0, 0, .18);

}

.contact-map-button .map-icon {

    font-size: 24px;

}

.contact-form-section {
    display: grid;
    grid-template-columns: .75fr 1.35fr;
    gap: 40px;
    margin-top: 80px;
    padding: 44px;
    background: #fff;
    border: 1px solid #dfe9f3;
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(4, 52, 105, .08);
}

.contact-form-guidance {
    margin-top: 28px;
    padding: 18px;
    background: #fff5df;
    border-left: 4px solid #f5a623;
    border-radius: 10px;
}

.contact-form-guidance strong {
    color: #7e5300;
}

.contact-form-guidance p {
    margin: 6px 0 0;
    color: #775f35;
    line-height: 1.55;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-form-group {
    margin-bottom: 20px;
}

.contact-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #173b65;
    font-weight: 700;
}

.contact-form-group label span {
    color: #c93838;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    background: #fff;
    border: 1px solid #cad7e5;
    border-radius: 10px;
    color: #263a51;
    font: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.contact-form-group input:focus,
.contact-form-group select:focus,
.contact-form-group textarea:focus {
    border-color: #2b75bb;
    box-shadow: 0 0 0 4px rgba(43, 117, 187, .12);
}

.contact-form-group textarea {
    resize: vertical;
}

.contact-form-group small {
    display: block;
    margin-top: 7px;
    color: #7b8797;
    line-height: 1.45;
}

.contact-privacy {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin-top: 4px;
    color: #596b80;
    line-height: 1.55;
}

.contact-privacy input {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    accent-color: #1269b4;
}

.contact-privacy a {
    color: #075bab;
}

.contact-submit {
    width: 100%;
    margin-top: 22px;
    border: 0;
    cursor: pointer;
}

.contact-alert {
    display: grid;
    gap: 5px;
    margin-bottom: 30px;
    padding: 18px 20px;
    border-radius: 12px;
}

.contact-alert-success {
    background: #e8f8ef;
    border: 1px solid #b7e5c9;
    color: #146c38;
}

.contact-alert-error {
    background: #fff0f0;
    border: 1px solid #f0c0c0;
    color: #9c2929;
}

.contact-alert ul {
    margin: 6px 0 0 20px;
}

@media (max-width: 1050px) {
    .contact-channel-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-form-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .contact-page {
        padding: 46px 0;
    }

    .contact-services-grid,
    .contact-faq-layout {
        grid-template-columns: 1fr;
    }

    .contact-information-card {
        width: auto;
    }
}

@media (max-width: 580px) {

    .contact-channel-grid,
    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-channel-card {
        min-height: auto;
    }

    .contact-form-section {
        padding: 24px 18px;
    }
}