.kh-contact-page {
    --contact-ink: #111827;
    --contact-muted: #5f6b7a;
    --contact-line: #d9e0e9;
    --contact-purple: #72268f;
    --contact-cyan: #16b9c6;
    background: #f4f6f9;
    color: var(--contact-ink);
}

.kh-contact-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 7vw, 104px) 0;
    background: #160a31;
    color: #fff;
}

.kh-contact-hero::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(9, 6, 29, .96), rgba(55, 22, 112, .88)), url('/assets/images/background/hero-background.webp') center/cover no-repeat;
    content: "";
}

.kh-contact-hero__grid,
.kh-contact-workspace__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    gap: clamp(44px, 7vw, 96px);
    align-items: center;
}

.kh-contact-kicker,
.kh-contact-section-heading > span,
.kh-contact-details__intro > span {
    display: block;
    margin-bottom: 16px;
    color: #63e3e7;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
}

.kh-contact-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.06;
}

.kh-contact-hero__copy > p {
    max-width: 720px;
    margin: 24px 0 34px;
    color: #d8d4e6;
    font-size: 18px;
    line-height: 1.75;
}

.kh-contact-hero__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, .18);
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.kh-contact-action {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 20px 18px;
    color: #fff;
    text-decoration: none;
    transition: background-color .2s ease;
}

.kh-contact-action + .kh-contact-action {
    border-left: 1px solid rgba(255, 255, 255, .18);
}

.kh-contact-action:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.kh-contact-action i {
    flex: 0 0 auto;
    color: #63e3e7;
    font-size: 18px;
}

.kh-contact-action span {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 700;
}

.kh-contact-action small {
    display: block;
    margin-bottom: 3px;
    color: #aeb4c7;
    font-size: 11px;
    font-weight: 600;
}

.kh-contact-routes {
    border-top: 3px solid var(--contact-cyan);
    background: #fff;
    color: var(--contact-ink);
    box-shadow: 0 24px 60px rgba(2, 4, 19, .28);
}

.kh-contact-route {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
    padding: 28px 30px;
}

.kh-contact-route + .kh-contact-route {
    border-top: 1px solid var(--contact-line);
}

.kh-contact-route > i {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    background: #f5ecf8;
    color: var(--contact-purple);
    font-size: 19px;
}

.kh-contact-route strong {
    display: block;
    margin: 1px 0 7px;
    font-size: 17px;
}

.kh-contact-route p {
    margin: 0;
    color: var(--contact-muted);
    font-size: 14px;
    line-height: 1.65;
}

.kh-contact-workspace {
    padding: clamp(66px, 7vw, 104px) 0;
}

.kh-contact-workspace__grid {
    align-items: start;
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr);
    gap: 32px;
}

.kh-contact-form-panel,
.kh-contact-details {
    border-top: 3px solid var(--contact-purple);
    background: #fff;
    box-shadow: 0 18px 48px rgba(31, 41, 55, .08);
}

.kh-contact-form-panel {
    padding: clamp(28px, 4vw, 48px);
}

.kh-contact-details {
    position: sticky;
    top: 24px;
}

.kh-contact-section-heading > span,
.kh-contact-details__intro > span {
    margin-bottom: 10px;
    color: var(--contact-purple);
}

.kh-contact-section-heading h2,
.kh-contact-details__intro h2 {
    margin: 0;
    color: var(--contact-ink);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
}

.kh-contact-section-heading p {
    margin: 12px 0 0;
    color: var(--contact-muted);
    line-height: 1.65;
}

.kh-contact-context {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    margin-top: 26px;
    padding: 18px;
    border-left: 3px solid var(--contact-cyan);
    background: #edfafa;
}

.kh-contact-context > i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    background: #fff;
    color: #087e86;
}

.kh-contact-context strong,
.kh-contact-context span {
    display: block;
}

.kh-contact-context span {
    margin-top: 4px;
    color: var(--contact-muted);
    font-size: 13px;
    line-height: 1.55;
}

.kh-contact-form-message:not(:empty),
.kh-contact-validation:not(:empty) {
    margin-top: 20px;
    padding: 12px 14px;
    border-left: 3px solid #c62828;
    background: #fff1f1;
    color: #8b1c1c;
    font-size: 13px;
}

.kh-contact-form {
    margin-top: 30px;
}

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

.kh-contact-form label {
    display: block;
    min-width: 0;
}

.kh-contact-form label > span:first-child {
    display: block;
    margin-bottom: 9px;
    color: #273244;
    font-size: 13px;
    font-weight: 800;
}

.kh-contact-form input,
.kh-contact-form textarea {
    width: 100%;
    border: 1px solid #cfd7e3;
    border-radius: 4px;
    background: #f9fafc;
    color: var(--contact-ink);
    font: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.kh-contact-form input {
    height: 52px;
    padding: 0 15px;
}

.kh-contact-form textarea {
    min-height: 170px;
    padding: 15px;
    resize: vertical;
}

.kh-contact-form input:focus,
.kh-contact-form textarea:focus {
    border-color: var(--contact-purple);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(114, 38, 143, .12);
}

.kh-contact-form__wide {
    grid-column: 1 / -1;
}

.kh-contact-form__footer {
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--contact-line);
}

.kh-contact-submit {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 4px;
    background: var(--contact-purple);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.kh-contact-submit:hover {
    background: #5d1e77;
}

.kh-contact-details__intro {
    padding: 32px 30px 26px;
}

.kh-contact-details__intro h2 {
    font-size: 27px;
}

.kh-contact-details__list {
    margin: 0;
}

.kh-contact-details__list > div {
    padding: 22px 30px;
    border-top: 1px solid var(--contact-line);
}

.kh-contact-details dt {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #273244;
    font-size: 13px;
    font-weight: 800;
}

.kh-contact-details dt i {
    width: 18px;
    color: var(--contact-purple);
    text-align: center;
}

.kh-contact-details dd {
    margin: 9px 0 0 28px;
    color: var(--contact-muted);
    font-size: 14px;
    line-height: 1.7;
}

.kh-contact-portal-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px;
    background: #21103d;
    color: #fff;
    text-decoration: none;
}

.kh-contact-portal-link:hover {
    color: #fff;
    background: #301656;
}

.kh-contact-portal-link small,
.kh-contact-portal-link strong {
    display: block;
}

.kh-contact-portal-link small {
    margin-bottom: 4px;
    color: #8ee7e7;
    font-size: 10px;
    font-weight: 800;
}

.kh-contact-portal-link strong {
    font-size: 15px;
}

.kh-contact-privacy {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 20px 30px;
    color: var(--contact-muted);
    font-size: 12px;
    line-height: 1.6;
}

.kh-contact-privacy i {
    margin-top: 2px;
    color: #12836e;
}

html[data-theme="dark"] .kh-contact-page {
    --contact-ink: #f5f7fb;
    --contact-muted: #b9c2d0;
    --contact-line: #364152;
    background: #0e131f;
}

html[data-theme="dark"] .kh-contact-routes,
html[data-theme="dark"] .kh-contact-form-panel,
html[data-theme="dark"] .kh-contact-details {
    background: #181f2c;
}

html[data-theme="dark"] .kh-contact-route > i,
html[data-theme="dark"] .kh-contact-form input,
html[data-theme="dark"] .kh-contact-form textarea,
html[data-theme="dark"] .kh-contact-context > i {
    background: #222b3b;
    color: #f3d9ff;
}

html[data-theme="dark"] .kh-contact-form label > span:first-child,
html[data-theme="dark"] .kh-contact-details dt,
html[data-theme="dark"] .kh-contact-form input,
html[data-theme="dark"] .kh-contact-form textarea {
    color: #f4f6fb;
}

html[data-theme="dark"] .kh-contact-context {
    background: #102a31;
}

@media (max-width: 1100px) {
    .kh-contact-hero__grid,
    .kh-contact-workspace__grid {
        grid-template-columns: 1fr;
    }

    .kh-contact-details {
        position: static;
    }
}

@media (max-width: 760px) {
    .kh-contact-hero {
        padding: 52px 0;
    }

    .kh-contact-hero h1 {
        font-size: 39px;
    }

    .kh-contact-hero__copy > p {
        font-size: 16px;
    }

    .kh-contact-hero__actions,
    .kh-contact-form__grid {
        grid-template-columns: 1fr;
    }

    .kh-contact-action + .kh-contact-action {
        border-top: 1px solid rgba(255, 255, 255, .18);
        border-left: 0;
    }

    .kh-contact-route {
        padding: 22px 20px;
    }

    .kh-contact-workspace {
        padding: 52px 0;
    }

    .kh-contact-form-panel {
        padding: 26px 20px;
    }

    .kh-contact-form__footer {
        display: grid;
        justify-items: stretch;
    }

    .kh-contact-form__footer .g-recaptcha {
        max-width: 100%;
        overflow: hidden;
    }

    .kh-contact-submit {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .kh-contact-hero h1 {
        font-size: 34px;
    }

    .kh-contact-route {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 13px;
    }

    .kh-contact-route > i {
        width: 42px;
        height: 42px;
    }
}
