/* ==========================================================================
   Showroom Lock — Promo online (shortcode [autonec_promo])
   Fonts: Archivo Black, Barlow — SIL Open Font License (assets/fonts/OFL-*.txt)
   Icons: Lucide — ISC License
   ========================================================================== */

@font-face {
    font-family: "ANP Archivo Black";
    src: url("../fonts/archivo-black-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "ANP Barlow";
    src: url("../fonts/barlow-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "ANP Barlow";
    src: url("../fonts/barlow-500.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "ANP Barlow";
    src: url("../fonts/barlow-600.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "ANP Barlow";
    src: url("../fonts/barlow-700.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

/* --- Page without header/footer ----------------------------------------- */

body.asl-blank {
    margin: 0;
    background: #fff;
}

.asl-blank__main {
    display: block;
    min-height: 100vh;
}

/* --- Tokens --------------------------------------------------------------- */

.anp {
    --anp-red: #e30613;
    --anp-red-dark: #b8040f;
    --anp-ink: #111316;
    --anp-slate: #22262c;
    --anp-slate-2: #343a42;
    --anp-line: #3d434b;
    --anp-muted: #5b626b;
    --anp-paper: #ffffff;
    --anp-mist: #eceef1;
    --anp-border: #c6cad0;
    --anp-font-display: "ANP Archivo Black", "Arial Black", "Helvetica Neue", Arial, sans-serif;
    --anp-font: "ANP Barlow", "Helvetica Neue", Arial, sans-serif;
    --anp-radius: 10px;
    --anp-gutter: clamp(16px, 4.5vw, 40px);

    box-sizing: border-box;
    color: var(--anp-ink);
    font-family: var(--anp-font);
    font-size: 17px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

.anp *,
.anp *::before,
.anp *::after {
    box-sizing: inherit;
}

.anp [hidden] {
    display: none !important;
}

/* --- Page: full width, content centred ------------------------------------ */

.anp__sheet {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
    background:
        linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, .9) 38% 46%, transparent 46% 62%, rgba(255, 255, 255, .7) 62% 66%, transparent 66%),
        linear-gradient(180deg, #f4f5f7 0%, #ffffff 30%);
}

.anp__main {
    flex: 1;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

/* Diagonal racing stripes in the top corners */
.anp__sheet::before,
.anp__sheet::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    width: 170px;
    height: 300px;
    pointer-events: none;
}

.anp__sheet::before {
    left: 0;
    background: linear-gradient(135deg, var(--anp-slate) 0 14%, transparent 14% 19%, var(--anp-red) 19% 30%, transparent 30%);
}

.anp__sheet::after {
    right: 0;
    background: linear-gradient(225deg, var(--anp-slate) 0 12%, transparent 12% 17%, var(--anp-red) 17% 25%, transparent 25% 31%, var(--anp-slate) 31% 34%, transparent 34%);
}

/* --- Hero ----------------------------------------------------------------- */

.anp__hero {
    padding: clamp(28px, 6vw, 48px) var(--anp-gutter) 0;
    text-align: center;
}

.anp__logo {
    display: inline-flex;
    align-items: center;
    gap: .35em;
    margin-bottom: clamp(18px, 4vw, 28px);
    padding: 8px 14px;
    background: var(--anp-paper);
    border: 3px solid var(--anp-red);
    outline: 1px solid var(--anp-red);
    outline-offset: 4px;
}

.anp__logo img {
    display: block;
    width: auto;
    max-width: min(300px, 56vw);
    height: auto;
    max-height: 84px;
}

.anp__logo-suffix {
    color: var(--anp-red);
    font-family: var(--anp-font);
    font-weight: 500;
    font-size: clamp(2.2rem, 9vw, 3.9rem);
    line-height: 1;
    letter-spacing: -.02em;
}

.anp__title {
    margin: 0 0 clamp(18px, 4vw, 26px);
    font-family: var(--anp-font-display);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.01em;
    text-transform: uppercase;
}

.anp__title-top {
    display: block;
    color: var(--anp-ink);
    font-size: clamp(1.55rem, 6.4vw, 3.05rem);
}

.anp__title-accent {
    display: block;
    color: var(--anp-red);
    font-size: clamp(2.3rem, 10.5vw, 4.9rem);
}

/* --- Red brush band -------------------------------------------------------- */

.anp__promo {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(10px, 2.5vw, 22px);
    margin: 0 calc(var(--anp-gutter) * -.6) clamp(22px, 4vw, 30px);
    padding: clamp(18px, 3.5vw, 26px) clamp(20px, 4.5vw, 40px);
    color: #fff;
    text-align: left;
    background: var(--anp-red);
    -webkit-mask: url("../img/brush.svg") center / 100% 100% no-repeat;
    mask: url("../img/brush.svg") center / 100% 100% no-repeat;
}

.anp__promo-icon {
    display: grid;
    place-items: center;
    width: clamp(48px, 11vw, 84px);
    aspect-ratio: 1;
    border: clamp(3px, .7vw, 5px) solid #fff;
    border-radius: 50%;
}

.anp__promo-icon svg {
    width: 58%;
    height: 58%;
}

.anp__promo-text {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-width: 0;
}

.anp__promo-head {
    font-family: var(--anp-font-display);
    font-weight: 400;
    font-size: clamp(1.2rem, 5vw, 2.35rem);
    line-height: 1;
    text-transform: uppercase;
}

.anp__promo-line {
    margin-top: .3em;
    font-weight: 700;
    font-size: clamp(.78rem, 2.6vw, 1.15rem);
    line-height: 1.1;
    text-transform: uppercase;
}

.anp__promo-sub {
    font-weight: 500;
    font-size: clamp(.78rem, 2.6vw, 1.15rem);
    text-transform: uppercase;
}

.anp__promo-value {
    font-family: var(--anp-font-display);
    font-size: clamp(2.6rem, 12vw, 5.2rem);
    line-height: .9;
    letter-spacing: -.03em;
    text-shadow: 0 3px 0 rgba(0, 0, 0, .12);
}

/* --- Form card ----------------------------------------------------------------- */

.anp__card {
    margin: 0 var(--anp-gutter) clamp(22px, 4vw, 30px);
    background: var(--anp-paper);
    border: 1px solid var(--anp-border);
    border-radius: var(--anp-radius);
    overflow: hidden;
}

.anp__card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 14px clamp(16px, 3.5vw, 24px);
    color: #fff;
    background: var(--anp-slate);
    font-family: var(--anp-font);
    font-weight: 700;
    font-size: clamp(1.15rem, 3.8vw, 1.55rem);
    letter-spacing: .01em;
    text-transform: uppercase;
}

.anp__card-head svg {
    flex: none;
    width: 34px;
    height: 34px;
}

.anp__form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: clamp(16px, 3.5vw, 24px);
}

.anp__field {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 6px 0;
}

.anp__label {
    flex: none;
    padding-bottom: 6px;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.2;
    color: var(--anp-ink);
}

.anp__req {
    color: var(--anp-red);
}

/* .anp prefix: beats theme rules such as input[type="text"] */
.anp .anp__input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 6px 4px;
    color: var(--anp-ink);
    font: 500 1.05rem/1.2 var(--anp-font);
    background: transparent;
    border: 0;
    border-bottom: 1.5px solid var(--anp-line);
    border-radius: 0;
    transition: border-color .15s ease, background-color .15s ease;
}

.anp .anp__input:focus {
    outline: none;
    background: #fff6f6;
    border-bottom-color: var(--anp-red);
    box-shadow: 0 2px 0 var(--anp-red);
}

.anp .anp__input:user-invalid {
    border-bottom-color: var(--anp-red);
    background: #fff1f1;
}

/* --- Car photo -------------------------------------------------------------- */

.anp__photo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0 4px;
}

.anp__photo-drop {
    position: relative;
    display: block;
    background: #fafbfc;
    border: 2px dashed #9aa0a8;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.anp__photo-drop:hover,
.anp__photo-drop:focus-within {
    background: #fff6f6;
    border-color: var(--anp-red);
}

.anp__photo-drop:focus-within {
    outline: 3px solid rgba(227, 6, 19, .25);
    outline-offset: 2px;
}

/* The real input covers the box: tap anywhere opens camera / gallery */
.anp__photo-input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.anp__photo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px 16px;
    text-align: center;
}

.anp__photo-empty svg {
    width: 40px;
    height: 40px;
    color: var(--anp-red);
}

.anp__photo-cta {
    font-weight: 700;
    font-size: 1.05rem;
}

.anp__photo-hint {
    color: var(--anp-muted);
    font-size: .92rem;
}

.anp__photo-filled {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px;
}

.anp__photo-preview {
    width: 128px;
    height: 96px;
    object-fit: cover;
    border-radius: 6px;
}

.anp__photo-change {
    color: var(--anp-red);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Payment choice & consent --------------------------------------------- */

.anp__choice,
.anp__consent {
    margin: 10px 0 0;
    padding: 14px 16px;
    background: var(--anp-mist);
    border: 0;
    border-radius: 8px;
}

.anp__choice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 28px;
}

.anp__choice-legend {
    float: left;
    margin: 0;
    padding: 0;
    font-weight: 700;
    font-size: 1.02rem;
}

.anp__choice-options {
    display: flex;
    gap: 28px;
}

.anp__option,
.anp__consent {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.anp__option {
    font-weight: 500;
    font-size: 1.05rem;
}

.anp__option input,
.anp__consent input {
    position: absolute;
    width: 26px;
    height: 26px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.anp__consent input {
    top: 14px;
    left: 16px;
}

.anp__box {
    position: relative;
    flex: none;
    width: 26px;
    height: 26px;
    background: #fff;
    border: 2px solid var(--anp-ink);
    border-radius: 4px;
    transition: background-color .15s ease, border-color .15s ease;
}

.anp__box::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 2px;
    width: 8px;
    height: 14px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    opacity: 0;
    transform: rotate(45deg) scale(.6);
    transition: opacity .15s ease, transform .15s ease;
}

.anp input:checked + .anp__box {
    background: var(--anp-red);
    border-color: var(--anp-red);
}

.anp input:checked + .anp__box::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.anp input:focus-visible + .anp__box {
    outline: 3px solid rgba(227, 6, 19, .35);
    outline-offset: 2px;
}

.anp__consent {
    align-items: flex-start;
}

.anp__consent-text {
    font-size: .95rem;
    line-height: 1.35;
    color: var(--anp-slate-2);
}

.anp__consent-text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.anp__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- Submit, errors, confirmation --------------------------------------------- */

.anp__error {
    margin: 10px 0 0;
    padding: 12px 14px;
    color: #8f0a12;
    font-weight: 600;
    background: #fde8e9;
    border: 1px solid #f6b9bd;
    border-radius: 8px;
}

.anp .anp__submit {
    margin-top: 16px;
    padding: 16px 22px;
    width: 100%;
    color: #fff;
    font: 400 clamp(1rem, 3.6vw, 1.25rem)/1.1 var(--anp-font-display);
    letter-spacing: .01em;
    text-transform: uppercase;
    background: var(--anp-red);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 6px 0 var(--anp-red-dark);
    white-space: normal;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, opacity .15s ease;
}

.anp .anp__submit:hover,
.anp .anp__submit:focus {
    color: #fff;
    background: var(--anp-red);
    transform: translateY(-1px);
}

.anp .anp__submit:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--anp-red-dark);
}

.anp .anp__submit:focus-visible {
    outline: 3px solid var(--anp-ink);
    outline-offset: 3px;
}

.anp .anp__submit[aria-busy="true"] {
    opacity: .75;
    cursor: progress;
}

.anp__done {
    padding: clamp(28px, 6vw, 44px) clamp(18px, 4vw, 32px);
    text-align: center;
    outline: none;
}

.anp__done-icon {
    width: 64px;
    height: 64px;
    color: #16a34a;
}

.anp__done-title {
    margin: 12px 0 8px;
    font-family: var(--anp-font-display);
    font-weight: 400;
    font-size: clamp(1.4rem, 5vw, 2rem);
    text-transform: uppercase;
}

.anp__done-text,
.anp__done-mail {
    margin: 0 auto 8px;
    max-width: 46ch;
    color: var(--anp-slate-2);
}

/* --- Trust strip & legal note --------------------------------------------- */

.anp__trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 18px max(var(--anp-gutter), calc((100% - 1200px) / 2));
    list-style: none;
    color: #fff;
    background: var(--anp-slate);
}

.anp__trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px;
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
}

.anp__trust-item + .anp__trust-item {
    border-left: 1px solid rgba(255, 255, 255, .35);
}

.anp__trust-item svg {
    flex: none;
    width: 34px;
    height: 34px;
}

.anp__note {
    margin: 0;
    padding: 12px max(var(--anp-gutter), calc((100% - 1200px) / 2));
    color: #e6e8eb;
    font-size: .82rem;
    text-align: center;
    background: var(--anp-slate-2);
}

/* --- Phone ------------------------------------------------------------------ */

@media (max-width: 600px) {
    .anp {
        font-size: 16px;
    }

    .anp__sheet::before,
    .anp__sheet::after {
        width: 90px;
        height: 170px;
    }

    .anp__promo {
        gap: 10px;
        padding-inline: 18px;
    }

    .anp__promo-line,
    .anp__promo-sub {
        font-size: .72rem;
        text-wrap: balance;
    }

    .anp__field {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .anp__label {
        padding-bottom: 0;
        font-size: .95rem;
    }

    .anp__choice-legend {
        float: none;
        width: 100%;
    }

    .anp__trust {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 14px;
    }

    .anp__trust-item:nth-child(3) {
        border-left: 0;
    }
}

/* --- Computer: promo on the left, form on the right ---------------------- */

@media (min-width: 1080px) {
    .anp__sheet::before,
    .anp__sheet::after {
        width: 300px;
        height: 520px;
    }

    .anp__main {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(420px, .75fr);
        align-items: center;
        gap: clamp(32px, 4vw, 72px);
        max-width: 1320px;
        padding: 64px clamp(40px, 5vw, 80px);
    }

    .anp__hero {
        padding: 0;
    }

    .anp__title-top {
        font-size: clamp(2.1rem, 3vw, 3.2rem);
    }

    .anp__title-accent {
        font-size: clamp(3.6rem, 5.6vw, 6rem);
    }

    .anp__promo {
        margin: 0;
        padding: 26px 40px;
    }

    .anp__promo-head {
        font-size: clamp(1.7rem, 2.4vw, 2.4rem);
        white-space: nowrap;
    }

    .anp__promo-line,
    .anp__promo-sub {
        font-size: clamp(.9rem, 1.1vw, 1.1rem);
    }

    .anp__promo-value {
        font-size: clamp(4rem, 6vw, 6rem);
    }

    .anp__logo img {
        max-height: 100px;
        max-width: 340px;
    }

    .anp__card {
        margin: 0;
        box-shadow: 0 18px 50px rgba(17, 19, 22, .12);
    }

    .anp__trust-item {
        justify-content: center;
        font-size: .9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .anp *,
    .anp *::before,
    .anp *::after {
        transition: none !important;
    }
}
