/* ==========================================================================
   Sunbelt Deals Liquidation LLC - public customer registration portal.

   Standalone stylesheet: this page does not load Odoo's website assets, so
   everything the portal needs (reset, layout, controls) lives here.
   Palette is derived from the Sunbelt logo - charcoal wordmark with a cool
   grey pallet mark - warmed with an amber accent for calls to action.
   ========================================================================== */

:root {
    --sb-ink:            #1b1f24;  /* logo charcoal, darkened for backgrounds */
    --sb-ink-deep:       #12161a;
    --sb-ink-soft:       #262c33;
    --sb-steel:          #8d959e;  /* logo pallet grey */
    --sb-steel-light:    #c3c9d0;
    --sb-amber:          #d99b28;  /* accent: sun / sunbelt */
    --sb-amber-bright:   #eab04a;
    --sb-surface:        #f4f6f8;
    --sb-card:           #ffffff;
    --sb-line:           #dde2e8;
    --sb-text:           #232a31;
    --sb-text-muted:     #5c6672;
    --sb-danger:         #b3261e;
    --sb-success:        #1f9254;
    --sb-radius:         14px;
    --sb-radius-lg:      22px;
    --sb-shadow:         0 18px 48px rgba(18, 22, 26, 0.10);
    --sb-shadow-lift:    0 26px 70px rgba(18, 22, 26, 0.16);
    --sb-font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
               "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body.sb-body {
    margin: 0;
    padding: 0;
    font-family: var(--sb-font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--sb-text);
    background-color: var(--sb-surface);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.sb-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   Shell: two columns on desktop, single column on mobile
   -------------------------------------------------------------------------- */
.sb-shell {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    min-height: 100vh;
    align-items: stretch;
}

/* --------------------------------------------------------------------------
   Left branding panel
   -------------------------------------------------------------------------- */
/* The panel is a plain grid item, so it always stretches to the full height of
   the row and the dark background can never leave a light gap beside the taller
   form column. Only its content is pinned (see .sb-brand__inner). */
.sb-brand {
    position: relative;
    isolation: isolate;
    background: linear-gradient(160deg, var(--sb-ink) 0%, var(--sb-ink-deep) 100%);
    color: #eef1f4;
    padding: 3.25rem 3rem 3.5rem;
    overflow: hidden;
}

/* Optional hero image: a low-opacity backdrop, so the panel still reads
   correctly if the asset is ever unavailable. */
.sb-brand__media {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(165deg, rgba(18, 22, 26, 0.93) 0%, rgba(18, 22, 26, 0.97) 55%, rgba(18, 22, 26, 0.99) 100%),
        url("/sunbelt_registration/static/src/img/warehouse_hero.jpg");
    background-size: cover, cover;
    background-position: center, center 30%;
    background-repeat: no-repeat, no-repeat;
}

/* Pinned to the top of the viewport so the branding stays visible while the
   longer form column scrolls - and so the panel never shows a tall dead area. */
.sb-brand__inner {
    position: sticky;
    top: 3.25rem;
    width: 100%;
    max-width: 30rem;
    margin: 0 auto;
}

.sb-brand__logo {
    width: 200px;
    margin-bottom: 2rem;
}

.sb-brand__name {
    font-size: 1.6rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 1rem;
    color: #ffffff;
}

.sb-brand__name::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin-top: 1rem;
    border-radius: 3px;
    background: var(--sb-amber);
}

.sb-brand__intro {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    color: #ccd3da;
}

.sb-brand__intro--muted { color: #a8b1ba; }

.sb-block { margin-top: 2.15rem; }

.sb-block__title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--sb-amber-bright);
    margin: 0 0 0.9rem;
}

/* Category chips */
.sb-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.sb-chips li {
    font-size: 0.8rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #d6dce2;
}

.sb-disclaimer {
    margin: 0.9rem 0 0;
    font-size: 0.72rem;
    line-height: 1.5;
    color: #8b949e;
}

/* Benefits list with amber ticks */
.sb-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sb-benefits li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #d3dae0;
}

.sb-benefits li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.44em;
    width: 0.5rem;
    height: 0.28rem;
    border-left: 2px solid var(--sb-amber);
    border-bottom: 2px solid var(--sb-amber);
    transform: rotate(-45deg);
}

/* Contact block */
.sb-contact__list { margin: 0; }

.sb-contact__row {
    display: grid;
    grid-template-columns: 5.25rem 1fr;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
}

.sb-contact__row:first-child { border-top: 0; }

.sb-contact__row dt {
    font-size: 0.7rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #8b949e;
    padding-top: 0.12rem;
}

.sb-contact__row dd {
    margin: 0;
    color: #dde3e9;
}

.sb-contact__row dd a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(217, 155, 40, 0.55);
}

.sb-contact__row dd a:hover,
.sb-contact__row dd a:focus-visible { border-bottom-color: var(--sb-amber); }

/* --------------------------------------------------------------------------
   Right form panel
   -------------------------------------------------------------------------- */
.sb-form-panel {
    padding: 3rem 3rem 3.5rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: var(--sb-surface);
}

.sb-card {
    width: 100%;
    max-width: 46rem;
    background: var(--sb-card);
    border: 1px solid var(--sb-line);
    border-radius: var(--sb-radius-lg);
    box-shadow: var(--sb-shadow);
    padding: 2.5rem 2.5rem 2.75rem;
}

.sb-card__head { margin-bottom: 1.75rem; }

.sb-eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #a8741a;
}

.sb-card__title {
    margin: 0 0 0.55rem;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--sb-ink);
}

.sb-card__sub {
    margin: 0;
    font-size: 0.92rem;
    color: var(--sb-text-muted);
}

.sb-alert {
    margin-bottom: 1.5rem;
    padding: 0.85rem 1.05rem;
    border-radius: var(--sb-radius);
    background: #fdecea;
    border: 1px solid #f3c4bf;
    color: #8c1d16;
    font-size: 0.9rem;
}

/* Fieldsets / grid */
.sb-fieldset {
    border: 0;
    border-top: 1px solid var(--sb-line);
    margin: 0;
    padding: 1.5rem 0 0;
}

.sb-fieldset:first-of-type { border-top: 0; padding-top: 0; }

.sb-legend {
    padding: 0;
    margin-bottom: 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--sb-steel);
}

.sb-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.sb-field { min-width: 0; }
.sb-field--full { grid-column: 1 / -1; }

.sb-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.83rem;
    font-weight: 600;
    color: #39424c;
}

.sb-req-mark { color: var(--sb-danger); font-weight: 700; }

/* Controls */
.sb-input {
    width: 100%;
    font: inherit;
    font-size: 0.94rem;
    color: var(--sb-text);
    background: #fcfdfe;
    border: 1px solid var(--sb-line);
    border-radius: var(--sb-radius);
    padding: 0.68rem 0.9rem;
    transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
    appearance: none;
}

select.sb-input {
    background-image:
        url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%235c6672' d='M8 11.2 3.2 6.4l1.1-1.1L8 9l3.7-3.7 1.1 1.1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1rem;
    padding-right: 2.4rem;
    cursor: pointer;
}

.sb-input::placeholder { color: #9aa4af; }

.sb-input:hover { border-color: #c6ced7; }

.sb-input:focus-visible,
.sb-input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--sb-amber);
    box-shadow: 0 0 0 3px rgba(217, 155, 40, 0.22);
}

.sb-input--error {
    border-color: var(--sb-danger);
    background: #fffafa;
}

.sb-input--error:focus-visible,
.sb-input--error:focus {
    border-color: var(--sb-danger);
    box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.16);
}

.sb-textarea { resize: vertical; min-height: 6.5rem; line-height: 1.5; }

.sb-error {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: var(--sb-danger);
}

/* Checkbox groups */
.sb-checkgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 1.25rem;
    margin-bottom: 1.5rem;
}

.sb-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #39424c;
    cursor: pointer;
    padding: 0.15rem 0;
}

.sb-check input[type="checkbox"] {
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0.16rem 0 0;
    accent-color: var(--sb-amber);
    cursor: pointer;
}

.sb-check input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--sb-amber);
    outline-offset: 2px;
}

/* Consent row */
.sb-consent {
    margin: 0.25rem 0 1.75rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--sb-line);
    border-radius: var(--sb-radius);
    background: #f8fafb;
}

.sb-consent--error {
    border-color: var(--sb-danger);
    background: #fffafa;
}

.sb-check--consent { font-size: 0.87rem; line-height: 1.5; color: #39424c; }

/* Submit */
.sb-submit {
    position: relative;
    width: 100%;
    font: inherit;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    color: #ffffff;
    background: linear-gradient(180deg, var(--sb-ink-soft) 0%, var(--sb-ink) 100%);
    border: 1px solid var(--sb-ink-deep);
    border-radius: var(--sb-radius);
    padding: 0.95rem 1.25rem;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.14s ease, filter 0.14s ease;
    box-shadow: 0 8px 20px rgba(18, 22, 26, 0.18);
}

.sb-submit:hover { filter: brightness(1.14); box-shadow: var(--sb-shadow-lift); }

.sb-submit:active { transform: translateY(1px); }

.sb-submit:focus-visible {
    outline: 3px solid rgba(217, 155, 40, 0.55);
    outline-offset: 2px;
}

.sb-submit.is-loading { color: transparent; pointer-events: none; }

.sb-submit.is-loading::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 1.15rem; height: 1.15rem;
    margin: -0.575rem 0 0 -0.575rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: sb-spin 0.7s linear infinite;
}

@keyframes sb-spin { to { transform: rotate(360deg); } }

/* Honeypot: removed from view and from the tab order, still in the DOM */
.sb-honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Success page
   -------------------------------------------------------------------------- */
body.sb-body--success {
    background:
        radial-gradient(1200px 600px at 50% -10%, #22282f 0%, transparent 60%),
        linear-gradient(160deg, var(--sb-ink) 0%, var(--sb-ink-deep) 100%);
}

.sb-success {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
}

.sb-success__card {
    width: 100%;
    max-width: 32rem;
    background: var(--sb-card);
    border-radius: var(--sb-radius-lg);
    box-shadow: var(--sb-shadow-lift);
    padding: 2.75rem 2.5rem 2.5rem;
    text-align: center;
}

.sb-success__logo {
    width: 165px;
    margin: 0 auto 1.75rem;
}

.sb-success__icon { width: 76px; margin: 0 auto 1.35rem; }

.sb-success__icon svg { width: 100%; height: auto; display: block; }

.sb-success__circle {
    fill: rgba(31, 146, 84, 0.10);
    stroke: var(--sb-success);
    stroke-width: 2.5;
}

.sb-success__check {
    stroke: var(--sb-success);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 0;
    animation: sb-draw 0.5s ease-out;
}

@keyframes sb-draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }

.sb-success__title {
    margin: 0 0 0.7rem;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--sb-ink);
}

.sb-success__lead {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--sb-text);
}

.sb-success__sub {
    margin: 0 0 1.85rem;
    font-size: 0.93rem;
    color: var(--sb-text-muted);
}

.sb-success__contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.15rem 0;
    border-top: 1px solid var(--sb-line);
    border-bottom: 1px solid var(--sb-line);
    margin-bottom: 1.75rem;
}

.sb-success__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--sb-steel);
    margin-bottom: 0.2rem;
}

.sb-success__contact a {
    font-size: 0.92rem;
    color: var(--sb-ink);
    text-decoration: none;
    border-bottom: 1px solid rgba(217, 155, 40, 0.6);
    word-break: break-word;
}

.sb-success__contact a:hover { border-bottom-color: var(--sb-amber); }

.sb-success__again {
    display: inline-block;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--sb-ink);
    background: #ffffff;
    border: 1px solid var(--sb-line);
    border-radius: var(--sb-radius);
    padding: 0.7rem 1.4rem;
    transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.sb-success__again:hover {
    border-color: var(--sb-amber);
    box-shadow: 0 6px 18px rgba(18, 22, 26, 0.08);
}

.sb-success__again:focus-visible {
    outline: 3px solid rgba(217, 155, 40, 0.55);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Responsive: single column, branding first
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .sb-brand { padding: 2.75rem 2.25rem 3rem; }
    .sb-form-panel { padding: 2.25rem 2rem 3rem; }
    .sb-card { padding: 2rem 1.85rem 2.25rem; }
}

@media (max-width: 900px) {
    .sb-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    /* Single column: branding scrolls with the page instead of being pinned. */
    .sb-brand__inner {
        position: static;
        top: auto;
        max-width: 40rem;
        margin: 0 auto;
    }
    .sb-brand__logo { width: 170px; margin-bottom: 1.5rem; }
}

@media (max-width: 640px) {
    body.sb-body { font-size: 15px; }
    .sb-brand { padding: 2.25rem 1.25rem 2.5rem; }
    .sb-form-panel { padding: 1.5rem 1rem 2.5rem; }
    .sb-card {
        padding: 1.5rem 1.25rem 1.75rem;
        border-radius: var(--sb-radius);
    }
    .sb-card__title { font-size: 1.5rem; }
    .sb-grid,
    .sb-checkgrid { grid-template-columns: 1fr; }
    .sb-contact__row { grid-template-columns: 1fr; gap: 0.15rem; }
    .sb-success__card { padding: 2rem 1.35rem 1.85rem; }
    .sb-success__contact { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .sb-success__check { animation: none; }
    .sb-submit { transition: none; }
    .sb-submit.is-loading::after { animation-duration: 1.6s; }
}
