/* Contact page heading and explanatory copy. */
.page-hero {
    align-items: center;
    min-height: 0;
    padding-block: 24px 36px;
}

.page-hero h1 {
    max-width: 760px;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.12;
    letter-spacing: normal;
}

.page-hero > p {
    max-width: 560px;
    color: #454d44;
    font-size: 16px;
    line-height: 1.7;
}

/* Contact methods and response details use simple, readable panels. */
.contact-page {
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: stretch;
    padding-block: 64px;
}

.contact-card {
    width: 100%;
    max-width: none;
    padding: clamp(22px, 3vw, 36px);
    border: 1px solid #e1e7df;
    border-radius: 14px;
    background: #f7f8f5;
}

.contact-card h2,
.contact-note h2 {
    margin: 12px 0 22px;
    font-family: var(--sans);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.2;
}

.contact-method {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
    border-top: 1px solid #dce2da;
}

.contact-method span {
    color: #536253;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
}

.contact-method b {
    overflow-wrap: anywhere;
    font-size: 16px;
    font-weight: 700;
}

.contact-card .button {
    margin-top: 22px;
}

.contact-note {
    min-height: 100%;
    justify-content: flex-start;
    padding: clamp(22px, 3vw, 36px);
    border: 1px solid #e1e7df;
    border-radius: 14px;
    background: #f4f6f2;
}

/* Contact enquiry form. */
.contact-form-card {
    min-width: 0;
    padding: clamp(22px, 3vw, 36px);
    border: 1px solid #e1e7df;
    border-radius: 14px;
    background: #fff;
}

.contact-form-card h2 {
    margin: 12px 0 22px;
    font-family: var(--sans);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.2;
}

.contact-note {
    grid-column: 1 / -1;
}

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

.contact-form-field {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.contact-form-field label {
    color: #34483a;
    font-size: 15px;
    font-weight: 700;
}

.contact-form-field input,
.contact-form-field textarea {
    width: 100%;
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid #cbd5ca;
    border-radius: 8px;
    background: #fff;
    color: #26342a;
    font: inherit;
    font-size: 16px;
}

.contact-form-field textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
    border-color: #315341;
    outline: 3px solid #3153412b;
}

.contact-form-message {
    grid-column: 1 / -1;
}

.contact-form .button {
    margin-top: 20px;
}

.contact-field-error,
.contact-form-error {
    color: #a32727;
    font-size: 14px;
}

.contact-form-error,
.contact-form-success {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 15px;
}

.contact-form-error {
    background: #fff0ef;
}

.contact-form-success {
    background: #edf5ed;
    color: #294b32;
}

.contact-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.contact-note-mark {
    color: var(--green);
    font-family: var(--sans);
    font-size: 28px;
    font-weight: 800;
}

.contact-note h2 {
    margin-top: 20px;
}

.contact-note p {
    max-width: none;
    color: #454d44;
    font-size: 16px;
    font-style: normal;
    line-height: 1.75;
}

/* Keep the contact panels side by side where there is room. */
@media (max-width: 700px) {
    .page-hero {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding-block: 18px 28px;
    }

    .contact-page {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-block: 36px;
    }

    .contact-note {
        grid-column: auto;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .contact-form-message {
        grid-column: auto;
    }
}
