/* Contact design: scoped so existing public and account pages keep their layouts. */
.ht-contact {
    color: var(--ht-navy, #122c4d);
    background: #fff;
}

.ht-contact .container {
    max-width: 1320px;
    padding-inline: 32px;
}

.ht-contact-icon {
    display: inline-flex;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    font-size: 26px;
}

:where(.ht-contact) main h1,
:where(.ht-contact) main h2,
:where(.ht-contact) main h3 {
    color: var(--ht-navy, #122c4d);
    font-family: Inter, Arial, sans-serif;
    font-weight: 750;
    letter-spacing: -.045em;
}

:where(.ht-contact) main a {
    color: var(--ht-navy, #122c4d);
    text-underline-offset: 3px;
}

:where(.ht-contact) main a:hover {
    text-decoration-thickness: 2px;
}

.ht-contact-hero {
    background: linear-gradient(110deg, #faecd7, #fcf0df 58%, #faecd7);
}

.ht-contact-hero-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    align-items: center;
    gap: 28px;
    padding-block: 31px 40px;
    min-height: 285px;
}

.ht-contact-breadcrumb {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    margin-bottom: 18px;
    color: #405270;
}

.ht-contact-breadcrumb a {
    font-weight: 600;
}

.ht-contact-hero h1 {
    font-size: clamp(48px, 6.2vw, 76px);
    line-height: 1.02;
    margin: 0 0 15px;
}

.ht-contact-hero p {
    font-size: clamp(20px, 2.1vw, 27px);
    line-height: 1.35;
    color: #405270;
    margin: 0;
    letter-spacing: -.025em;
}

.ht-contact-illustration {
    width: 100%;
    height: auto;
    max-height: 240px;
    align-self: end;
}

.ht-contact-content {
    padding-block: 50px 45px;
}

.ht-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.82fr) minmax(0, 1fr);
    gap: 54px;
    align-items: start;
}

.ht-contact-message > h2,
.ht-contact-start > h2 {
    font-size: clamp(29px, 3.7vw, 44px);
    line-height: 1.15;
    margin: 0 0 12px;
}

.ht-contact-intro {
    font-size: 20px;
    line-height: 1.5;
    color: #405270;
    margin: 0 0 5px;
}

.ht-contact-required {
    color: #405270;
    font-size: 15px;
    margin: 0 0 24px;
}

.ht-contact-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.ht-contact-field {
    min-width: 0;
    margin-bottom: 22px;
}

.ht-contact-field label {
    display: block;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 550;
    margin-bottom: 6px;
}

.ht-contact-field label > span:not(.ht-contact-asterisk) {
    color: #405270;
    font-weight: 400;
}

.ht-contact-asterisk {
    color: #c64228;
}

.ht-contact-field input,
.ht-contact-field select,
.ht-contact-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    border: 1px solid #b7c4d6;
    border-radius: 7px;
    background: #fff;
    color: var(--ht-navy, #122c4d);
    padding: 12px 15px;
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
    box-shadow: 0 1px 2px #122c4d05;
}

.ht-contact-field select {
    appearance: auto;
    padding-right: 42px;
    background-image: none;
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.ht-contact-field select:invalid,
.ht-contact-field input::placeholder,
.ht-contact-field textarea::placeholder {
    color: #687890;
    opacity: 1;
}

.ht-contact-field textarea {
    min-height: 196px;
    resize: vertical;
}

.ht-contact-field :is(input, select, textarea):focus-visible {
    outline: 3px solid #122c4d;
    outline-offset: 2px;
    border-color: #122c4d;
}

.ht-contact-field [aria-invalid="true"] {
    border-color: #a63824;
}

.ht-contact-field-error { margin: 7px 0 0; color: #a63824; font-size: 13px; line-height: 1.5; }
.ht-contact-captcha { width: 100%; min-width: 300px; margin: 20px 0; position: relative; left: 50%; transform: translateX(-50%); }
#contactSubmitHelp { margin-bottom: 15px; }

.ht-contact-message-field {
    margin-bottom: 17px;
}

.ht-contact-help {
    color: #405270;
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.6;
}

.ht-contact-privacy {
    font-size: 15px;
    line-height: 1.6;
    color: #405270;
    margin: 0 0 22px;
}

.ht-contact-privacy a {
    font-weight: 600;
}

.ht-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 55px;
    min-width: 250px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 13px 25px;
    background: #ff7755;
    color: #122c4d;
    font: inherit;
    font-size: 18px;
    font-weight: 750;
    cursor: pointer;
    transition: background-color .15s ease;
}

.ht-contact-submit:hover:not(:disabled) {
    background: #ff987a;
}

.ht-contact-submit:disabled {
    cursor: wait;
    opacity: .65;
}

.ht-contact-feedback,
.ht-contact-notice {
    padding: 15px 18px;
    border-radius: 7px;
    border: 1px solid;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.55;
}

.ht-contact-feedback[hidden] {
    display: none;
}

.ht-contact-feedback-error {
    background: #fff3ee;
    border-color: #e9b5a8;
    color: #7e2e1d;
}

.ht-contact-feedback-error p {
    margin: 0 0 5px;
    font-weight: 650;
}

.ht-contact-feedback-error ul {
    padding-left: 20px;
    margin: 0;
}

.ht-contact-feedback-error a {
    color: inherit;
}

.ht-contact-feedback-success {
    margin-top: 20px;
    border-color: #9dbcae;
    background: #edf6f0;
    color: #20523c;
}

.ht-contact-sidebar {
    padding-top: 5px;
}

.ht-contact-help-card,
.ht-contact-start {
    background: #fcf7ef;
    border: 1px solid #f0dfc8;
    border-radius: 9px;
}

.ht-contact-help-card {
    padding: 27px 25px;
}

.ht-contact-help-card section + section {
    border-top: 1px solid #ecd7bc;
    margin-top: 31px;
    padding-top: 25px;
}

.ht-contact-card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
    font-size: 60px;
}

.ht-contact-sidebar h2 {
    font-size: clamp(23px, 2.35vw, 30px);
    line-height: 1.15;
    margin: 0 0 11px;
}

.ht-contact-sidebar p {
    font-size: 16px;
    line-height: 1.5;
    color: #405270;
    margin: 0;
}

.ht-contact-email {
    font-size: clamp(15px, 1.7vw, 20px);
    font-weight: 750;
    overflow-wrap: anywhere;
}

.ht-contact-owner-card {
    background: linear-gradient(120deg, #122c4d, #1c395e);
    border-radius: 9px;
    padding: 26px 25px 28px;
    margin-top: 18px;
    color: #fff;
}

.ht-contact-owner-icon {
    width: 75px;
    height: 75px;
    color: #ff7755;
    margin-bottom: 14px;
    font-size: 75px;
}

.ht-contact-owner-card h2,
.ht-contact-owner-card p,
.ht-contact-owner-card a {
    color: #fff;
}

.ht-contact-owner-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 13px 14px;
    border: 1px solid #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 650;
    text-decoration: none;
    margin-top: 25px;
    min-height: 52px;
}

.ht-contact-owner-button:hover {
    background: #ffffff12;
}

.ht-contact-owner-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
}

.ht-contact-start {
    margin-top: 42px;
    padding: 26px 30px 30px;
}

.ht-contact-start > h2 {
    margin-bottom: 25px;
}

.ht-contact-start-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ht-contact-start-item {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-right: 25px;
}

.ht-contact-start-item + .ht-contact-start-item {
    border-left: 1px solid #ecd7bc;
    padding-left: 35px;
    padding-right: 0;
}

.ht-contact-start-item > .ht-contact-icon {
    width: 70px;
    height: 80px;
    font-size: 70px;
}

.ht-contact-start-item h3 {
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 6px;
}

.ht-contact-start-item p {
    font-size: 16px;
    line-height: 1.45;
    color: #405270;
    margin: 0 0 13px;
}

.ht-contact-start-item a {
    font-size: 16px;
    font-weight: 650;
}

@media (max-width: 1199px) {
    .ht-contact-hero-inner { min-height: 245px; }
    .ht-contact-grid { gap: 40px; }
    .ht-contact-content { padding-top: 40px; }
    .ht-contact-start-item { gap: 17px; }
    .ht-contact-start-item > .ht-contact-icon { width: 58px; height: 70px; font-size: 58px; }
    .ht-contact-start-item h3 { font-size: 20px; }
}

@media (max-width: 767px) {
    .ht-contact .container { padding-inline: 22px; }
    .ht-contact-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 25px 30px; }
    .ht-contact-hero h1 { font-size: 48px; }
    .ht-contact-hero p { font-size: 21px; }
    .ht-contact-illustration { display: none; }
    .ht-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .ht-contact-content { padding-block: 30px 32px; }
    .ht-contact-message > h2, .ht-contact-start > h2 { font-size: 31px; }
    .ht-contact-intro { font-size: 18px; }
    .ht-contact-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .ht-contact-owner-card { margin-top: 0; }
    .ht-contact-help-card, .ht-contact-owner-card { padding: 24px 20px; }
    .ht-contact-sidebar h2 { font-size: 24px; }
    .ht-contact-start { margin-top: 30px; padding: 25px 22px; }
    .ht-contact-start-grid { grid-template-columns: minmax(0, 1fr); gap: 25px; }
    .ht-contact-start-item { padding-right: 0; }
    .ht-contact-start-item + .ht-contact-start-item { border-left: 0; padding: 24px 0 0; border-top: 1px solid #ecd7bc; }
}

@media (max-width: 575px) {
    .ht-contact-form-row, .ht-contact-sidebar { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .ht-contact-field { margin-bottom: 19px; }
    .ht-contact-owner-card { margin-top: 18px; }
    .ht-contact-desktop-break { display: none; }
    .ht-contact-submit { width: 100%; }
    .ht-contact-start-item { align-items: flex-start; gap: 16px; }
    .ht-contact-start-item > .ht-contact-icon { width: 48px; height: 65px; font-size: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    .ht-contact-submit { transition: none; }
}
