/* Two halves to the window edges: the ways to reach us over the Nhat Tan bridge, and the form on white. */
.contact-split { display: grid; }
.contact-side { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; background: #16233f; color: #fff; }
.contact-view { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.contact-side::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(rgba(9, 22, 48, .78) 0, rgba(9, 22, 48, .38) 46%, rgba(9, 22, 48, .94) 100%); content: ''; }
.contact-words { display: flex; flex: 1; flex-direction: column; padding: clamp(28px, 5vw, 72px) clamp(16px, 4vw, 64px); }
.page .contact-words h1 { max-width: 10em; margin-bottom: 1rem; color: #fff; font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1.06; }
.contact-lead { max-width: 28em; font-size: 1.12rem; }
.contact-lines { display: grid; gap: 1.1rem; margin: auto 0 0; padding-top: 2rem; }
.contact-line { display: inline-flex; align-items: flex-start; gap: 1rem; min-height: 48px; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.contact-line i { flex: none; width: 1.5rem; color: var(--plate-yellow); font-size: 1.35rem; line-height: 1.7; text-align: center; }
.contact-line > span { min-width: 0; }
.contact-label { display: block; color: #c6d6ef; font-size: .9rem; }
.contact-line strong { display: block; font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; line-height: 1.25; }
a.contact-line:hover { color: #fff; }
a.contact-line:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.contact-side :focus-visible { outline-color: #fff; }

.contact-main { display: flex; align-items: center; padding: clamp(32px, 6vw, 80px) clamp(16px, 5vw, 88px); }
.contact-main form { width: 100%; max-width: 640px; scroll-margin-top: 96px; }
.page .contact-main h2 { margin-bottom: 1.25rem; font-size: clamp(1.9rem, 3vw, 2.6rem); }
.topics { display: flex; flex-wrap: wrap; gap: .5rem; }
.topic { display: inline-flex; align-items: center; min-height: 48px; padding: .4rem 1.1rem; border: 2px solid var(--rule); border-radius: 999px; font-weight: 600; line-height: 1.3; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.topic:hover { border-color: var(--navy); }
.btn-check:checked + .topic { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn-check:focus-visible + .topic { outline: 3px solid #2f78e0; outline-offset: 2px; }
.contact-main .form-control { background: var(--mist); }
.contact-main .form-control:focus { background: #fff; }
.contact-main .form-control.is-invalid { border-color: var(--bs-form-invalid-border-color); }
.contact-main .required-mark { color: var(--red); }

/* What happens next: three steps with large numbers. */
.after { counter-reset: after; }
.after li { counter-increment: after; }
.after li::before { display: block; margin-bottom: .25rem; color: var(--navy); font-family: var(--font-heading); font-size: 4.5rem; font-weight: 800; line-height: 1; content: counter(after); }
.after h3 { margin-bottom: .4rem; }
.after p { color: var(--muted); }

@media (min-width: 992px) {
    .contact-split { grid-template-columns: 5fr 7fr; min-height: calc(100vh - 80px); }
}
@media (max-width: 991.98px) {
    /* The form should follow quickly on a phone. */
    .contact-lines { gap: .5rem; padding-top: .75rem; }
    .contact-line strong { font-size: 1.3rem; }
}
@media (max-width: 575.98px) {
    .page .contact-words h1 { font-size: 2.15rem; }
    .contact-lead { font-size: 1.02rem; }
    .topic { padding: .35rem .85rem; font-size: .95rem; }
}
