.contact-page {
    background: #f6f8f5;
}

.contact-page .menu a.is-active {
    background: #ebf4ec;
    color: #123016;
}

.contact-hero {
    padding: 28px 0 14px;
    text-align: center;
}

.contact-hero h1 {
    margin: 0 auto 12px;
    font-size: 24px;
    color: #2d2d2d;
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid #686868;
    position: relative;
}

.contact-hero h1::before,
.contact-hero h1::after {
    content: "";
    position: absolute;
    top: 50%;
    width: min(24vw, 240px);
    border-top: 1px solid #474747;
}

.contact-hero h1::before {
    right: calc(100% + 14px);
}

.contact-hero h1::after {
    left: calc(100% + 14px);
}

.contact-hero p {
    margin: 0 auto;
    max-width: 900px;
    font-size: 18px;
    line-height: 1.7;
    color: #435847;
}

.contact-section {
    padding: 14px 0 30px;
}

.contact-flash-wrap {
    margin-bottom: 20px;
}

.contact-flash {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 26px;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(15, 40, 20, 0.18);
    animation: contact-flash-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    border: 2px solid transparent;
}

@keyframes contact-flash-in {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.contact-flash--success {
    background: linear-gradient(135deg, #166534 0%, #14532d 45%, #15803d 100%);
    color: #f0fdf4;
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-flash--error {
    background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 50%, #b91c1c 100%);
    color: #fef2f2;
    border-color: rgba(255, 255, 255, 0.15);
}

.contact-flash__icon {
    flex-shrink: 0;
    font-size: 2.25rem;
    line-height: 1;
    opacity: 0.95;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.contact-flash__body {
    flex: 1;
    min-width: 0;
}

.contact-flash__kicker {
    display: block;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.92);
}

.contact-flash__text {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.55;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.contact-flash__list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
}

.contact-flash__list li + li {
    margin-top: 4px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-card {
    background: #fff;
    border: 1px solid #dce7dc;
    border-radius: 12px;
    padding: 16px;
}

.contact-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
    color: #1f2f22;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    margin-bottom: 10px;
    font-size: 17px;
    line-height: 1.7;
    color: #2f4135;
}

.contact-list a {
    color: #1f4c29;
    text-decoration: underline;
}

.contact-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.btn-zalo {
    background: #0068ff;
}

.btn-phone {
    background: #d72618;
}

.btn-facebook {
    background: #1877f2;
}

.contact-form {
    display: grid;
    gap: 8px;
}

.contact-form label {
    font-size: 15px;
    font-weight: 700;
    color: #2a3b2e;
}

.contact-form input,
.contact-form textarea {
    border: 1px solid #ceddcc;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 15px;
    font-family: inherit;
    color: #243025;
    background: #fbfdfb;
}

.contact-form textarea {
    resize: vertical;
}

.btn-submit {
    margin-top: 6px;
    background: #2f6b3a;
    justify-content: center;
}

.contact-map {
    padding: 0 0 30px;
}

.contact-map h2 {
    margin: 0 0 12px;
    font-size: 24px;
    color: #1f2f22;
}

.map-frame {
    border: 1px solid #dce7dc;
    border-radius: 12px;
    overflow: hidden;
    min-height: 360px;
    background: #fff;
}

.map-frame iframe {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-hero h1 {
        padding: 9px 16px;
    }

    .contact-hero p,
    .contact-list li {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .contact-flash {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 18px;
    }

    .contact-flash__icon {
        font-size: 2.75rem;
    }

    .contact-flash__text {
        font-size: 1.05rem;
    }

    .contact-flash__list {
        text-align: left;
    }

    .contact-hero {
        padding: 18px 0 12px;
    }

    .contact-hero h1 {
        font-size: 22px;
        padding: 8px 12px;
    }

    .contact-hero h1::before,
    .contact-hero h1::after {
        width: min(10vw, 36px);
    }

    .contact-hero p,
    .contact-list li {
        font-size: 15px;
    }

    .contact-card h2 {
        font-size: 20px;
    }
}
