.contact-content-section {
    padding: 36px 0 100px;
    background: #f8f8f5;
    color: #17202b;
}

.contact-shell {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.contact-page-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, .65fr);
    align-items: end;
    gap: 48px;
    margin-bottom: 34px;
    padding: 0 0 30px;
    border-bottom: 1px solid rgba(23, 32, 43, .14);
}

.contact-page-intro h2 {
    max-width: 680px;
    margin: 0;
    color: #17202b;
    font-size: clamp(27px, 3.8vw, 43px);
    font-weight: 620;
    letter-spacing: -.045em;
    line-height: 1.12;
}

.contact-page-intro p {
    max-width: 400px;
    margin: 0;
    color: #68727e;
    font-size: 14px;
    line-height: 1.8;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
    overflow: hidden;
    border: 1px solid rgba(23, 32, 43, .1);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(23, 32, 43, .07);
}

.contact-info-panel,
.contact-form-panel {
    min-width: 0;
    padding: clamp(28px, 4vw, 52px);
}

.contact-info-panel {
    background: #eff2e8;
}

.contact-panel-kicker {
    margin: 0 0 14px;
    color: #042546;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.contact-info-panel > h2 {
    max-width: 360px;
    margin: 0;
    color: #17202b;
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 560;
    letter-spacing: -.02em;
    line-height: 1.5;
}

body.reqonic-modern-interior .contact-info-panel > h2 {
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 560;
    letter-spacing: -.02em;
}

.contact-details-list {
    display: grid;
    gap: 0;
    margin-top: 30px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 0;
    border-top: 1px solid rgba(23, 32, 43, .12);
}

.contact-detail-icon {
    display: inline-grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 1px solid rgba(23, 32, 43, .12);
    border-radius: 50%;
    color: #042546;
    font-size: 15px;
    place-items: center;
}

.contact-detail h3 {
    margin: 1px 0 5px;
    color: #17202b;
    font-size: 12px;
    font-weight: 700;
}

.contact-detail a,
.contact-detail p {
    margin: 0;
    color: #68727e;
    font-size: 13px;
    line-height: 1.7;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-detail a:hover {
    color: #042546;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-form-panel {
    background: #fff;
}

.contact-form-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-form-heading h2 {
    margin: 0;
    color: #17202b;
    font-size: clamp(23px, 2.8vw, 30px);
    font-weight: 620;
    letter-spacing: -.04em;
}

.contact-form-heading > span {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid rgba(23, 32, 43, .14);
    border-radius: 50%;
    color: #042546;
    place-items: center;
}

.contact-form {
    display: grid;
    gap: 17px;
}

.contact-form-field .form-label {
    display: block;
    margin-bottom: 7px;
    color: #39434e;
    font-size: 12px;
    font-weight: 650;
}

.contact-form .form-control {
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #dfe3dc;
    border-radius: 9px;
    background: #fbfcfa;
    color: #17202b;
    font: inherit;
    font-size: 14px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

body.reqonic-modern-interior .contact-form .form-control {
    min-height: 48px;
    border: 1px solid #dfe3dc;
    border-radius: 9px;
    background: #fbfcfa;
    color: #17202b;
}

.contact-form textarea.form-control {
    min-height: 132px;
    resize: vertical;
}

.contact-form .form-control:focus {
    border-color: #8d9b62;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(141, 155, 98, .14);
}

.contact-form .site-button-control {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    justify-self: start;
    margin-top: 3px;
    padding: 0 22px;
    border-radius: 999px;
}

html[dir="rtl"] .contact-form .site-button-control {
    flex-direction: row-reverse;
}

body[data-theme="dark"] .contact-content-section {
    background: #0d1119;
    color: #eef0ec;
}

body[data-theme="dark"] .contact-page-intro {
    border-bottom-color: rgba(255, 255, 255, .12);
}

body[data-theme="dark"] .contact-page-intro h2,
body[data-theme="dark"] .contact-form-heading h2 {
    color: #eef0ec;
}

body[data-theme="dark"] .contact-page-intro p,
body[data-theme="dark"] .contact-detail a,
body[data-theme="dark"] .contact-detail p {
    color: #a4acb7;
}

body[data-theme="dark"] .contact-layout {
    border-color: rgba(255, 255, 255, .1);
    background: #151b24;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .2);
}

body[data-theme="dark"] .contact-info-panel {
    background: #1b222b;
}

body[data-theme="dark"] .contact-panel-kicker {
    color: #d5f36a;
}

body[data-theme="dark"] .contact-info-panel > h2,
body[data-theme="dark"] .contact-detail h3 {
    color: #eef0ec;
}

body[data-theme="dark"] .contact-detail {
    border-top-color: rgba(255, 255, 255, .12);
}

body[data-theme="dark"] .contact-detail-icon,
body[data-theme="dark"] .contact-form-heading > span {
    border-color: rgba(255, 255, 255, .16);
    color: #d5f36a;
}

body[data-theme="dark"] .contact-detail a:hover {
    color: #d5f36a;
}

body[data-theme="dark"] .contact-form-panel {
    background: #151b24;
}

body[data-theme="dark"] .contact-form-field .form-label {
    color: #d9dde3;
}

body[data-theme="dark"] .contact-form .form-control {
    border-color: #343c47;
    background: #10151d;
    color: #eef0ec;
}

body.reqonic-modern-interior[data-theme="dark"] .contact-form .form-control {
    border-color: #343c47 !important;
    background: #10151d !important;
    color: #eef0ec !important;
}

body[data-theme="dark"] .contact-form .form-control::placeholder {
    color: #929ba7;
}

body[data-theme="dark"] .contact-form .form-control:focus {
    border-color: #a9c44f;
    background: #111720;
    box-shadow: 0 0 0 4px rgba(213, 243, 106, .12);
}

@media (max-width: 760px) {
    .contact-content-section {
        padding: 24px 0 68px;
    }

    .contact-shell {
        width: min(100% - 32px, 600px);
    }

    .contact-page-intro {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 22px;
        padding-bottom: 22px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        border-radius: 17px;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 26px 22px;
    }

    .contact-details-list {
        margin-top: 20px;
    }

    .contact-form .site-button-control {
        width: 100%;
        justify-self: stretch;
    }
}
