/* Contact heading, paired cards and visit map. */
.nn-contact-page {
    padding: 0 0 72px;
    color: #5d6c63;
    background: #f2f4ed;
}

.nn-contact-heading {
    padding: 72px 0 166px;
    border-bottom: 1px solid #e1e6da;
    background: linear-gradient(135deg, #fffefa, #f2f4ed 52%, #e7ece1);
    text-align: center;
}

.nn-contact-heading h1 {
    margin: 0 0 16px;
    color: var(--nn-ink);
    font-size: clamp(36px, 5vw, 54px);
    line-height: 1.15;
    text-align: center;
}

.nn-contact-heading p {
    max-width: 670px;
    margin: 0 auto;
    line-height: 1.75;
}

.nn-contact-content-wrap {
    position: relative;
    margin-top: -104px;
}

.nn-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(18px, 2.2vw, 28px);
}

.nn-contact-card {
    min-width: 0;
    padding: clamp(22px, 2.6vw, 38px);
    border: 1px solid #e1e6da;
    border-radius: 24px;
    background: #fffefa;
    box-shadow: 0 16px 40px #344c400d;
}

.nn-contact-label {
    margin: 0 0 10px;
    color: #5f775c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.5;
    text-transform: uppercase;
}

.nn-contact-card h2 {
    margin: 0 0 12px;
    color: var(--nn-ink);
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.35;
    text-wrap: balance;
}

.nn-contact-description, .nn-contact-form-heading > p:last-child {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
}

.nn-contact-info {
    display: flex;
    flex-direction: column;
}

.nn-contact-info-list {
    display: grid;
    flex: 1;
    align-content: space-between;
    gap: 11px;
    padding: 0;
    margin: 24px 0 22px;
    list-style: none;
}

.nn-contact-info-list li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 10px 0;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.nn-contact-info-list strong {
    display: block;
    margin-bottom: 3px;
    color: var(--nn-ink);
}

.nn-contact-info-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #344c40, #6e8668);
    color: #fffefa;
}

.nn-contact-page .nn-page-icon {
    display: block;
    flex-shrink: 0;
    width: 21px;
    height: 21px;
}

.nn-contact-zalo, .nn-contact-map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #c8d4be;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.nn-contact-zalo:hover, .nn-contact-map-link:hover {
    background: #edf3e7;
}

.nn-contact-zalo {
    align-self: flex-start;
}

.nn-contact-form-heading {
    margin-bottom: 25px;
}

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

.nn-contact-field {
    min-width: 0;
    margin-bottom: 17px;
}

.nn-contact-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--nn-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.nn-contact-field label span {
    color: #a84035;
}

.nn-contact-field input, .nn-contact-field select, .nn-contact-field textarea {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px clamp(10px, 1vw, 14px);
    margin: 0;
    border: 1px solid #dce4d5;
    border-radius: 12px;
    background: #f7f9f3;
    color: var(--nn-ink);
    font: inherit;
    font-size: 16px;
    line-height: 1.45;
}

.nn-contact-field textarea {
    min-height: 128px;
    resize: vertical;
}

.nn-contact-field input:focus, .nn-contact-field select:focus, .nn-contact-field textarea:focus {
    outline: 2px solid #8aa17a;
    outline-offset: 2px;
    background: #fffefa;
}

.nn-contact-trap {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    clip-path: inset(50%);
    overflow: hidden;
}

.nn-contact-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #344c40, #567153);
    color: #fffefa;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.nn-contact-submit:hover {
    background: #2d4538;
    color: #fffefa;
}

.nn-contact-submit:focus-visible {
    outline: 2px solid #7d966c;
    outline-offset: 4px;
}

.nn-contact-form-note {
    margin: 12px 0 0;
    color: #65756a;
    font-size: 13px;
    line-height: 1.65;
    text-align: center;
}

.nn-contact-form-status {
    padding: 13px 16px;
    margin: 0 0 20px;
    border: 1px solid #e0d5c3;
    border-radius: 12px;
    background: #f7f1e6;
    color: #5e4d37;
    font-size: 14px;
    line-height: 1.65;
}

.nn-contact-form-status-sent {
    border-color: #d4e2cb;
    background: #ecf4e7;
    color: #344c40;
}

.nn-contact-map, .nn-contact-extra {
    margin-top: 32px;
}

.nn-contact-map-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.nn-contact-map-heading h2 {
    margin: 0;
    font-size: 26px;
}

.nn-contact-map-link {
    flex-shrink: 0;
}

.nn-contact-map-frame {
    overflow: hidden;
    border: 1px solid #e1e6da;
    border-radius: 16px;
    background: #edf1e8;
}

.nn-contact-map-frame :is(.nn-map-viewport, iframe) {
    height: clamp(300px, 37vw, 450px);
}

.nn-contact-map-frame iframe {
    display: block;
    width: 100%;
    border: 0;
}

@media (max-width: 900px) {
    .nn-contact-heading {
        padding: 58px 0 138px;
    }
    .nn-contact-content-wrap {
        margin-top: -80px;
    }
    .nn-contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }
}

@media (max-width: 640px) {
    .nn-contact-page {
        padding-bottom: 42px;
    }
    .nn-contact-page .nn-page-shell {
        width: calc(100% - 28px);
    }
    .nn-contact-heading {
        padding: 36px 0 72px;
    }
    .nn-contact-heading h1 {
        font-size: clamp(30px, 8vw, 36px);
    }
    .nn-contact-content-wrap {
        margin-top: -40px;
    }
    .nn-contact-grid {
        gap: 16px;
    }
    .nn-contact-card {
        padding: 20px clamp(14px, 4.6vw, 22px);
        border-radius: 20px;
    }
    .nn-contact-info-list {
        margin: 16px 0 18px;
        gap: 6px;
    }
    .nn-contact-info-list li {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
        padding: 8px 0;
    }
    .nn-contact-info-icon {
        width: 36px;
        height: 36px;
    }
    .nn-contact-zalo {
        width: 100%;
    }
    .nn-contact-form-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
    .nn-contact-field {
        margin-bottom: 14px;
    }
    .nn-contact-map-heading {
        flex-direction: column;
        align-items: flex-start;
    }
    .nn-contact-map-heading h2 {
        font-size: 23px;
    }
}
