/* Contact-only styles. Inter is supplied by the parent Studio font handle. */
.swyft-studio .s2-contact-block,
.swyft-studio .s2-contact-form,
.swyft-studio .s2-contact-form * {
    box-sizing: border-box;
}

.swyft-studio .s2-contact-block {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    color: #15334a;
    font-family: Inter, system-ui, sans-serif;
    overflow-wrap: anywhere;
}

.swyft-studio .s2-contact-heading {
    margin: 0 0 1.5rem;
    color: #102b40;
    font-family: Inter, system-ui, sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.swyft-studio .s2-contact-form {
    display: grid;
    gap: 1.25rem;
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: clamp(1rem, 4vw, 2rem);
    border: 1px solid #b9dbe9;
    border-top: 3px solid #12bfe3;
    border-radius: 1rem;
    background: #f5fbff;
    font: 400 1rem/1.6 Inter, system-ui, sans-serif;
}

.swyft-studio .s2-contact-field {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.swyft-studio .s2-contact-field label {
    display: block;
    margin: 0;
    color: #15334a;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.swyft-studio .s2-contact-form .s2-contact-input {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 0.75rem;
    border: 1px solid #708a9e;
    border-radius: 0.5rem;
    background: #fff;
    color: #102b40;
    box-shadow: none;
    font: 400 16px/1.6 Inter, system-ui, sans-serif;
}

.swyft-studio .s2-contact-form textarea.s2-contact-input {
    min-height: 160px;
    resize: vertical;
}

.swyft-studio .s2-contact-form .s2-contact-input[readonly] {
    background: #edf4f8;
}

.swyft-studio .s2-contact-form .s2-contact-input[aria-invalid="true"] {
    border-color: #a32222;
    border-width: 2px;
}

.swyft-studio .s2-contact-form .s2-contact-submit {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 0.85rem 1rem;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    background: #0065bd;
    color: #fff;
    font: 650 1rem/1.5 Inter, system-ui, sans-serif;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.swyft-studio .s2-contact-form .s2-contact-submit:hover:not(:disabled) {
    background: #004d91;
}

.swyft-studio .s2-contact-form .s2-contact-submit:disabled {
    background: #45667e;
    color: #fff;
    cursor: not-allowed;
}

.swyft-studio .s2-contact-form .s2-contact-input:focus,
.swyft-studio .s2-contact-form .s2-contact-submit:focus-visible,
.swyft-studio .s2-contact-form a:focus-visible {
    outline: 3px solid #0065bd;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #c8f5ff;
}

.swyft-studio .s2-contact-field-error {
    color: #942020;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.swyft-studio .s2-contact-feedback {
    min-width: 0;
    margin: 0;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.swyft-studio .s2-contact-feedback:empty,
.swyft-studio .s2-contact-captcha:empty,
.swyft-studio .s2-contact-form [hidden] {
    display: none;
}

.swyft-studio .s2-contact-feedback[data-state="error"] {
    padding: 0.75rem;
    border-left: 3px solid #a32222;
    background: #fff2f2;
    color: #942020;
}

.swyft-studio .s2-contact-feedback[data-state="success"] {
    padding: 0.75rem;
    border-left: 3px solid #08734e;
    background: #edfbf4;
    color: #075739;
}

.swyft-studio .s2-contact-startup,
.swyft-studio .s2-contact-noscript,
.swyft-studio .s2-contact-alternative {
    min-width: 0;
    margin: 0;
    color: #37546a;
    font-size: 1rem;
    line-height: 1.6;
}

.swyft-studio .s2-contact-form a {
    color: #0065bd;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    overflow-wrap: anywhere;
}

.swyft-studio .s2-contact-captcha {
    min-width: 0;
    max-width: 100%;
}

/* Kept in FormData, but not in the keyboard/accessibility flow or page width. */
.swyft-studio .s2-contact-form .s2-contact-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    pointer-events: none;
}

/* ==========================================================================
   MID-PAGE CONTACT FORM
   Injected between content blocks by inc/studio-midform.php. The editorial
   layout already constrains width, so only the landing variant adds a shell.
   ========================================================================== */

.swyft-studio .s2-midform {
    margin-block: 3.5rem 0;
    padding-block: 2.5rem 0;
    border-top: 1px solid #d3e3ee;
}

/* On the studio landing template the section spans the page, so it carries a
   tinted band and its own inner shell. */
.swyft-studio .s2-midform--band {
    margin-block: 4.5rem 0;
    padding-block: 3.5rem;
    border-top: 0;
    background: linear-gradient(180deg, #f2f8fc 0%, #e9f2f8 100%);
}

.swyft-studio .s2-midform--band .s2-contact-block {
    max-width: 720px;
    margin-inline: auto;
}

@media (max-width: 720px) {
    .swyft-studio .s2-midform {
        margin-block: 2.5rem 0;
        padding-block: 2rem 0;
    }
    .swyft-studio .s2-midform--band {
        margin-block: 3rem 0;
        padding-block: 2.5rem;
    }
}

/* The print sheet hides other calls to action; keep this consistent. */
@media print {
    .swyft-studio .s2-midform { display: none !important; }
}
