/*
 * [vb_request]: one offer card and a short form. Scoped under .vb-request for
 * the same reason widget.css is scoped under #vb-scan: the Uncode theme CSS is
 * broad, so this states its own values rather than inheriting and hoping.
 *
 * Separate from widget.css on purpose. A services page that only sells the
 * offer loads this and nothing of the scanner.
 */

.vb-request {
    --vb-ink: #191919;
    --vb-orange: #ED5931;
    --vb-line: rgba(0, 0, 0, .14);
    --vb-muted: #6b6b6b;
    --vb-body: #3d3d3d;

    box-sizing: border-box;
    width: 100%;
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    color: var(--vb-ink);
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
}

.vb-request *,
.vb-request *::before,
.vb-request *::after { box-sizing: border-box; }

.vb-request p { margin: 0 0 12px; color: var(--vb-body); }
.vb-request h3 { margin: 0; color: var(--vb-ink); font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }


.vb-request .vb-mono,
.vb-request .vb-price,
.vb-request .vb-label {
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
.vb-request .vb-price { font-size: 14px; color: var(--vb-orange); margin: 4px 0 14px; }
.vb-request .vb-mono { font-size: 12px; color: var(--vb-muted); }
.vb-request .vb-meta { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; }

.vb-request .vb-includes,
.vb-request .vb-picks { list-style: none !important; margin: 0 0 16px !important; padding: 0 !important; }
/* The theme puts discs on li directly, so the reset has to reach them too. */
.vb-request .vb-includes li,
.vb-request .vb-picks li { list-style: none !important; margin: 0 !important; }
.vb-request .vb-includes li::marker,
.vb-request .vb-picks li::marker { content: none; }
.vb-request .vb-includes li { padding: 5px 0 5px 16px !important; position: relative; font-size: 14px; color: var(--vb-body); }
.vb-request .vb-includes li::before { content: "\2013"; position: absolute; left: 0; color: var(--vb-orange); }

.vb-request .vb-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.vb-request .vb-fields .vb-wide { grid-column: 1 / -1; }

.vb-request .vb-label {
    display: block;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--vb-muted);
    margin: 0 0 6px;
}

.vb-request input {
    display: block;
    width: 100%;
    font: inherit;
    font-size: 15px;
    color: var(--vb-ink);
    background: #fff;
    border: 1px solid var(--vb-line);
    border-radius: 6px;
    padding: 12px 14px;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

.vb-request input:focus-visible,
.vb-request button:focus-visible,
.vb-request a:focus-visible {
    outline: 2px solid var(--vb-orange);
    outline-offset: 2px;
}

/*
 * !important on the few properties the theme's own button rules restyle.
 * Uncode's .style-light rule paints submit buttons #F7F7F7 and outranks a
 * class, and a submit that renders as pale text on paper is a broken form.
 */
.vb-request .vb-btn {
    display: inline-block !important;
    font: inherit;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: #fff !important;
    background: var(--vb-ink) !important;
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    padding: 14px 22px !important;
    white-space: normal !important;
    max-width: 100%;
    margin: 0 !important;
    cursor: pointer;
    text-decoration: none !important;
    text-align: center;
    transition: background .15s ease;
}
.vb-request .vb-btn:hover { background: var(--vb-orange) !important; color: #fff !important; }
.vb-request .vb-btn[disabled] { opacity: .55; cursor: default; }

.vb-request .vb-foot { margin: 12px 0 0; font-size: 13px; color: var(--vb-muted); }
.vb-request .vb-error { margin: 0 0 12px; font-size: 13px; color: var(--vb-orange); }

/* The offer menu: whole rows are the target, name and terms left, price right. */
.vb-request .vb-picks { border-top: 1px solid var(--vb-line); }
.vb-request .vb-picks li { border-bottom: 1px solid var(--vb-line); padding: 0 !important; }
.vb-request .vb-picks a {
    display: grid;
    grid-template-columns: 1fr auto 18px;
    align-items: center;
    column-gap: 16px;
    padding: 16px 4px;
    color: var(--vb-ink) !important;
    text-decoration: none !important;
    border: 0 !important;
    transition: background .15s ease, padding .15s ease;
}
.vb-request .vb-pick-name { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--vb-ink); }
.vb-request .vb-pick-terms { display: block; margin-top: 3px; }
.vb-request .vb-pick-price { font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; color: var(--vb-orange); }
.vb-request .vb-pick-arrow { color: var(--vb-muted); opacity: 0; transform: translateX(-4px); transition: opacity .15s ease, transform .15s ease; }
.vb-request .vb-picks a:hover,
.vb-request .vb-picks a:focus-visible { background: rgba(0, 0, 0, .035); padding-left: 10px; }
.vb-request .vb-picks a:hover .vb-pick-arrow,
.vb-request .vb-picks a:focus-visible .vb-pick-arrow { opacity: 1; transform: none; color: var(--vb-orange); }

/* Off-screen, not display:none: some bots skip hidden inputs. */
.vb-request .vb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 480px) {
    .vb-request .vb-fields { grid-template-columns: 1fr; }
    .vb-request .vb-btn { width: 100%; }
}
