/* v2 signed-out page (index2.php guest branch): sign-up hero. Loaded only on that view, after ev2-shell.css */

.ev2-shell {
    --ev2s-font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
    --ev2g-red: #ef2b25;
    --ev2g-navy: #0f1b3d;
    --ev2g-body: #4b5563;
    --ev2g-field-border: #e3e7ee;
    --ev2s-page: #f5f7fb;
    background: linear-gradient(180deg, #fff 0, #fff 300px, var(--ev2s-page) 640px) no-repeat, var(--ev2s-page);
}

[data-theme="dark"] .ev2-shell {
    --ev2g-red: #ff5a52;
    --ev2g-navy: var(--ev2s-text);
    --ev2g-body: var(--ev2s-muted);
    --ev2g-field-border: var(--ev2s-border);
    background: var(--ev2s-page);
}

/* ---------- Top bar: plain "Intră în cont >" link ---------- */

.ev2-shell .ev2s-top-btn {
    gap: 7px;
    height: 40px;
    padding: 0 4px 0 12px;
    background: none;
    box-shadow: none;
    color: #1f2937 !important;
    font-size: 13.5px;
    font-weight: 500;
}

.ev2-shell .ev2s-top-btn i {
    display: none;
}

.ev2-shell .ev2s-top-btn span {
    color: inherit !important;
}

.ev2-shell .ev2s-top-btn::after {
    content: "\f054";
    font-family: "Font Awesome 7 Free";
    font-size: 10px;
    font-weight: 900;
    transition: transform .2s ease;
}

@media (hover: hover) {
    .ev2-shell .ev2s-top-btn:hover {
        transform: none;
        box-shadow: none;
        color: var(--ev2g-red) !important;
    }

    .ev2-shell .ev2s-top-btn:hover::after {
        transform: translateX(2px);
    }
}

[data-theme="dark"] .ev2-shell .ev2s-top-btn {
    color: var(--ev2s-text-2) !important;
}

/* ---------- Layout: no sidebar, one centered column ---------- */

.ev2-shell .ev2g {
    display: block;
    max-width: 1240px;
    overflow-x: clip;
}

.ev2g > .ev2s-side {
    display: none;
}

.ev2g-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "card" "note";
    row-gap: 22px;
    max-width: 560px;
    margin: 0 auto;
    font-family: var(--ev2s-font);
    color: var(--ev2s-text);
    -webkit-font-smoothing: antialiased;
}

.ev2g-hero * {
    box-sizing: border-box;
}

/* ---------- Intro: headline left, car photo right ---------- */

.ev2g-intro {
    grid-area: intro;
    position: relative;
    z-index: 0;
    padding: 6px 4px 0;
}

/* The photo is white on its left 60%; the car fills 74–100% x, 23–76% y.
   It spans the screen width and its roof lines up with the headline. */
.ev2g-car {
    position: absolute;
    z-index: -1;
    top: -12px;
    right: -12px;
    width: calc(100% + 24px);
    max-width: none;
    height: auto;
    transform: translateY(-23%);
    pointer-events: none;
    user-select: none;
    -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
    animation: ev2g-car-in 1.1s cubic-bezier(.16, .84, .3, 1) .1s both;
}

@keyframes ev2g-car-in {
    from {
        opacity: 0;
        translate: 24px 0;
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}

/* max-width keeps the headline clear of the car */
.ev2g-title {
    max-width: 270px;
    margin: 0;
    font-family: var(--ev2s-font);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -.03em;
    color: var(--ev2g-navy);
}

.ev2g-title span,
.ev2g-title em {
    display: block;
    color: inherit;
}

.ev2g-title em {
    font-style: normal;
    color: var(--ev2g-red);
}

.ev2g-lead {
    max-width: 268px;
    margin: 6px 0 0;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.38;
    color: var(--ev2g-body);
}

.ev2g-feats {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.ev2g-feats li {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.ev2g-feat-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
}

.ev2g-feat-ic i {
    color: inherit !important;
}

.is-rca .ev2g-feat-ic {
    background: #e5f6ea;
    color: #22a447;
}

.is-itp .ev2g-feat-ic {
    background: #e8f0fd;
    color: #2563eb;
}

.is-rov .ev2g-feat-ic {
    background: #fff1dd;
    color: #f59e0b;
}

.ev2g-feats li > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.ev2g-feats strong {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ev2s-text);
}

.ev2g-feats small {
    font-size: 11.5px;
    line-height: 1.25;
    white-space: nowrap;
    color: #6b7280;
}

/* ---------- Sign-up card ---------- */

.ev2-shell .ev2g-card {
    --ev2s-field-h: 45px;
    grid-area: card;
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 22px 18px 20px;
    border: 1px solid rgba(15, 23, 42, .05);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03), 0 12px 32px rgba(31, 58, 110, .07);
}

.ev2-shell .ev2g-card h2 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ev2g-navy);
}

.ev2g-card-sub {
    margin: 5px 0 18px;
    font-size: 13.5px;
    line-height: 1.4;
    color: #6b7280;
}

.ev2-shell .ev2g-card .form-group.tippers {
    display: none;
}

.ev2-shell .ev2g-card .form-group.ic-cmp-int {
    margin-bottom: 8px;
}

.ev2-shell .ev2g-card .ic-cmp-int > .form-ic-cmp {
    width: 44px;
}

.ev2-shell .ev2g-card .ic-cmp-int > .form-ic-cmp i {
    font-size: 15px;
    color: #6b7280 !important;
}

.ev2-shell .ev2g-card .field-plate {
    --ev2s-field-h: 45px;
}

.ev2-shell .ev2g-card .field-plate > .form-ic-cmp:first-child {
    width: 30px;
    padding: 6px 0 5px;
    border-radius: 9px 0 0 9px;
}

.ev2-shell .ev2g-card .field-plate > .form-ic-cmp:first-child::before {
    width: 14px;
    height: 14px;
    border-width: 1.5px;
}

.ev2-shell .ev2g-card .field-plate > .form-ic-cmp:first-child::after {
    font-size: 10.5px;
}

.ev2-shell .ev2g-card .nk-int-st .form-control,
.ev2-shell .ev2g-card #inmatriculare {
    padding-left: 44px !important;
    border-color: var(--ev2g-field-border) !important;
    border-radius: 10px !important;
    background: var(--ev2s-card) !important;
    font-size: 16px;
    font-weight: 500;
}

.ev2-shell .ev2g-card .nk-int-st .form-control::placeholder,
.ev2-shell .ev2g-card #inmatriculare::placeholder {
    font-size: 14.5px;
    font-weight: 400;
    letter-spacing: 0;
    color: #9aa3b2 !important;
}

.ev2-shell .ev2g-card #inmatriculare {
    font-weight: 700;
}

.ev2-shell .ev2g-card .nk-int-st .form-control:focus {
    border-color: rgba(239, 43, 37, .5) !important;
    box-shadow: 0 0 0 4px rgba(239, 43, 37, .1) !important;
}

.ev2-shell .ev2g-card #inmatriculare:focus {
    border-color: rgba(31, 111, 229, .55) !important;
    box-shadow: 0 0 0 4px rgba(31, 111, 229, .12) !important;
}

.ev2-shell .ev2g-card .contact-form-int .form-control.is-valid {
    border-color: var(--ev2s-ok-ic) !important;
}

.ev2-shell .ev2g-card .contact-form-int .form-control.is-invalid {
    border-color: var(--ev2s-exp-fg) !important;
}

.ev2-shell .ev2g-card .form-error-inline {
    font-size: 12.5px;
}

/* PIN: masked until the eye is pressed */
.ev2-shell .ev2g-card #pass.is-masked {
    -webkit-text-security: disc;
    text-security: disc;
}

.ev2-shell .ev2g-card .ic-cmp-int > .form-ic-cmp:has(.pin-eye) {
    pointer-events: auto;
}

.ev2g-card .pin-eye {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: none;
    color: #6b7280;
    font-size: 15px;
    cursor: pointer;
}

.ev2g-card .pin-eye i {
    font-size: inherit;
    color: inherit !important;
}

.ev2g-card .pin-eye:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 43, 37, .3);
}

@media (hover: hover) {
    .ev2g-card .pin-eye:hover {
        color: var(--ev2s-text-2);
    }
}

.ev2-shell .ev2g-card .field-terms {
    margin-top: 6px !important;
}

.ev2-shell .ev2g-card .field-terms > .nk-int-st > div:first-child {
    align-items: center !important;
    gap: 10px !important;
}

.ev2-shell .ev2g-card .field-terms input[type="checkbox"] {
    width: 19px !important;
    height: 19px !important;
    margin: 0 !important;
}

.ev2-shell .ev2g-card .field-terms label {
    font-size: 13px;
    font-weight: 400;
    line-height: 19px !important;
    color: #374151;
}

.ev2-shell .ev2g-card .field-terms a {
    color: var(--ev2g-red) !important;
    font-weight: 400;
}

.ev2-shell .ev2g-card .contact-btn {
    margin-top: 18px !important;
}

.ev2-shell .ev2g-card .contact-btn #sendexec {
    gap: 12px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ff4136 0%, #e8191b 100%);
    font-size: 14.5px !important;
    font-weight: 600;
    letter-spacing: 0;
    box-shadow: 0 8px 18px rgba(232, 25, 27, .22), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.ev2-shell .ev2g-card .contact-btn #sendexec::after {
    content: "\f054";
    font-size: 11px;
}

@media (hover: hover) {
    .ev2-shell .ev2g-card .contact-btn #sendexec:hover {
        box-shadow: 0 12px 24px rgba(232, 25, 27, .3), inset 0 1px 0 rgba(255, 255, 255, .2);
    }
}

/* Persoană fizică / Firmă switch: small toggle in the card's corner */
.ev2g-type {
    position: absolute;
    top: 20px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid var(--ev2g-field-border);
    border-radius: 999px;
    background: var(--ev2s-card);
    font-family: var(--ev2s-font);
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.ev2g-type i {
    font-size: 11px;
    color: inherit !important;
}

.ev2g-type span {
    color: inherit !important;
}

.ev2g-type[aria-pressed="true"] {
    border-color: rgba(239, 43, 37, .35);
    background: #fff1f0;
    color: var(--ev2g-red);
}

.ev2g-type:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 43, 37, .3);
}

@media (hover: hover) {
    .ev2g-type:hover {
        color: var(--ev2s-text-2);
    }

    .ev2g-type[aria-pressed="true"]:hover {
        color: var(--ev2g-red);
    }
}

.ev2-shell .ev2g-card h2 {
    padding-right: 76px;
}

/* ---------- Note under the card ---------- */

.ev2g-note {
    grid-area: note;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0 6px;
}

.ev2g-note-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e8f0fd;
    color: #2563eb;
    font-size: 15px;
}

.ev2g-note-ic i {
    color: inherit !important;
}

.ev2g-note > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.ev2g-note strong {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ev2s-text);
}

.ev2g-note small {
    font-size: 12px;
    line-height: 1.3;
    color: #6b7280;
}

/* ---------- Below the fold ---------- */

.ev2g-more {
    max-width: 560px;
    margin: 28px auto 0;
}

.ev2-shell .ev2g .ev2s-help-area {
    margin-top: var(--ev2s-gap);
}

/* ---------- Dark (theme.css forces light text on every element with !important) ---------- */

/* Only the car and the road under it: the white haze would show as a grey panel */
[data-theme="dark"] .ev2g-car {
    filter: brightness(.7) saturate(.85);
    -webkit-mask-image: radial-gradient(ellipse 22% 36% at 90% 50%, #000 45%, transparent 100%);
    mask-image: radial-gradient(ellipse 22% 36% at 90% 50%, #000 45%, transparent 100%);
}

[data-theme="dark"] .ev2g-title em {
    color: var(--ev2g-red) !important;
}

[data-theme="dark"] .ev2g-lead,
[data-theme="dark"] .ev2g-card-sub,
[data-theme="dark"] .ev2g-type {
    color: var(--ev2s-muted) !important;
}

[data-theme="dark"] .ev2g-type {
    background: var(--ev2s-soft);
}

[data-theme="dark"] .ev2g-type[aria-pressed="true"] {
    border-color: rgba(248, 113, 113, .4);
    background: rgba(239, 68, 68, .14);
    color: #f87171 !important;
}

[data-theme="dark"] .is-rca .ev2g-feat-ic {
    background: rgba(34, 197, 94, .16);
    color: #4ade80 !important;
}

[data-theme="dark"] .is-itp .ev2g-feat-ic,
[data-theme="dark"] .ev2g-note-ic {
    background: rgba(59, 130, 246, .16);
    color: #6ea8ff !important;
}

[data-theme="dark"] .is-rov .ev2g-feat-ic {
    background: rgba(245, 158, 11, .16);
    color: #fbbf24 !important;
}

[data-theme="dark"] .ev2-shell .ev2g-card {
    border-color: var(--ev2s-border);
    box-shadow: var(--ev2s-shadow);
}

[data-theme="dark"] .ev2-shell .ev2g-card .nk-int-st .form-control,
[data-theme="dark"] .ev2-shell .ev2g-card #inmatriculare {
    background: var(--ev2s-soft) !important;
}

[data-theme="dark"] .ev2-shell .ev2g-card .field-terms label {
    color: var(--ev2s-text-2) !important;
}

[data-theme="dark"] .ev2-shell .ev2g-card .field-terms a {
    color: #f87171 !important;
}

/* ---------- Phones ---------- */

@media (max-width: 768px) {
    /* The bottom tab bar and floating WhatsApp button would cover the form */
    .ev2-shell {
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    }

    .ev2-shell a.blantershow-chat {
        display: none !important;
    }

    .ev2-shell .ev2s-top {
        background: #fff;
        box-shadow: none;
    }

    [data-theme="dark"] .ev2-shell .ev2s-top {
        background: var(--ev2s-page);
    }

    @supports (animation-timeline: scroll()) {
        .ev2-shell .ev2s-top {
            animation: ev2g-top-line linear both;
            animation-timeline: scroll(root);
            animation-range: 0 48px;
        }
    }

    .ev2-shell .ev2s-top-in {
        padding-left: calc(18px + env(safe-area-inset-left, 0px));
    }
}

@keyframes ev2g-top-line {
    from { box-shadow: 0 1px 0 transparent; }
    to { box-shadow: 0 1px 0 var(--ev2s-border); }
}

@media (max-width: 599px) {
    .ev2g-hero {
        row-gap: 28px;
    }

    .ev2g-feats {
        display: none;
    }
}

@media (max-width: 374px) {
    .ev2g-title {
        max-width: 250px;
        font-size: 34px;
    }

    .ev2-shell .ev2g-card h2 {
        padding-right: 70px;
        font-size: 18.5px;
    }

    .ev2g-card-sub {
        font-size: 12.5px;
    }
}

/* ---------- Tablets: same stack, centered ---------- */

@media (min-width: 600px) {
    .ev2g-hero {
        padding-top: 18px;
    }

    .ev2g-title {
        max-width: 400px;
        font-size: 46px;
    }

    .ev2g-lead {
        max-width: 280px;
    }

    .ev2g-car {
        -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 100%), linear-gradient(180deg, #000 82%, transparent 100%);
        -webkit-mask-composite: source-in;
        mask-image: linear-gradient(90deg, #000 88%, transparent 100%), linear-gradient(180deg, #000 82%, transparent 100%);
        mask-composite: intersect;
    }

    .ev2g-feats {
        justify-content: flex-start;
        gap: 28px;
    }
}

/* ---------- Desktop: text left, form right ---------- */

@media (min-width: 992px) {
    .ev2-shell .ev2g {
        padding-left: 32px;
        padding-right: 32px;
    }

    .ev2g-hero {
        grid-template-columns: minmax(0, 1fr) 430px;
        grid-template-areas: "intro card" "note card";
        column-gap: 56px;
        row-gap: 32px;
        max-width: none;
        min-height: calc(100vh - var(--ev2s-top-h) - 14px - 2 * var(--ev2s-gap));
        align-content: center;
        padding: 24px 0;
    }

    .ev2g-intro {
        align-self: end;
        padding: 0;
    }

    .ev2g-note {
        align-self: start;
        padding: 0;
    }

    .ev2g-car {
        top: -20px;
        right: -40px;
        width: 640px;
        -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 60%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 76%, transparent 94%);
        -webkit-mask-composite: source-in;
        mask-image: linear-gradient(90deg, transparent 30%, #000 60%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 76%, transparent 94%);
        mask-composite: intersect;
    }

    .ev2g-title {
        max-width: none;
        font-size: 54px;
        line-height: 1.05;
    }

    .ev2g-lead {
        max-width: 345px;
        margin-top: 16px;
        font-size: 18px;
    }

    .ev2g-feats {
        gap: 32px;
        margin-top: 34px;
    }

    .ev2g-feats li {
        gap: 12px;
    }

    .ev2g-feat-ic {
        width: 48px;
        height: 48px;
        font-size: 19px;
    }

    .ev2g-feats strong {
        font-size: 15px;
    }

    .ev2g-feats small {
        font-size: 13px;
    }

    .ev2g-note-ic {
        width: 44px;
        height: 44px;
        font-size: 17px;
    }

    .ev2g-note strong {
        font-size: 15px;
    }

    .ev2g-note small {
        font-size: 13.5px;
    }

    .ev2-shell .ev2g-card {
        --ev2s-field-h: 50px;
        align-self: center;
        padding: 30px 28px 22px;
        border-radius: 22px;
    }

    .ev2-shell .ev2g-card .field-plate {
        --ev2s-field-h: 50px;
    }

    .ev2-shell .ev2g-card h2 {
        font-size: 24px;
    }

    .ev2g-type {
        top: 30px;
        right: 26px;
    }

    .ev2g-card-sub {
        margin: 6px 0 22px;
        font-size: 14.5px;
    }

    .ev2-shell .ev2g-card .form-group.ic-cmp-int {
        margin-bottom: 12px;
    }

    .ev2-shell .ev2g-card .field-terms label {
        font-size: 14px;
    }

    .ev2-shell .ev2g-card .contact-btn #sendexec {
        height: 52px;
        font-size: 16px !important;
    }

    .ev2g-more {
        max-width: none;
        margin-top: 8px;
    }

    .ev2g-more .ev2s-tint-in {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ev2g-car {
        animation: none;
    }

    .ev2-shell .ev2s-top {
        animation: none;
    }
}
