/* =========================================================================
   LOCAL LOCKER — REQUEST FORM

   "Can't Find What You Need?" — the capture form and the pop-up it opens,
   a one-to-one port of the reference's RequestForm (.reqf in browse.css).

   Its own stylesheet rather than part of css/inner-pages.css, because the form
   is no longer an inner-page thing. The home page's search answers in place,
   and when it answers with nothing the same "Request it" has to open the same
   pop-up on the home page — sending a visitor to Browse Gear to retype what
   they had already typed is not an answer to their search.

   Shipping inner-pages.css to the home page to get it there was not an option:
   that sheet re-declares --ll-fs-* at :root with fixed values where style.css
   has fluid clamps, so every heading on the home page would have changed size.
   Hence this file, and hence the token block below — the same figures the
   inner sheet uses, declared on the component instead of on the document, so
   they reach the form and nothing else.
   ========================================================================= */

.ll-reqf,
.ll-reqmodal {
    /* Spacing steps (css/inner-pages.css :root). */
    --ll-s2: 6px;
    --ll-s3: 10px;
    --ll-s4: 12px;
    --ll-s5: 16px;
    --ll-s6: 20px;
    --ll-s7: 24px;
    --ll-s8: 28px;
    --ll-s9: 30px;
    --ll-s10: 40px;
    --ll-s12: 50px;

    /* Radii */
    --ll-r-panel: 8px;
    --ll-r-card: 16px;
    --ll-r-promo: 30px;
    --ll-r-full: 999px;

    /* Surfaces and rules */
    --ll-surface-inset: #111111;
    --ll-border-card: #232323;
    --ll-border-rule: rgba(255, 255, 255, 0.2);
    --ll-hairline-card: inset 0 0 0 1px var(--ll-border-card);
    --ll-hairline-accent: inset 0 0 0 1px var(--ll-red);

    /* Text roles */
    --ll-text-muted: rgba(255, 255, 255, 0.7);
    --ll-text-secondary: #8E8E93;
    --ll-good: #4ADE80;

    /*
     * The inner pages' three text steps. Declared here too because style.css
     * sets these at :root a point smaller and fluid — on the home page this
     * form would otherwise render at the home page's scale rather than its own.
     */
    --ll-fs-body: 19px;
    --ll-fs-meta: 17px;
    --ll-fs-small: 15px;

    --ll-glow-red: radial-gradient(ellipse closest-side,
            var(--ll-red) 0%, rgba(237, 28, 36, 0.38) 42%, rgba(237, 28, 36, 0) 100%);
}

/*
 * style.css border-boxes .ll-home, .ll-header and .ll-footer; inner-pages.css
 * does the same for .ll-page. The pop-up is a child of <body> on both, so it
 * sits outside every one of those and has to ask for itself.
 */
.ll-reqf,
.ll-reqf *,
.ll-reqf *::before,
.ll-reqf *::after,
.ll-reqmodal,
.ll-reqmodal *,
.ll-reqmodal *::before,
.ll-reqmodal *::after {
    box-sizing: border-box;
}

/*
 * And the font: the inner pages set it once on .ll-page for every heading and
 * control inside them. The pop-up is outside that, and the parent theme's
 * h1..h6 rule names a serif stand-in that never loads.
 */
.ll-reqf,
.ll-reqf h1,
.ll-reqf h2,
.ll-reqf h3,
.ll-reqf h4,
.ll-reqf input,
.ll-reqf select,
.ll-reqf textarea,
.ll-reqf button {
    font-family: var(--ll-font);
}

.ll-reqf {
    position: relative;
    overflow: hidden;
    padding: var(--ll-s12) var(--ll-s10) 45px;
    border-radius: var(--ll-r-promo);
    background-color: var(--ll-black);
    /* The reference's hairline: brand red mixed 14% into the card border. */
    box-shadow: inset 0 0 0 1px #3F2223;
}

.ll-reqf > * {
    position: relative;
}

.ll-reqf__glow {
    position: absolute;
    background: var(--ll-glow-red);
    pointer-events: none;
}

.ll-reqf__glow--a {
    left: -220px;
    top: -180px;
    width: 760px;
    height: 520px;
    opacity: 0.28;
}

.ll-reqf__glow--b {
    right: -240px;
    bottom: -220px;
    width: 720px;
    height: 480px;
    opacity: 0.22;
}

.ll-reqf__x {
    position: absolute;
    top: var(--ll-s6);
    right: var(--ll-s6);
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background-color: var(--ll-white);
    color: var(--ll-black);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.ll-reqf__x:hover {
    background-color: #FAFAFA;
    transform: scale(1.05);
}

.ll-reqf__hd {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ll-s4);
    margin-bottom: var(--ll-s10);
    text-align: center;
}

.ll-reqf__title {
    margin: 0;
    font-family: var(--ll-font);
    font-weight: 700;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.2px;
    color: var(--ll-white);
}

.ll-reqf__lede {
    margin: 0;
    max-width: 60ch;
    font-size: 20px;
    line-height: 1.3;
    color: var(--ll-text-muted);
}

/* Groups ------------------------------------------------------------------ */

.ll-reqf__grp {
    display: flex;
    flex-direction: column;
    gap: var(--ll-s5);
}

.ll-reqf__grp + .ll-reqf__grp {
    margin-top: var(--ll-s9);
    padding-top: var(--ll-s8);
    box-shadow: inset 0 1px 0 0 var(--ll-border-card);
}

.ll-reqf__gh {
    display: flex;
    align-items: center;
    gap: var(--ll-s3);
}

.ll-reqf__gn {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--ll-surface-inset);
    box-shadow: var(--ll-hairline-accent);
    font-size: var(--ll-fs-small);
    font-weight: 700;
    color: var(--ll-red);
}

.ll-reqf__gt {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--ll-white);
}

/* Fields ------------------------------------------------------------------ */

.ll-reqf__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ll-s6) var(--ll-s8);
}

.ll-reqf__f {
    display: flex;
    flex-direction: column;
    gap: var(--ll-s3);
    min-width: 0;
}

.ll-reqf__f--full {
    grid-column: 1 / -1;
}

.ll-reqf__f > label {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--ll-white);
}

.ll-reqf__f > label i {
    font-style: normal;
    color: var(--ll-red);
}

.ll-reqf__f > label em {
    margin-left: 6px;
    font-style: normal;
    font-weight: 400;
    font-size: var(--ll-fs-small);
    color: var(--ll-text-secondary);
}

.ll-reqf__c {
    position: relative;
}

.ll-reqf__t,
.ll-reqf__sel {
    width: 100%;
    box-sizing: border-box;
    height: 60px;
    padding: 0 var(--ll-s7);
    border: 0;
    border-radius: var(--ll-r-full);
    background: transparent;
    box-shadow: inset 0 0 0 1px #3A3A3A;
    color: var(--ll-white);
    font-family: var(--ll-font);
    font-size: 20px;
    outline: none;
    transition: box-shadow 0.25s ease;
}

.ll-reqf__t::placeholder {
    color: var(--ll-text-secondary);
    opacity: 1;
}

.ll-reqf__t:hover,
.ll-reqf__sel:hover {
    box-shadow: inset 0 0 0 1px var(--ll-border-rule);
}

.ll-reqf__t:focus,
.ll-reqf__sel:focus-visible {
    box-shadow: inset 0 0 0 1px var(--ll-red), 0 0 0 3px rgba(237, 28, 36, 0.10);
}

.ll-reqf__f.is-bad .ll-reqf__t,
.ll-reqf__f.is-bad .ll-reqf__sel {
    box-shadow: inset 0 0 0 1px var(--ll-red);
}

.ll-reqf__err {
    margin: 0;
    font-size: var(--ll-fs-small);
    line-height: 1.2;
    color: var(--ll-red);
}

.ll-reqf__err[hidden] {
    display: none;
}

.ll-reqf__ta {
    height: auto;
    min-height: 60px;
    max-height: 200px;
    padding: 18px var(--ll-s7);
    border-radius: var(--ll-r-promo);
    line-height: 1.5;
    resize: none;
    overflow-y: auto;
}

.ll-reqf__c--icon .ll-reqf__t {
    padding-left: calc(var(--ll-s7) + 24px);
}

.ll-reqf__ico {
    position: absolute;
    left: var(--ll-s6);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    color: var(--ll-red);
    pointer-events: none;
}

.ll-reqf__c--money .ll-reqf__t {
    padding-left: calc(var(--ll-s7) + 16px);
}

.ll-reqf__cur {
    position: absolute;
    left: var(--ll-s7);
    top: 50%;
    transform: translateY(-50%);
    color: var(--ll-text-secondary);
    font-size: 20px;
    pointer-events: none;
}

.ll-reqf__t[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.ll-reqf__t[type="number"]::-webkit-outer-spin-button,
.ll-reqf__t[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ll-reqf__date {
    color-scheme: dark;
    cursor: pointer;
}

.ll-reqf__date::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.85;
    filter: invert(24%) sepia(93%) saturate(6100%) hue-rotate(352deg) brightness(96%) contrast(105%);
}

/* Category dropdown ------------------------------------------------------- */

.ll-reqf__sel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ll-s4);
    text-align: left;
    cursor: pointer;
}

.ll-reqf__sel.is-ph {
    color: var(--ll-text-secondary);
}

.ll-reqf__chev {
    display: flex;
    flex: none;
    color: var(--ll-red);
    transition: transform 0.25s ease;
}

.ll-reqf__sel[aria-expanded="true"] .ll-reqf__chev {
    transform: rotate(180deg);
}

.ll-reqf__dd {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: var(--ll-s3);
    border-radius: var(--ll-r-card);
    background-color: var(--ll-surface-inset);
    box-shadow: var(--ll-hairline-card), 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* City type-ahead ---------------------------------------------------------- */

/*
 * The panel of matching US places under the city field. Same panel as the
 * category dropdown above, without the search box inside it — here the field
 * itself is the search box.
 */
.ll-reqf__c--ac {
    position: relative;
}

.ll-reqf__ac {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    max-height: 264px;
    padding: var(--ll-s3);
    overflow-y: auto;
    border-radius: var(--ll-r-card);
    background-color: var(--ll-surface-inset);
    box-shadow: var(--ll-hairline-card), 0 24px 60px rgba(0, 0, 0, 0.55);
}

.ll-reqf__ac[hidden] {
    display: none;
}

.ll-reqf__ac-op {
    display: block;
    width: 100%;
    padding: var(--ll-s3) var(--ll-s4);
    border: 0;
    border-radius: var(--ll-r-panel);
    background: none;
    font-family: var(--ll-font);
    font-size: var(--ll-fs-meta);
    line-height: 1.3;
    color: var(--ll-white);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ll-reqf__ac-op:hover,
.ll-reqf__ac-op.is-on {
    background-color: rgba(255, 255, 255, 0.08);
}

.ll-reqf__dd[hidden] {
    display: none;
}

.ll-reqf__dd-s {
    position: relative;
    margin-bottom: var(--ll-s2);
}

.ll-reqf__dd-s input {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    padding: 0 var(--ll-s5) 0 40px;
    border: 0;
    border-radius: var(--ll-r-full);
    background-color: var(--ll-black);
    box-shadow: inset 0 0 0 1px #3A3A3A;
    color: var(--ll-white);
    font-family: var(--ll-font);
    font-size: var(--ll-fs-meta);
    outline: none;
}

.ll-reqf__dd-s input:focus {
    box-shadow: inset 0 0 0 1px var(--ll-red);
}

.ll-reqf__dd-s input::placeholder {
    color: var(--ll-text-secondary);
    opacity: 1;
}

.ll-reqf__dd-si {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    color: var(--ll-text-secondary);
    pointer-events: none;
}

.ll-reqf__dd-l {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 264px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--ll-border-card) transparent;
}

.ll-reqf__dd-l::-webkit-scrollbar {
    width: 6px;
}

.ll-reqf__dd-l::-webkit-scrollbar-thumb {
    border-radius: var(--ll-r-full);
    background-color: var(--ll-border-card);
}

.ll-reqf__op {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ll-s3);
    width: 100%;
    min-height: 42px;
    padding: 10px var(--ll-s5);
    border: 0;
    border-radius: var(--ll-r-full);
    background: transparent;
    color: var(--ll-text-secondary);
    font-family: var(--ll-font);
    font-size: var(--ll-fs-meta);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ll-reqf__op[hidden] {
    display: none;
}

.ll-reqf__op:hover {
    background-color: var(--ll-black);
    color: var(--ll-white);
}

.ll-reqf__op.is-on {
    color: var(--ll-white);
    font-weight: 500;
}

.ll-reqf__op-t {
    display: none;
    color: var(--ll-red);
}

.ll-reqf__op.is-on .ll-reqf__op-t {
    display: flex;
}

.ll-reqf__dd-none {
    padding: var(--ll-s4) var(--ll-s5);
    font-size: var(--ll-fs-meta);
    color: var(--ll-text-secondary);
}

.ll-reqf__dd-none[hidden] {
    display: none;
}

/* "Other" reveal ----------------------------------------------------------- */

.ll-reqf__other {
    display: flex;
    flex-direction: column;
    gap: var(--ll-s2);
    margin-top: var(--ll-s2);
    padding-top: var(--ll-s3);
    box-shadow: inset 0 1px 0 0 var(--ll-border-card);
}

.ll-reqf__other[hidden] {
    display: none;
}

.ll-reqf__other > label {
    font-size: var(--ll-fs-meta);
    font-weight: 500;
    color: var(--ll-text-secondary);
}

.ll-reqf__other > label i {
    font-style: normal;
    color: var(--ll-red);
}

.ll-reqf__other.is-bad .ll-reqf__t {
    box-shadow: inset 0 0 0 1px var(--ll-red);
}

/* Checkbox ------------------------------------------------------------------ */

.ll-reqf__cb {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--ll-s4);
    margin-top: var(--ll-s8);
    font-size: 18px;
    font-weight: 500;
    color: var(--ll-white);
    cursor: pointer;
}

/*
 * Without .ll-reqf__cb as its containing block, this absolutely positioned
 * input's box was computed against .ll-reqf__in — the modal's own scrollable
 * wrapper — several levels up. Focusing it (clicking the label does) then
 * had the browser's built-in scroll-into-view aim at that miscalculated
 * position instead of this row's own, already-visible spot, jumping the
 * popup every time the checkbox toggled.
 */
.ll-reqf__cb input {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ll-reqf__box {
    display: grid;
    place-items: center;
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px var(--ll-border-rule);
    color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ll-reqf__cb input:checked + .ll-reqf__box {
    background-color: var(--ll-red);
    box-shadow: none;
    color: var(--ll-white);
}

.ll-reqf__cb input:focus-visible + .ll-reqf__box {
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.10);
}

/* Foot ---------------------------------------------------------------------- */

.ll-reqf__foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ll-s4);
    margin-top: var(--ll-s9);
}

/*
 * Wider than a normal button because it closes a long form, but no taller:
 * the 56px it used to be made it the largest button on the site.
 */
.ll-reqf__submit {
    min-width: 240px;
    justify-content: center;
}

.ll-reqf__note {
    margin: 0;
    text-align: center;
    font-size: var(--ll-fs-small);
    line-height: 1.2;
    color: var(--ll-text-secondary);
}

.ll-reqf__status {
    color: var(--ll-red);
}

form.is-busy .ll-reqf__submit {
    opacity: 0.6;
    pointer-events: none;
}

/* Sent state ----------------------------------------------------------------- */

.ll-reqf__done {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ll-s4);
    padding: var(--ll-s6) 0;
    text-align: center;
}

.ll-reqf__done .ll-reqf__lede {
    max-width: 56ch;
}

.ll-reqf__done-t {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--ll-surface-inset);
    box-shadow: var(--ll-hairline-accent);
    color: var(--ll-good);
}

.ll-reqf__ref {
    font-size: var(--ll-fs-small);
    color: var(--ll-text-secondary);
}

/* The pop-up ------------------------------------------------------------------ */

@keyframes ll-reqmodal-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ll-reqmodal {
    position: fixed;
    inset: 0;
    /*
     * Above everything, not just the header (100) and the app dialog (100):
     * the inner pages' own results toolbar sits at 800 (inner-pages.css,
     * .ll-results__head) to clear Leaflet's panes, and Leaflet's own
     * stylesheet carries controls up to 1000 — both of which otherwise
     * painted through this overlay's blur on Browse Gear's city/category
     * views, since none of them share an intervening stacking context with
     * this modal. A dialog that is open has to out-rank every one of them.
     */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--ll-s7) 0;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: ll-reqmodal-fade 0.25s ease;
}

.ll-reqmodal[hidden] {
    display: none;
}

.ll-reqmodal__shell {
    display: flex;
    margin: auto;
    max-height: 100%;
    min-height: 0;
}

.ll-reqmodal .ll-reqf {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    max-height: min(100%, 680px);
    min-height: 0;
    padding: var(--ll-s9) var(--ll-s8) var(--ll-s8);
}

.ll-reqmodal .ll-reqf__in {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: var(--ll-s3);
    scrollbar-width: thin;
    scrollbar-color: var(--ll-border-card) transparent;
}

.ll-reqmodal .ll-reqf__in::-webkit-scrollbar {
    width: 6px;
}

.ll-reqmodal .ll-reqf__in::-webkit-scrollbar-thumb {
    border-radius: var(--ll-r-full);
    background-color: var(--ll-border-card);
}

.ll-reqmodal .ll-reqf__hd {
    margin-bottom: var(--ll-s7);
}

.ll-reqmodal .ll-reqf__title {
    font-size: clamp(24px, 2.4vw, 34px);
}

.ll-reqmodal .ll-reqf__ta {
    min-height: 60px;
    padding: 16px var(--ll-s7);
}


/* =========================================================================
   Narrow widths — the reference's own breakpoints for this form
   (768 and 560 in browse.css).
   ========================================================================= */

@media (max-width: 768px) {

    .ll-reqf {
        padding: var(--ll-s10) var(--ll-s6) var(--ll-s9);
        border-radius: var(--ll-r-card);
    }

    .ll-reqf__row {
        grid-template-columns: 1fr;
    }

    .ll-reqf__hd {
        margin-bottom: var(--ll-s8);
        align-items: flex-start;
        text-align: left;
    }

    .ll-reqf__x {
        top: var(--ll-s4);
        right: var(--ll-s4);
        width: 40px;
        height: 40px;
    }

    .ll-reqmodal .ll-reqf__title {
        padding-right: 52px;
    }
}

@media (max-width: 560px) {

    .ll-reqmodal {
        padding: var(--ll-s4) 0;
    }

    .ll-reqmodal .ll-reqf {
        padding: var(--ll-s7) var(--ll-s5) var(--ll-s6);
    }

    .ll-reqf {
        padding: var(--ll-s8) var(--ll-s5) var(--ll-s8);
    }

    .ll-reqf__grp + .ll-reqf__grp {
        margin-top: var(--ll-s7);
        padding-top: var(--ll-s6);
    }

    .ll-reqf__t,
    .ll-reqf__sel {
        height: 52px;
        padding: 0 var(--ll-s5);
        font-size: var(--ll-fs-meta);
    }

    .ll-reqf__c--icon .ll-reqf__t {
        padding-left: 44px;
    }

    .ll-reqf__ico {
        left: var(--ll-s5);
    }

    .ll-reqf__c--money .ll-reqf__t {
        padding-left: 36px;
    }

    .ll-reqf__cur {
        left: var(--ll-s5);
        font-size: var(--ll-fs-meta);
    }

    .ll-reqf__ta {
        padding: 16px var(--ll-s5);
    }

    .ll-reqf__foot .ll-reqf__submit {
        width: 100%;
    }

    .ll-reqf__f > label {
        font-size: var(--ll-fs-meta);
    }

    .ll-reqf__lede {
        font-size: var(--ll-fs-body);
    }

    .ll-reqf__cb {
        align-items: flex-start;
        font-size: var(--ll-fs-meta);
    }
}
