/**
 * Route-scoped Stage A skin for the Spirit 2026 sponsorship form.
 *
 * The mount class is mandatory so this file cannot restyle another CCSTL form.
 * Numeric form/field IDs are intentionally absent because IDs differ between
 * environments and Sean will manually revise the post-evaluation schema.
 */

.ccstl-gf-skin--spirit-2026 .gform_wrapper,
.ccstl-gf-skin--spirit-2026 .gform_wrapper.gravity-theme,
.ccstl-gf-skin--spirit-2026 .gform_wrapper.gravity-theme * {
    box-sizing: border-box;
}

.ccstl-gf-skin--spirit-2026 .gform_wrapper,
.ccstl-gf-skin--spirit-2026 .gform_wrapper.gravity-theme,
.ccstl-gf-skin--spirit-2026 form,
.ccstl-gf-skin--spirit-2026 .gform_body {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ccstl-gf-skin--spirit-2026 .gform_heading,
.ccstl-gf-skin--spirit-2026 .gform_required_legend {
    display: none !important;
}

.ccstl-gf-skin--spirit-2026 .gform_fields {
    display: grid !important;
    grid-template-columns: 490px 490px !important;
    column-gap: 20px !important;
    row-gap: 20.8125px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ccstl-gf-skin--spirit-2026 .gfield {
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ccstl-gf-skin--spirit-2026 .gfield--type-name,
.ccstl-gf-skin--spirit-2026 .gfield--type-textarea {
    grid-column: 1 / -1 !important;
}

.ccstl-gf-skin--spirit-2026 .gfield--type-email {
    grid-column: 1 !important;
}

.ccstl-gf-skin--spirit-2026 .gfield--type-phone {
    grid-column: 2 !important;
}

/* Keep the real complex-field legend for assistive technology without layout. */
.ccstl-gf-skin--spirit-2026 .gfield--type-name > .gfield_label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ccstl-gf-skin--spirit-2026 .ginput_complex {
    display: grid !important;
    grid-template-columns: 490px 490px !important;
    gap: 20px !important;
    width: 100% !important;
    margin: 0 !important;
}

.ccstl-gf-skin--spirit-2026 .ginput_complex > span {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/*
 * Gravity Forms 2.10 prints the advanced Name field's Prefix and Suffix
 * containers even when the stored Stage A schema contains only First/Last.
 * Keep those framework placeholders out of both the Figma layout and the
 * accessibility tree; Sean can replace this temporary schema after review.
 */
.ccstl-gf-skin--spirit-2026 .ginput_complex > :is(.name_prefix, .name_suffix) {
    display: none !important;
}

.ccstl-gf-skin--spirit-2026 :is(.gfield_label, .ginput_complex label) {
    display: block !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-family: "lulo-one", sans-serif !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    letter-spacing: 2.4px !important;
    text-transform: none !important;
}

.ccstl-gf-skin--spirit-2026 .ginput_complex label {
    order: -1 !important;
}

/*
 * Target only the outer required-marker wrapper. Gravity Forms nests another
 * `.gfield_required` span; styling both produced the double asterisk seen in
 * the first browser comparison.
 */
.ccstl-gf-skin--spirit-2026 .gfield_label > .gfield_required {
    margin: 0 !important;
    color: inherit !important;
    font-size: 0 !important;
    line-height: 1.3 !important;
}

.ccstl-gf-skin--spirit-2026 .gfield_label > .gfield_required::before {
    content: "*";
    font-family: "lulo-one", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
}

.ccstl-gf-skin--spirit-2026 .gfield_label > .gfield_required > .gfield_required {
    display: none !important;
}

.ccstl-gf-skin--spirit-2026 :is(
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="phone"],
    textarea
) {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    border: 1.5px solid #ffffff !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-family: "cochin-lt-pro", sans-serif !important;
    font-size: 18px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    appearance: none !important;
}

.ccstl-gf-skin--spirit-2026 :is(
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="phone"]
) {
    height: 50px !important;
    min-height: 50px !important;
    padding: 10px 20px 7px !important;
}

.ccstl-gf-skin--spirit-2026 textarea {
    height: 250px !important;
    min-height: 250px !important;
    padding: 8px 20px 14px !important;
    resize: vertical !important;
}

.ccstl-gf-skin--spirit-2026 :is(
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="phone"],
    textarea
)::placeholder {
    color: #000000 !important;
    opacity: 1 !important;
}

.ccstl-gf-skin--spirit-2026 :is(
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="phone"],
    textarea
):focus {
    /*
     * Replace browser/extension-specific blue focus chrome with the event's
     * gold while retaining a clear keyboard and pointer focus indicator.
     */
    border-color: #b4823b !important;
    outline: 2px solid #b4823b !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}

.ccstl-gf-skin--spirit-2026 .gform_footer,
.ccstl-gf-skin--spirit-2026 .gform_page_footer {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin: 30px 0 0 !important;
    padding: 0 !important;
}

.ccstl-gf-skin--spirit-2026 :is(
    .gform_footer,
    .gform_page_footer
) :is(
    input[type="button"],
    input[type="submit"],
    button
) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 152px !important;
    min-width: 152px !important;
    height: 51px !important;
    min-height: 51px !important;
    margin: 0 !important;
    padding: 3px 14px 0 !important;
    border: 1.5px solid #b4823b !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    font-family: "lulo-one", sans-serif !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    letter-spacing: 2.8px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    /*
     * Match the page calendar button's reviewed 0.2-second interaction timing
     * while keeping this Stage A submit control visually inert.
     */
    transition:
        background-color var(--spirit-button-transition-duration, 0.2s) ease,
        border-color var(--spirit-button-transition-duration, 0.2s) ease,
        color var(--spirit-button-transition-duration, 0.2s) ease !important;
}

.ccstl-gf-skin--spirit-2026 :is(
    .gform_footer,
    .gform_page_footer
) :is(
    input[type="button"],
    input[type="submit"],
    button
):focus-visible {
    border-color: #ffffff !important;
    outline: 2px solid #ffffff !important;
    outline-offset: 5px !important;
}

.ccstl-gf-skin--spirit-2026 .gform_ajax_spinner {
    display: none !important;
}

/* These states are not part of Stage A, but remain readable if a crafted POST occurs. */
.ccstl-gf-skin--spirit-2026 :is(.gform_validation_errors, .validation_message) {
    margin: 0 0 20px !important;
    padding: 12px 14px !important;
    border: 1.5px solid #ffffff !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    font-family: "cochin-lt-pro", sans-serif !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
}

@media (max-width: 1199px) {
    .ccstl-gf-skin--spirit-2026 .gform_fields,
    .ccstl-gf-skin--spirit-2026 .ginput_complex {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 800px) {
    .ccstl-gf-skin--spirit-2026 .gform_fields,
    .ccstl-gf-skin--spirit-2026 .ginput_complex {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .ccstl-gf-skin--spirit-2026 .gfield--type-name,
    .ccstl-gf-skin--spirit-2026 .gfield--type-email,
    .ccstl-gf-skin--spirit-2026 .gfield--type-phone,
    .ccstl-gf-skin--spirit-2026 .gfield--type-textarea {
        grid-column: 1 !important;
    }

    .ccstl-gf-skin--spirit-2026 textarea {
        height: 220px !important;
        min-height: 220px !important;
    }
}

@media (max-width: 480px) {
    /*
     * Figma mobile node 197:2 is the compact form authority at 402px. The
     * 22/23px outer gutters are owned by the page mount; this skin owns the
     * centered field typography, 96px row rhythm, deep message area, and
     * full-width submit control inside that mount.
     */
    .ccstl-gf-skin--spirit-2026 .gform_fields {
        row-gap: 19.7px !important;
    }

    .ccstl-gf-skin--spirit-2026 :is(.gfield_label, .ginput_complex label) {
        margin-bottom: 12px !important;
        font-size: 11px !important;
        line-height: 1.3 !important;
        letter-spacing: 2.2px !important;
        text-align: center !important;
    }

    .ccstl-gf-skin--spirit-2026 .gfield_label > .gfield_required::before {
        font-size: 11px;
        line-height: 1.3;
    }

    .ccstl-gf-skin--spirit-2026 :is(
        input[type="text"],
        input[type="email"],
        input[type="tel"],
        input[type="phone"],
        textarea
    ) {
        font-size: 18px !important;
        line-height: 1.4 !important;
        text-align: center !important;
    }

    .ccstl-gf-skin--spirit-2026 :is(
        input[type="text"],
        input[type="email"],
        input[type="tel"],
        input[type="phone"]
    ) {
        padding: 10px 12px 7px !important;
    }

    .ccstl-gf-skin--spirit-2026 textarea {
        height: 403px !important;
        min-height: 403px !important;
        padding: 8px 12px 14px !important;
    }

    .ccstl-gf-skin--spirit-2026 .gform_footer,
    .ccstl-gf-skin--spirit-2026 .gform_page_footer {
        margin-top: 30px !important;
    }

    .ccstl-gf-skin--spirit-2026 :is(
        .gform_footer,
        .gform_page_footer
    ) :is(
        input[type="button"],
        input[type="submit"],
        button
    ) {
        width: 100% !important;
        min-width: 100% !important;
        font-size: 14px !important;
        letter-spacing: 2.8px !important;
    }
}

@media (forced-colors: active) {
    .ccstl-gf-skin--spirit-2026 :is(
        input[type="text"],
        input[type="email"],
        input[type="tel"],
        input[type="phone"],
        textarea
    ),
    .ccstl-gf-skin--spirit-2026 :is(
        .gform_footer,
        .gform_page_footer
    ) :is(
        input[type="button"],
        input[type="submit"],
        button
    ) {
        border-color: CanvasText !important;
    }
}
