.consultation-page {
    --max: 1440px;
    color: #0c193b;
    background: #eaf5ff;
}

.consultation-hero {
    margin-top: 76px;
    padding: 38px 0 42px;
    background: #d7edff url("../img/contact_cover.webp") center / cover no-repeat;
}

.breadcrumbs {
    color: #215694;
    font-size: 14px;
    font-weight: 700;
}

.consultation-hero h1 {
    margin: 10px 0 4px;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.25;
}

.consultation-hero p {
    margin: 0;
    /* font-weight: 600; */
}

.consultation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
    align-items: start;
    gap: 24px;
    padding-top: 26px;
    padding-bottom: 70px;
}

.consultation-card {
    padding: 24px 28px;
    border: 1px solid #d5e7fa;
    border-radius: 16px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 4px 12px rgba(34, 88, 143, .12);
}

.consultation-card h2 {
    margin: 0 0 18px;
    font-size: 23px;
    line-height: 1.35;
}

.heading-icon {
    color: #0073ef;
    font-size: 1.35em;
    vertical-align: middle;
}

.heading-icon-image {
    display: inline-block;
    width: 1.35em;
    height: 1.35em;
    object-fit: contain;
    vertical-align: middle;
}

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

.field {
    min-width: 0;
}

.field-wide {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 700;
}

.required {
    color: #ed243a;
}

.field input:not([type="file"]),
.field select,
.field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #bfcee0;
    border-radius: 6px;
    background: #fff;
    color: #0c193b;
    font: inherit;
    font-size: 16px;
}

.field textarea {
    resize: vertical;
}

.field input:not([type="file"]),
.field select {
    height: 48px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid #1681ff;
    outline-offset: 1px;
}

.optional {
    color: #536584;
    font-size: .9em;
    font-weight: 500;
}

.attachment-control {
    position: relative;
}

.attachment-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.attachment-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 66px;
    padding: 10px 12px 10px 16px;
    border: 1px solid #afc4dd;
    border-radius: 12px;
    background: #f9fcff;
    color: #536584;
    transition: border-color .2s, background-color .2s;
}

.attachment-control:focus-within .attachment-row {
    outline: 2px solid #1681ff;
    outline-offset: 2px;
}

.attachment-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.attachment-copy {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    min-width: 0;
}

.attachment-filename {
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-size {
    color: #536584;
    font-size: 14px;
}

.attachment-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 7px 16px;
    border: 1px solid #1681e8;
    border-radius: 10px;
    color: #0868c7;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s;
}

.attachment-action:hover {
    background: #eaf5ff;
}

.attachment-action svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.attachment-remove {
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: #456283;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.attachment-remove:hover {
    color: #005dc9;
}

.attachment-field.has-file .attachment-row {
    border-color: #75b5ff;
    background: #eef7ff;
    color: #0c193b;
}

.attachment-field.has-error .attachment-row {
    border-color: #ff5454;
    background: #fff3f3;
    color: #a52c2c;
}

.attachment-error {
    margin: 6px 0 0;
    color: #a52c2c;
    font-size: 14px;
    font-weight: 600;
}

.attachment-icon[hidden],
.attachment-size[hidden],
.attachment-remove[hidden],
.attachment-error[hidden] {
    display: none;
}

.field small {
    display: block;
    margin-top: 4px;
    color: #536584;
}

.form-message {
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff3f3;
    color: #a52c2c;
    font-weight: 600;
}

.form-message.is-saved {
    background: #eaf5ff;
    color: #174e88;
}

.g-recaptcha {
    max-width: 100%;
    overflow-x: auto;
}

.captcha-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.captcha-row input {
    flex: 1 1 150px;
}

.captcha-row img {
    width: 150px;
    height: 40px;
    border: 1px solid #bfcee0;
}

.captcha-row button {
    padding: 8px 12px;
    border: 1px solid #1681e8;
    border-radius: 8px;
    background: #fff;
    color: #0868c7;
    font: inherit;
    cursor: pointer;
}

.captcha-row button:hover {
    background: #eaf5ff;
}

.service-field {
    scroll-margin-top: 95px;
    border-radius: 9px;
}

.service-field.is-preselected {
    margin: -8px;
    padding: 8px;
    background: #fff0f6;
    box-shadow: 0 0 0 1px #ffd0e3;
}

.field-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.preselected {
    padding: 2px 10px;
    border-radius: 99px;
    background: #ef3477;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.preselected[hidden] {
    display: none;
}

.is-preselected select {
    border-color: #1681ff;
    background: #edf6ff;
}

.submit-button {
    width: 100%;
    margin-top: 24px;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: #2b9ee0;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.submit-button:disabled {
    cursor: not-allowed;
}

.submit-note {
    margin: 10px 0 0;
    color: #536584;
    font-size: 13px;
    text-align: center;
}

.consultation-sidebar {
    display: grid;
    gap: 20px;
}

.method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.method + .method {
    border-top: 1px solid #e6eef7;
}

.method img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.method div {
    min-width: 0;
    flex: 1;
}

.method h3,
.method p {
    margin: 0;
}

.method h3 {
    font-size: 16px;
}

.method p {
    overflow-wrap: anywhere;
    font-size: 14px;
}

.method a {
    padding: 4px 20px;
    border: 1px solid #bddcff;
    border-radius: 99px;
    color: #005dc9;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.service-picker h2 {
    margin-bottom: 0;
    font-size: 20px;
}

.service-picker > p {
    margin: 0 0 16px 32px;
    color: #536584;
    font-size: 14px;
}

.service-list {
    display: grid;
    gap: 8px;
}

.service-list button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d7e6f6;
    border-radius: 7px;
    background: #fff;
    color: #0c193b;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(34, 88, 143, .08);
}

.service-list button img {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    object-fit: contain;
}

.service-list button span:last-child {
    margin-left: auto;
}

.service-list button:hover,
.service-list button:focus-visible,
.service-list button.is-selected {
    border-color: #a7d4ff;
    background: #dceeff;
    color: #005dc9;
}

@media (prefers-reduced-motion: no-preference) {
    .service-list button {
        transition: background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease;
    }

    .service-list button:hover,
    .service-list button:focus-visible {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(34, 88, 143, .18);
    }
}

@media (max-width: 800px) {
    .consultation-layout {
        grid-template-columns: 1fr;
    }

    .consultation-sidebar {
        grid-row: 1;
    }

    .consultation-hero {
        background-position: 60% center;
    }
}

@media (max-width: 520px) {
    .consultation-hero {
        padding: 28px 0 32px;
        background-position: 55% center;
    }

    .consultation-hero p {
        max-width: 68%;
        font-size: 14px;
    }

    .desktop-break {
        display: none;
    }

    .consultation-card {
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-wide {
        grid-column: auto;
    }

    .attachment-row {
        gap: 10px;
        padding: 9px 10px;
    }

    .attachment-action {
        min-height: 40px;
        padding: 6px 10px;
        font-size: 14px;
    }

    .attachment-action svg {
        width: 19px;
        height: 19px;
    }

    .attachment-remove {
        padding: 6px 2px;
        font-size: 14px;
    }
}
