/* ============================================================
   Wisanna Legal – Landing Page v6 (Lead Gen / Demo Request)
   Derived from v5 styles (which imports v4).
   ============================================================ */

@import url("./free-trial-v5.css?v=1.0.222");

/* ── Override v4 base hero__content grid (v4 sets grid at 1024px) ── */
.hero--split .hero__content--split {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
}

/* ── Split hero (v6) ─────────────────────────────────────── */
.hero--split {
    min-height: 0;
    padding: 100px 20px 48px;
}

/* Mobile ordering */
.hero--split .hero__left { order: 1; }
.hero--split .hero__form-card { order: 2; }
.hero--split .hero__proof--mobile { order: 3; }

/* On mobile: hide benefits & desktop proof; show mobile proof */
.hero__benefits { display: none; }
.hero--split .hero__left .hero__proof { display: none; }
.hero--split .hero__proof--mobile { text-align: center; }

/* ── Headline ────────────────────────────────────────────── */
.hero--split .hero__headline {
    text-align: center;
}

.hero--split h1 {
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: clamp(1.65rem, 6.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 0.65rem;
    letter-spacing: -0.02em;
}

.hero--split h1 em {
    font-style: normal;
    background: var(--accent-gold-gradient, linear-gradient(135deg, #FFB700, #FFD700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero--split .hero__sub {
    font-size: clamp(0.95rem, 2.5vw, 1.12rem);
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.015em;
    line-height: 1.55;
    max-width: 520px;
    margin: 0 auto;
    margin-bottom: 0;
}

.hero--split .hero__sub strong {
    color: var(--accent-gold, #FFB700);
    font-weight: 600;
}

/* ── Benefits list ───────────────────────────────────────── */
.hero__benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero__benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: rgba(255, 255, 255, 0.93);
    font-size: 0.95rem;
    letter-spacing: 0.015em;
    line-height: 1.45;
    margin-bottom: 0.6rem;
}

.hero__benefits li:last-child {
    margin-bottom: 0;
}

.hero__benefits svg {
    color: var(--accent-gold, #FFB700);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ── Testimonial proof ───────────────────────────────────── */
.hero__proof {
    padding: 0.75rem 0 0;
}

.hero__quote {
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.01em;
    margin: 0 0 0.35rem;
    quotes: none;
    border-left: 3px solid var(--accent-gold, #FFB700);
    padding-left: 0.85rem;
    text-align: left;
}

.hero__quote strong {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

.hero__quote-author {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    font-style: normal;
    display: block;
    padding-left: 0.85rem;
}

/* ── Hero form card (white on dark hero bg) ──────────────── */
.hero--split .hero__form-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 18px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.25);
    margin-top: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.hero--split .hero__form-card h3 {
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-navy, #0D2C54);
    margin-bottom: 1rem;
}

.hero--split .hero__form-card .form-group label {
    color: var(--primary-navy, #0D2C54);
}

.hero--split .hero__form-card .form-group input,
.hero--split .hero__form-card .form-group select,
.hero--split .hero__form-card .form-group textarea {
    background: #fff;
    border: 1px solid var(--border-medium, rgba(13, 44, 84, 0.12));
    color: var(--neutral-dark, #212529);
}

.hero--split .hero__form-card .consent-row,
.hero--split .hero__form-card .consent-row label,
.hero--split .hero__form-card .consent-row span,
.hero--split .hero__form-card .demo-form .consent-row label {
    color: var(--neutral-dark, #212529);
}

.hero--split .hero__form-card .consent-row a,
.hero--split .hero__form-card .demo-form .consent-link {
    color: #2563eb;
}

/* ── Floating labels (hero form) ──────────────────────────── */
.hero--split .form-group--float {
    position: relative;
    margin-bottom: 0;
}

.hero--split .form-group--float > label {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    font-size: 0.9rem;
    font-weight: 400;
    color: #8c96a0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
    margin-bottom: 0;
    line-height: 1;
    background: transparent;
    padding: 0;
}

/* Textarea label anchors to top, not center */
.hero--split .form-group--float > textarea ~ label {
    top: 0.85rem;
    transform: none;
}

/* Floated state: focused or has content */
.hero--split .form-group--float > input:focus ~ label,
.hero--split .form-group--float > input:not(:placeholder-shown) ~ label,
.hero--split .form-group--float > input.has-value ~ label,
.hero--split .form-group--float > textarea:focus ~ label,
.hero--split .form-group--float > textarea:not(:placeholder-shown) ~ label,
.hero--split .form-group--float > textarea.has-value ~ label,
.hero--split .form-group--float > select:focus ~ label,
.hero--split .form-group--float > select.has-value ~ label {
    top: 0.25rem;
    left: 0.75rem;
    transform: none;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent-gold, #FFB700);
    background: #fff;
    padding: 0 0.25rem;
}

/* Adjust input padding to make room for floated label */
.hero--split .form-group--float > input,
.hero--split .form-group--float > textarea,
.hero--split .form-group--float > select {
    padding: 1.1rem 1rem 0.5rem;
}

/* Select needs extra right padding for the arrow */
.hero--split .form-group--float.form-group--select > select {
    padding-right: 36px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238c96a0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.hero--split .form-group--float.form-group--select > select option {
    background: #fff;
    color: var(--neutral-dark, #212529);
}

/* Textarea: tighter min-height for compact form */
.hero--split .form-group--float > textarea {
    resize: vertical;
    min-height: 56px;
}

/* Hide default placeholder text (we use the label instead) */
.hero--split .form-group--float > input::placeholder,
.hero--split .form-group--float > textarea::placeholder {
    color: transparent;
}

/* Show a subtle placeholder hint on focus */
.hero--split .form-group--float > input:focus::placeholder {
    color: #c4cad0;
    transition: color 0.15s 0.1s;
}

/* "Altul" custom role input visibility */
.form-group--role-other.is-hidden {
    display: none;
}

/* Larger logo on mobile (v4 base is 22px, too small) */
.lp-header__logo img {
    height: 28px;
    max-width: none;
}

@media (min-width: 380px) {
    .lp-header__logo img {
        height: 30px;
    }
}

/* Progress/success/error states on light card background */
.hero--split .hero__form-card .demo-form__progress p {
    color: var(--secondary-slate, #6C7A89);
}

.hero--split .hero__form-card .demo-form__success h3 {
    color: var(--primary-navy, #0D2C54);
}

.hero--split .hero__form-card .demo-form__success p {
    color: var(--secondary-slate, #6C7A89);
}

.hero--split .hero__form-card .demo-form__trust {
    border-top: 1px solid var(--border-light, rgba(13, 44, 84, 0.08));
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.hero--split .hero__form-card .demo-form__trust-item {
    color: var(--secondary-slate, #6C7A89);
}

.hero--split .hero__form-card .demo-form__trust-item svg {
    color: var(--accent-gold, #FFB700);
}

/* Demo form grid inside hero */
.hero--split .hero__form-card .demo-form__grid {
    display: grid;
    gap: 0.55rem;
}

.hero--split .hero__form-card .demo-form__extras {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.55rem;
}

/* ── Tablet (768px): two-column, left vertically centered ── */
@media (min-width: 768px) {
    .hero--split {
        padding: 130px 32px 80px;
    }

    .hero--split .hero__content--split {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 0 2.5rem;
        align-items: center;
    }

    .hero--split .hero__left {
        order: unset;
        grid-column: 1;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero--split .hero__form-card {
        order: unset;
        grid-column: 2;
        grid-row: 1;
        max-width: none;
    }

    .hero--split .hero__headline {
        text-align: left;
    }

    .hero--split .hero__sub {
        margin: 0;
    }

    /* Show benefits & desktop proof; hide mobile proof */
    .hero__benefits {
        display: block;
    }

    .hero--split .hero__left .hero__proof {
        display: block;
        text-align: left;
        padding: 0;
    }

    .hero--split .hero__proof--mobile {
        display: none;
    }
}

/* ── Desktop (1024px) ────────────────────────────────────── */
@media (min-width: 1024px) {
    .hero--split {
        padding: 150px 40px 100px;
    }

    .hero--split .hero__content--split {
        grid-template-columns: 1fr 440px;
        gap: 0 3.5rem;
    }

    .hero--split .hero__left {
        gap: 1.75rem;
    }

    .hero--split .hero__form-card {
        padding: 2rem 1.75rem;
    }

    .hero--split .hero__form-card .demo-form__grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero__benefits li {
        font-size: 1rem;
        margin-bottom: 0.7rem;
    }

    .hero__quote {
        font-size: 0.95rem;
    }
}

/* ── Large desktop (1200px) ──────────────────────────────── */
@media (min-width: 1200px) {
    .hero--split .hero__content--split {
        grid-template-columns: 1fr 460px;
        gap: 0 4rem;
    }
}

/* ── RTL (Hebrew) ───────────────────────────────────────────── */
html[dir="rtl"] body {
    direction: rtl;
}

html[dir="rtl"] .hero--split .hero__headline,
html[dir="rtl"] .hero--split .hero__sub,
html[dir="rtl"] .hero--split .hero__proof,
html[dir="rtl"] .hero--split .hero__proof--mobile,
html[dir="rtl"] .hero--split .hero__form-card,
html[dir="rtl"] .hero--split .hero__form-card h3,
html[dir="rtl"] .hero__benefits,
html[dir="rtl"] .hero__trust-row,
html[dir="rtl"] .hero--split .hero__form-card .demo-form__trust {
    text-align: right;
}

html[dir="rtl"] .hero__benefits {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

html[dir="rtl"] .hero--split .hero__form-card .btn {
    flex-direction: row-reverse;
}

html[dir="rtl"] .hero__benefits li,
html[dir="rtl"] .hero__trust-item,
html[dir="rtl"] .hero--split .hero__form-card .demo-form__trust-item {
    direction: rtl;
    text-align: right;
    flex-direction: row;
    justify-content: flex-start;
    width: fit-content;
    max-width: 100%;
}

html[dir="rtl"] .hero__quote {
    border-left: none;
    border-right: 3px solid var(--accent-gold, #FFB700);
    padding-left: 0;
    padding-right: 0.85rem;
    text-align: right;
}

html[dir="rtl"] .hero__quote-author {
    padding-left: 0;
    padding-right: 0.85rem;
    text-align: right;
}

html[dir="rtl"] .hero--split .hero__form-card .form-group label,
html[dir="rtl"] .hero--split .hero__form-card .form-group input,
html[dir="rtl"] .hero--split .hero__form-card .form-group select,
html[dir="rtl"] .hero--split .hero__form-card .form-group textarea,
html[dir="rtl"] .hero--split .hero__form-card .consent-row,
html[dir="rtl"] .hero--split .hero__form-card .consent-row label,
html[dir="rtl"] .hero--split .hero__form-card .consent-row span {
    text-align: right;
}

html[dir="rtl"] .hero--split .form-group--float > label {
    left: auto;
    right: 1rem;
    transform-origin: right center;
}

html[dir="rtl"] .hero--split .form-group--float > input,
html[dir="rtl"] .hero--split .form-group--float > textarea,
html[dir="rtl"] .hero--split .form-group--float > select {
    text-align: right;
}

html[dir="rtl"] .hero--split .form-group--float > input:focus ~ label,
html[dir="rtl"] .hero--split .form-group--float > input:not(:placeholder-shown) ~ label,
html[dir="rtl"] .hero--split .form-group--float > input.has-value ~ label,
html[dir="rtl"] .hero--split .form-group--float > textarea:focus ~ label,
html[dir="rtl"] .hero--split .form-group--float > textarea:not(:placeholder-shown) ~ label,
html[dir="rtl"] .hero--split .form-group--float > textarea.has-value ~ label,
html[dir="rtl"] .hero--split .form-group--float > select:focus ~ label,
html[dir="rtl"] .hero--split .form-group--float > select.has-value ~ label {
    left: auto;
    right: 0.75rem;
}

html[dir="rtl"] .hero--split .form-group--float.form-group--select > select {
    background-position: left 12px center;
    padding-left: 36px;
    padding-right: 1rem;
}

html[dir="rtl"] .hero--split .hero__form-card .consent-row label {
    flex-direction: row-reverse;
}

@media (min-width: 768px) {
    html[dir="rtl"] .hero--split .hero__content--split {
        grid-template-columns: 380px 1fr;
    }

    html[dir="rtl"] .hero--split .hero__left {
        grid-column: 2;
        align-items: flex-end;
    }

    html[dir="rtl"] .hero--split .hero__form-card {
        grid-column: 1;
    }

    html[dir="rtl"] .hero--split .hero__headline,
    html[dir="rtl"] .hero__benefits,
    html[dir="rtl"] .hero--split .hero__left .hero__proof {
        width: 100%;
        max-width: 620px;
        margin-left: auto;
    }

    html[dir="rtl"] .hero__benefits li {
        width: 100%;
    }

    html[dir="rtl"] .hero--split .hero__headline,
    html[dir="rtl"] .hero--split .hero__left .hero__proof {
        text-align: right;
    }
}

@media (min-width: 1024px) {
    html[dir="rtl"] .hero--split .hero__content--split {
        grid-template-columns: 440px 1fr;
    }
}

@media (min-width: 1200px) {
    html[dir="rtl"] .hero--split .hero__content--split {
        grid-template-columns: 460px 1fr;
    }
}
