.contact-hero {
    --contact-photo: url(../img/company-field-assurance.webp);
    color: #fff;
    background:
        linear-gradient(90deg, var(--navy) 4%, #0d182af5 35%, #0d182a6b 100%),
        linear-gradient(0deg, #0d182acf, #0d182a18 83%),
        var(--contact-photo) center 17% / cover;
}

.contact-hero-inner {
    padding-block: clamp(25px, 3.05vw, 42px) clamp(35px, 3.8vw, 56px);
}

.contact-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 10px;
    margin-bottom: clamp(23px, 2.7vw, 34px);
    color: #d6e1ed;
    font-size: 13px;
}

.contact-breadcrumb a:hover,
.contact-breadcrumb [aria-current="page"] {
    color: #87d9f6;
}

.contact-hero h1 {
    max-width: 700px;
    font-size: clamp(54px, 6.45vw, 89px);
    line-height: .98;
    letter-spacing: -.026em;
}

.contact-hero h1 span {
    display: block;
    margin-top: 5px;
    color: #8bdaf6;
    font-size: .82em;
    line-height: 1.03;
}

.contact-hero p {
    max-width: 440px;
    margin-top: 18px;
    color: #e0eaf4;
    line-height: 1.55;
}

.contact-hero .button {
    margin-top: 23px;
}

.contact-workspace {
    padding-block: clamp(33px, 4vw, 56px) clamp(50px, 7vw, 93px);
    background: #f2f5f8;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(19px, 3vw, 44px);
}

.enquiry-panel,
.contact-info {
    padding: clamp(22px, 3.4vw, 43px);
    border-radius: 5px;
    min-width: 0;
}

.enquiry-panel {
    border: 1px solid #d3dde5;
    border-top: 3px solid var(--orange);
    background: #fff;
    scroll-margin-top: 15px;
}

.enquiry-panel h2,
.contact-info h2 {
    font-size: clamp(36px, 4vw, 53px);
    letter-spacing: -.012em;
}

.enquiry-intro,
.enquiry-preview {
    margin-top: 8px;
    color: #536174;
    font-size: 14px;
    line-height: 1.5;
}

.enquiry-preview {
    padding-left: 11px;
    border-left: 2px solid #007eae;
}

#enquiry-form {
    margin-top: 24px;
}

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

.field {
    margin-bottom: 19px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
}

.required-mark {
    color: #9b4b00;
}

.field input,
.field select,
.field textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #bccbd8;
    border-radius: 3px;
    background: #f8fafc;
    color: var(--navy);
    font-size: 16px;
    line-height: 1.45;
}

.field textarea,
#prepared-brief {
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #5e6b7a;
}

.field :is(input, select, textarea):focus {
    outline: 2px solid #007caa;
    outline-offset: 2px;
}

.field [aria-invalid="true"] {
    border-color: #a62f22;
}

.field-hint,
.field-error {
    margin-top: 5px;
    color: #536174;
    font-size: 13px;
    line-height: 1.45;
}

.field-error {
    color: #9b2e22;
}

.enquiry-consent {
    margin: 23px 0;
    color: #43566a;
    font-size: 14px;
    line-height: 1.45;
}

.enquiry-consent label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
}

.enquiry-consent input {
    width: 19px;
    height: 19px;
    margin: 1px 0 0;
    flex: 0 0 auto;
    accent-color: var(--navy);
}

.enquiry-consent > a,
.enquiry-consent .field-error {
    margin-left: 29px;
}

.enquiry-consent > a,
.enquiry-errors a,
.enquiry-receipt p a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.enquiry-consent > a {
    display: inline-block;
    margin-top: 4px;
    color: #185d81;
}

.honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
}

.form-submit:disabled {
    opacity: .65;
    transform: none;
}

.enquiry-feedback {
    margin-top: 20px;
    padding: 17px 19px;
    border: 1px solid #c2d6e4;
    border-left: 3px solid #007eae;
    background: #edf6fb;
    color: #283e53;
    font-size: 14px;
}

.enquiry-feedback h3 {
    margin-bottom: 8px;
    font-size: 27px;
}

.enquiry-errors {
    border-color: #e4b7b2;
    border-left-color: #a62f22;
    background: #fff6f4;
    color: #722216;
}

.enquiry-errors ul {
    margin: 0;
    padding-left: 18px;
}

.enquiry-draft-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-block: 14px 10px;
}

.enquiry-draft-actions .button {
    gap: 9px;
    min-height: 43px;
    padding: 10px 13px;
    white-space: normal;
}

.enquiry-feedback[hidden],
.enquiry-draft-actions [hidden],
#copy-status:empty {
    display: none;
}

.enquiry-draft summary {
    width: fit-content;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#prepared-brief {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid #bccbd8;
    border-radius: 3px;
    font-size: 14px;
}

.receipt-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #e3f6ed;
    color: #246349;
}

.enquiry-receipt p {
    max-width: 430px;
    margin-block: 14px 23px;
    color: #43566a;
}

.enquiry-receipt .text-link {
    margin: 12px 0 0 13px;
}

.contact-info {
    border: 1px solid #38506a;
    border-top: 3px solid var(--blue);
    background: #13243a;
    color: #fff;
}

.contact-info > p {
    margin-top: 10px;
    color: #d3dfeb;
    font-size: 15px;
    line-height: 1.55;
}

.contact-channels {
    margin: 23px 0 0;
    padding: 0;
    list-style: none;
}

.contact-channels a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid #516b82;
}

.contact-channels a:hover strong {
    color: #8bdaf6;
}

.contact-channel-icon {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    border-radius: 4px;
    background: #263d56;
    color: #8bdaf6;
}

.contact-channel-icon .icon,
.channel-arrow {
    width: 19px;
    height: 19px;
}

.channel-arrow {
    color: #8bdaf6;
}

.contact-channels small,
.contact-address span {
    display: block;
    color: #c7d5e4;
    font-size: 13px;
}

.contact-channels strong {
    display: block;
    font-size: clamp(16px, 1.45vw, 21px);
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.contact-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #516b82;
}

.contact-address .icon {
    width: 21px;
    height: 21px;
    color: #8bdaf6;
}

@media (max-width: 800px) {
    .contact-hero {
        --contact-photo: url(../img/company-field-assurance-768.webp);
    }

    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .contact-hero h1 {
        font-size: clamp(47px, 10.3vw, 58px);
    }

    .enquiry-panel,
    .contact-info {
        padding: 21px 17px;
    }

    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-submit {
        width: 100%;
        justify-content: space-between;
    }

    .enquiry-receipt .text-link {
        margin-left: 0;
    }
}
