/* Contact page only. Configure surface: introduction and details left, form panel right.
   Loaded on the mp_contact_page handle, after mp-inner.css. Selectors stay on
   #html-body.mp-contact-page so the homepage form keeps its own rules. */

#html-body.mp-contact-page,
#html-body.mp-contact-page .page-main,
#html-body.mp-contact-page .columns,
#html-body.mp-contact-page .column.main {
    background: var(--mp-wash);
    color: var(--mp-ink);
}

#html-body.mp-contact-page :is(.page-main, .columns, .column.main) {
    display: block;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
}

#html-body.mp-contact-page .mp-in-hero.mp-in-contact-hero {
    background: var(--mp-wash);
    color: var(--mp-ink);
}

#html-body.mp-contact-page .mp-in-contact-hero > [data-element="inner"] {
    width: min(100%, 1280px);
    margin-right: auto !important;
    margin-left: auto !important;
    padding: 48px 48px 40px !important;
    box-sizing: border-box;
}

#html-body.mp-contact-page .mp-in-contact-hero .mp-in-split > .pagebuilder-column-line {
    display: grid !important;
    grid-template-columns: minmax(0, 44fr) minmax(0, 56fr) !important;
    gap: 40px 48px;
    align-items: start;
    width: 100% !important;
}

#html-body.mp-contact-page .mp-in-contact-hero .pagebuilder-column {
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    flex: none !important;
    align-self: start !important;
}

#html-body.mp-contact-page .mp-in-hero.mp-in-contact-hero :is(h1, p, li) {
    color: var(--mp-ink);
}

#html-body.mp-contact-page .mp-contact-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    min-width: 0;
}

#html-body.mp-contact-page .mp-contact-copy > [data-content-type] {
    display: block !important;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

#html-body.mp-contact-page .mp-contact-copy > :has(.mp-eyebrow) { order: 1; }
#html-body.mp-contact-page .mp-contact-copy > h1 { order: 2; }
#html-body.mp-contact-page .mp-contact-copy > [data-content-type="text"]:not(.mp-direct-contact):not(:has(.mp-in-micro)):not(:has(.mp-contact-place)):not(:has(.mp-eyebrow)) { order: 3; }
#html-body.mp-contact-page .mp-contact-copy > :has(.mp-in-micro) { order: 6; }
#html-body.mp-contact-page .mp-contact-copy > [data-content-type="buttons"] { order: 7; align-self: flex-start; width: auto; }
#html-body.mp-contact-page .mp-contact-copy > .mp-direct-contact { order: 4; }
#html-body.mp-contact-page .mp-contact-copy > :has(.mp-contact-place) { order: 5; }

#html-body.mp-contact-page .mp-in-contact-hero .mp-contact-copy .mp-eyebrow {
    margin: 0 0 8px;
    color: var(--mp-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

#html-body.mp-contact-page .mp-in-hero.mp-in-contact-hero h1 {
    max-width: 16em;
    margin: 0;
    color: var(--mp-navy);
    font-size: 42px;
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

#html-body.mp-contact-page .mp-contact-copy > [data-content-type="text"]:not(.mp-direct-contact):not(:has(.mp-in-micro)):not(:has(.mp-contact-place)):not(:has(.mp-eyebrow)) {
    margin-top: 12px !important;
}

#html-body.mp-contact-page .mp-contact-copy > [data-content-type="text"]:not(.mp-direct-contact):not(:has(.mp-in-micro)):not(:has(.mp-contact-place)):not(:has(.mp-eyebrow)) p {
    max-width: 38em;
    margin: 0;
    color: var(--mp-ink);
    font-size: 17px;
    line-height: 1.6;
}

#html-body.mp-contact-page .mp-contact-copy > :has(.mp-in-micro) {
    margin-top: 20px !important;
}

#html-body.mp-contact-page .mp-in-hero.mp-in-contact-hero .mp-in-micro {
    margin: 0;
    color: var(--mp-soft);
    font-size: 15px;
    font-weight: 550;
    letter-spacing: 0;
    line-height: 1.5;
    text-transform: none;
}

#html-body.mp-contact-page .mp-contact-copy > [data-content-type="buttons"] {
    margin-top: 8px;
}

#html-body.mp-contact-page .mp-in-contact-hero .mp-booking-trigger > a.pagebuilder-button-primary {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid #c9cfdb;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    color: var(--mp-navy);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
}

#html-body.mp-contact-page .mp-contact-copy > .mp-direct-contact {
    margin-top: 28px !important;
    padding-top: 20px !important;
    border-top: 1px solid var(--mp-line) !important;
}

#html-body.mp-contact-page .mp-direct-contact p {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin: 0;
}

#html-body.mp-contact-page .mp-in-contact-hero .mp-contact-copy .mp-direct-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--mp-accent);
    font-size: 16px;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#html-body.mp-contact-page .mp-contact-copy > :has(.mp-contact-place) {
    margin-top: 4px !important;
}

#html-body.mp-contact-page .mp-in-hero.mp-in-contact-hero .mp-contact-place {
    max-width: 28rem;
    margin: 0;
    color: var(--mp-soft);
    font-size: 16px;
    line-height: 1.6;
}

#html-body.mp-contact-page .mp-in-contact-hero .mp-contact-copy .mp-contact-place a {
    color: var(--mp-accent);
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#html-body.mp-contact-page #mp-contact {
    scroll-margin-top: 24px;
}

#html-body.mp-contact-page .mp-contact-form {
    min-width: 0;
}

#html-body.mp-contact-page .mp-contact-form > [data-content-type] {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

#html-body.mp-contact-page .mp-in-contact-hero .hyva-dev-contact {
    margin: 0;
    padding: 32px;
    border: 1px solid var(--mp-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    color: var(--mp-ink);
}

#html-body.mp-contact-page .hyva-dev-contact fieldset {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
    min-inline-size: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

#html-body.mp-contact-page .hyva-dev-contact .mp-field {
    display: block;
    min-width: 0;
    margin: 0;
}

#html-body.mp-contact-page .hyva-dev-contact .mp-field span {
    display: block;
    margin: 0 0 8px;
    color: var(--mp-soft);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

#html-body.mp-contact-page .hyva-dev-contact :is(.mp-input, select, textarea) {
    box-sizing: border-box;
    width: 100%;
    height: 46px;
    min-height: 46px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--mp-line);
    border-radius: 8px;
    background: #fff;
    color: var(--mp-ink);
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
}

#html-body.mp-contact-page .hyva-dev-contact textarea.mp-input {
    height: auto;
    min-height: 120px;
    padding: 12px;
    resize: vertical;
}

#html-body.mp-contact-page .hyva-dev-contact :is(.mp-input, select, textarea, .mp-button):focus-visible {
    outline: 3px solid var(--mp-accent);
    outline-offset: 2px;
}

#html-body.mp-contact-page .hyva-dev-contact .mp-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

#html-body.mp-contact-page .hyva-dev-contact .mp-button {
    width: 100%;
    min-height: 48px;
    margin-top: 20px;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    background: var(--mp-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 650;
}

#html-body.mp-contact-page .mp-in-contact-hero .hyva-dev-contact p.prose,
#html-body.mp-contact-page .mp-in-contact-hero .hyva-dev-contact p.prose em {
    margin: 12px 0 0;
    color: var(--mp-soft);
    font-size: 14px;
    font-style: normal !important;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
}

#html-body.mp-contact-page .mp-in-contact-hero .hyva-dev-contact p.prose a {
    color: var(--mp-accent);
    font-style: normal;
    text-decoration: underline;
    text-underline-offset: 2px;
}

#html-body.mp-contact-page .mp-in-contact-hero .mp-form-note {
    margin: 12px 0 0;
    color: var(--mp-soft);
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

#html-body.mp-contact-page .mp-in-contact-hero .mp-contact-form .mp-form-note a {
    color: var(--mp-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

#html-body.mp-contact-page .mp-contact-privacy {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 48px;
    background: var(--mp-wash);
}

#html-body.mp-contact-page .mp-contact-privacy > [data-element="inner"] {
    width: min(100%, 1280px);
    margin-right: auto !important;
    margin-left: auto !important;
    padding: 8px 48px 0 !important;
    box-sizing: border-box;
}

#html-body.mp-contact-page .mp-contact-privacy details {
    border-top: 1px solid var(--mp-line);
    border-bottom: 1px solid var(--mp-line);
}

#html-body.mp-contact-page .mp-contact-privacy summary {
    display: flex;
    align-items: center;
    min-height: 48px;
    color: var(--mp-ink);
    font-size: 20px;
    font-weight: 650;
    line-height: 1.3;
    cursor: pointer;
}

#html-body.mp-contact-page .mp-contact-privacy p {
    max-width: 68ch;
    margin: 0 0 16px;
    color: var(--mp-soft);
    font-size: 16px;
    line-height: 1.6;
}

@media (min-width: 1024px) {
    #html-body.mp-contact-page .hyva-dev-contact fieldset {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 16px;
    }

    #html-body.mp-contact-page .hyva-dev-contact .mp-field[for="inquiry_type"],
    #html-body.mp-contact-page .hyva-dev-contact .mp-field[for="comment"] {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1023px) {
    #html-body.mp-contact-page .mp-in-contact-hero > [data-element="inner"] {
        padding: 32px 24px 36px !important;
    }

    #html-body.mp-contact-page .mp-in-contact-hero .mp-in-split > .pagebuilder-column-line {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 28px;
    }

    #html-body.mp-contact-page .mp-contact-privacy > [data-element="inner"] {
        padding: 8px 24px 0 !important;
    }
}

@media (max-width: 767px) {
    #html-body.mp-contact-page .mp-in-contact-hero > [data-element="inner"] {
        padding: 28px 20px 32px !important;
    }

    #html-body.mp-contact-page .mp-in-hero.mp-in-contact-hero h1 {
        font-size: 34px;
    }

    #html-body.mp-contact-page .mp-in-contact-hero .hyva-dev-contact {
        padding: 20px;
    }

    #html-body.mp-contact-page .mp-contact-privacy {
        padding-bottom: 32px;
    }

    #html-body.mp-contact-page .mp-contact-privacy > [data-element="inner"] {
        padding: 4px 20px 0 !important;
    }

    #html-body.mp-contact-page .mp-contact-privacy summary {
        font-size: 18px;
    }
}

/* Reveal the existing native form legend; content remains Admin/native owned. */
#html-body.mp-contact-page .hyva-dev-contact > fieldset > legend.mp-sr {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 24px;
    padding: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    color: var(--mp-navy);
    font-size: 22px;
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -.02em;
}
