/* Inquiry: steps, contact form, summary card. */
@layer pages {
    .chead {
        padding: clamp(28px, 3.4vw, 44px) 0 clamp(24px, 2.6vw, 34px);
        .crumbs {
            margin-bottom: 14px;
        }
        .phead-g {
            align-items: center;
        }
    }
    .form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 22px 20px;
        .full {
            grid-column: 1/-1;
        }
    }
    .fld {
        & label {
            display: block;
            font-size: 0.875rem;
            font-weight: 600;
            margin-bottom: 8px;
        }
        & label i {
            font-style: normal;
            color: var(--soft);
            font-weight: 400;
        }
        & input,
        & select,
        & textarea,
        .kzs-btn {
            width: 100%;
            border: 1px solid var(--field);
            border-radius: 2px;
            padding: 14px;
            background: #fff;
            font-size: 1rem;
            outline: 0;
            transition:
                border-color var(--t1) var(--ease),
                box-shadow var(--t1) var(--ease);
        }
        & select {
            appearance: none;
            -webkit-appearance: none;
            padding-right: 44px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23212121' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 16px center;
            background-size: 11px 7px;
        }
        /* The site's dropdown (chrome/select.js) in place of the select. */
        .kzs {
            display: flex;
        }
        .kzs-btn {
            padding-right: 16px;
        }
        & input:focus,
        & select:focus,
        & textarea:focus,
        .kzs-btn:focus,
        .kzs-btn[aria-expanded='true'] {
            border-color: var(--ink);
            box-shadow: 0 0 0 3px rgba(33, 33, 33, 0.1);
        }
        & textarea {
            min-height: 130px;
            max-height: 360px;
            /* Grows with its text; no resize grip. */
            resize: none;
            field-sizing: content;
        }
        &.err input,
        &.err select,
        &.err textarea,
        &.err .kzs-btn {
            border-color: var(--error);
        }
        .em {
            font-size: 0.84375rem;
            color: var(--error);
            margin-top: 6px;
            display: none;
        }
        &.err .em {
            display: block;
        }
    }
    .consent {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        font-size: 0.90625rem;
        cursor: pointer;
        color: var(--soft);
        & a {
            color: var(--ink);
            border-bottom: 1px solid currentColor;
        }
        & input {
            appearance: none;
            -webkit-appearance: none;
            display: grid;
            place-items: center;
            flex: none;
            width: 17px;
            height: 17px;
            margin: 3px 0 0;
            border: 1px solid var(--ink);
            border-radius: 2px;
            background: #fff;
            cursor: pointer;
            transition:
                background var(--t1) var(--ease),
                border-color var(--t1) var(--ease);
        }
        & input:checked {
            background: var(--graphite);
            border-color: var(--graphite);
        }
        /* The tick fades with the box. */
        & input::after {
            content: '';
            width: 8px;
            height: 4px;
            border: solid #fff;
            border-width: 0 0 1.5px 1.5px;
            transform: rotate(-45deg) translate(1px, -1px);
            opacity: 0;
            transition: opacity var(--t1) var(--ease);
        }
        & input:checked::after {
            opacity: 1;
        }
    }
    .consent.err input,
    .fld.err .consent input {
        border-color: var(--error);
    }
    @media (max-width: 700px) {
        .form {
            grid-template-columns: 1fr;
        }
    }
    .isteps {
        list-style: none;
        display: flex;
        gap: 6px;
        justify-self: end;
        align-items: center;
        flex-wrap: wrap;
        & li {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.875rem;
            color: var(--soft-d);
            font-weight: 500;
        }
        & li + li::before {
            content: '';
            width: 28px;
            height: 1px;
            background: rgba(255, 255, 255, 0.25);
            margin-right: 6px;
        }
        & li a {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        & li a:hover {
            color: #fff;
        }
        & span {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            display: grid;
            place-items: center;
            font-size: 0.78125rem;
            font-weight: 700;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }
        & li.done span {
            background: var(--mint);
            color: var(--graphite);
            border-color: var(--mint);
        }
        & li.on {
            color: #fff;
        }
        & li.on span {
            background: var(--orange);
            color: var(--graphite);
            border-color: var(--orange);
        }
    }
    .ichk {
        display: grid;
        grid-template-columns: 1fr 400px;
        gap: 24px;
        align-items: start;
        padding-top: 40px;
        padding-bottom: 120px;
    }
    .icard {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 6px;
        padding: 8px clamp(22px, 3vw, 40px);
    }
    .igrp {
        border: 0;
        padding: 28px 0;
        margin: 0;
        + .igrp {
            border-top: 1px solid var(--line);
        }
        & legend {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1.125rem;
            font-weight: 600;
            letter-spacing: -0.01em;
            padding: 0;
            margin-bottom: 18px;
            float: left;
            width: 100%;
        }
        & legend + * {
            clear: both;
        }
        & legend span {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: var(--graphite);
            color: #fff;
            display: grid;
            place-items: center;
            font-size: 0.8125rem;
            font-weight: 700;
        }
        & legend i {
            font-style: normal;
            font-weight: 400;
            font-size: 0.875rem;
            color: var(--soft);
        }
    }
    .icard {
        .form {
            gap: 18px 16px;
        }
        .fld input,
        .fld select,
        .fld textarea,
        .fld .kzs-btn {
            border-color: #d3dada;
            background: var(--paper);
            border-radius: 4px;
        }
        .fld input:focus,
        .fld select:focus,
        .fld textarea:focus,
        .fld .kzs-btn:focus,
        .fld .kzs-btn[aria-expanded='true'] {
            background: #fff;
        }
        .fld textarea {
            min-height: 110px;
        }
    }
    .ipills {
        display: grid;
        /* One column per buyer type. */
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        gap: 8px;
    }
    .ipills,
    .iwhen {
        position: relative;
    }
    /* Keeps the hidden radios from widening the page on phones. */
    .ipills input,
    .iwhen input {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        pointer-events: none;
    }
    .ipills {
        & label {
            display: flex;
            flex-direction: column;
            gap: 2px;
            padding: 14px 14px 13px;
            border: 1.5px solid #d3dada;
            border-radius: 6px;
            cursor: pointer;
            background: var(--paper);
            transition:
                border-color var(--t1) var(--ease),
                background var(--t1) var(--ease),
                box-shadow var(--t1) var(--ease);
            position: relative;
        }
        & label b {
            font-weight: 600;
            font-size: 0.9375rem;
        }
        & label small {
            font-size: 0.78125rem;
            color: var(--soft);
            line-height: 1.3;
        }
        & label::after {
            content: '';
            position: absolute;
            right: 12px;
            top: 14px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            border: 1.5px solid var(--field);
            background: #fff;
        }
        & input:checked + label {
            border-color: var(--graphite);
            background: #fff;
            box-shadow: 0 8px 20px -14px rgba(0, 0, 0, 0.4);
        }
        & input:checked + label::after {
            border: 5px solid var(--orange);
        }
    }
    .ipills input:focus-visible + label,
    .iwhen input:focus-visible + label {
        outline: 2px solid var(--orange);
        outline-offset: 2px;
    }
    .iwhen {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        & label {
            position: relative;
            margin: 0;
            height: 40px;
            padding: 0 16px;
            display: inline-flex;
            align-items: center;
            border: 1.5px solid #d3dada;
            border-radius: 20px;
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            background: var(--paper);
            transition:
                background var(--t1) var(--ease),
                color var(--t1) var(--ease),
                border-color var(--t1) var(--ease);
        }
        & input:checked + label {
            background: var(--graphite);
            color: #fff;
            border-color: var(--graphite);
        }
    }
    .isum {
        position: sticky;
        top: calc(92px + var(--kz-adminbar));
        background: var(--graphite);
        color: #fff;
        border-radius: 6px;
        padding: 26px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        box-shadow: 0 40px 70px -35px rgba(0, 0, 0, 0.55);
    }
    .isum-h {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        & a {
            font-size: 0.875rem;
            color: var(--soft-d);
            border-bottom: 1px solid currentColor;
        }
        & a:hover {
            color: #fff;
        }
    }
    .isum {
        > ul:not(.isum-p) {
            list-style: none;
            display: grid;
            gap: 12px;
            max-height: 280px;
            overflow: auto;
            padding-top: 4px;
        }
        & li {
            display: grid;
            grid-template-columns: 56px 1fr;
            gap: 14px;
            align-items: center;
        }
    }
    .isum-i {
        position: relative;
        width: 56px;
        height: 56px;
        border-radius: 4px;
        background: #f1f4f4;
        & img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 4px;
        }
        & em {
            position: absolute;
            right: -7px;
            top: -7px;
            min-width: 22px;
            height: 22px;
            border-radius: 11px;
            background: var(--orange);
            color: var(--graphite);
            font-style: normal;
            font-size: 0.75rem;
            font-weight: 700;
            display: grid;
            place-items: center;
            padding: 0 5px;
            border: 2px solid var(--graphite);
        }
    }
    .isum {
        & li b {
            display: block;
            font-weight: 600;
            font-size: 0.9375rem;
        }
        & li small {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.8125rem;
            color: var(--soft-d);
        }
        & li small i {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
        }
        & li small.nt {
            font-style: italic;
        }
    }
    .isum-t {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        border-top: 1px solid var(--line-d);
        padding-top: 16px;
        & span {
            color: var(--soft-d);
        }
        & b {
            font-size: 1.375rem;
            font-weight: 600;
            text-align: right;
            line-height: 1.1;
        }
        & b small {
            display: block;
            font-size: 0.8125rem;
            font-weight: 400;
            color: var(--soft-d);
        }
    }
    .isum-p {
        list-style: none;
        display: grid;
        gap: 6px;
        font-size: 0.84375rem;
        color: #d0d3d3;
        & li {
            display: flex;
            gap: 8px;
            align-items: center;
        }
        & li::before {
            content: '';
            width: 14px;
            height: 14px;
            flex: none;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3 3 7-7' fill='none' stroke='%23CCE7D3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
                no-repeat center/contain;
        }
    }
    .isum {
        .consent {
            color: var(--soft-d);
            font-size: 0.84375rem;
            border-top: 1px solid var(--line-d);
            padding-top: 16px;
        }
        .consent a {
            color: #fff;
        }
        /* The consent error takes no room until it shows. */
        #gerr:not(.err) {
            display: none;
        }
        & * {
            scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
        }
        .consent input {
            background: transparent;
            border-color: rgba(255, 255, 255, 0.5);
        }
        .consent input:checked {
            background: var(--orange);
            border-color: var(--orange);
        }
        .consent input::after {
            border-color: var(--graphite);
        }
        .btn {
            height: 56px;
            font-size: 1rem;
        }
        #gerr .em {
            color: #ff9b8a;
        }
    }
    @media (max-width: 1000px) {
        .ichk {
            grid-template-columns: 1fr;
        }
        .isum {
            position: static;
        }
        .isteps {
            justify-self: start;
        }
    }
    @media (max-width: 700px) {
        .ipills {
            grid-auto-flow: row;
            grid-template-columns: 1fr 1fr;
            /* An odd last card spans the full row. */
            & label:last-of-type:nth-of-type(odd) {
                grid-column: 1 / -1;
            }
        }
        .icard .form {
            grid-template-columns: 1fr;
        }
    }
    .isteps li i {
        font-style: normal;
    }
    .ichk[hidden] {
        display: none;
    }
    .kz-nojs {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .ierr {
        background: #fbeceb;
        color: var(--error);
        border-radius: 4px;
        padding: 12px 16px;
        margin: 20px 0 4px;
        font-size: 0.90625rem;
    }
    .igrp legend b {
        font-weight: inherit;
    }
}
