:root {
    --g100: #f0f2fa;
}

body {
    min-height: 100vh;
}

@keyframes checkPop {
    0% {
        transform: scale(0) rotate(-10deg);
        opacity: 0
    }

    70% {
        transform: scale(1.18) rotate(3deg)
    }

    100% {
        transform: scale(1) rotate(0);
        opacity: 1
    }
}

@keyframes successIn {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.nrequestDemo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white !important;
    font-weight: 600 !important;
    border: 1.5px solid rgb(29 57 129) !important;
    padding: 8px 18px !important;
    border-radius: var(--radius-sm) !important;
    transition: all var(--transition-fast) !important;
    background: #1b377e;
}

/* ── NAV (demo-page override: sticky, not fixed) ── */
nav {
    position: sticky;
    height: 68px;
    animation: navDown .5s ease both;
}

.nav-back {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--header-text);
    font-size: .85rem;
    font-weight: 500;
    transition: color .2s;
    padding: 8px 16px;
    border: 1.5px solid var(--header-border);
    border-radius: 6px;
}

.nav-back:hover {
    color: var(--pdark);
    border-color: var(--primary);
}

.nav-back:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.nav-back svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* ── PAGE LAYOUT ── */
.page-wrap {
    min-height: calc(100vh - 68px);
    display: grid;
    /* grid-template-columns: 1fr 480px; */
    grid-template-columns: 1fr 600px;
}

/* ── LEFT PANEL ── */
.left-panel {
    background: linear-gradient(145deg, var(--pdark) 0%, var(--primary) 60%, #1a4fb0 100%);
    padding: 64px 56px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.left-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

.left-glow {
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 201, 3, .15) 0%, transparent 65%);
    pointer-events: none;
}

.left-top {
    position: relative;
    z-index: 1;
    animation: fadeUp .6s .1s both;
}

.left-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(251, 201, 3, .13);
    border: 1px solid rgba(251, 201, 3, .35);
    color: var(--secondary);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.left-panel h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 18px;
}

.left-panel h1 span {
    color: var(--secondary);
}

.left-panel p.sub {
    color: rgba(255, 255, 255, .72);
    font-size: .97rem;
    line-height: 1.72;
    margin-bottom: 36px;
    max-width: 480px;
}

/* benefits list */
.benefits {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    animation: fadeUp .6s .25s both;
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.bico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: #f3cb45 !important;
    color: #224395;
}

.benefit h4 {
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.benefit p {
    font-size: .78rem;
    color: rgba(255, 255, 255, .62);
    line-height: 1.5;
}

/* sales person card */
.sales-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: fadeUp .6s .4s both;
}

.sales-av {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--slight));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--pdark);
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(251, 201, 3, .3);
}

.sales-name {
    font-weight: 700;
    font-size: .95rem;
    color: #fff;
    margin-bottom: 3px;
}

.sales-title {
    font-size: .75rem;
    color: rgba(255, 255, 255, .58);
}

.sales-msg {
    font-size: .78rem;
    color: rgba(255, 255, 255, .72);
    line-height: 1.6;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-style: italic;
}

/* stats row */
.demo-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    animation: fadeUp .6s .5s both;
}

.dstat {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    padding: 16px 14px;
    text-align: center;
}

.dstat .dn {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--secondary);
    line-height: 1;
}

.dstat .dl {
    font-size: .7rem;
    color: rgba(255, 255, 255, .55);
    margin-top: 4px;
    line-height: 1.35;
}

/* awards */
.awards-row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    animation: fadeUp .6s .6s both;
}

.award-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 100px;
    padding: 7px 14px;
}

.award-chip span {
    font-size: .72rem;
    color: rgba(255, 255, 255, .72);
    font-weight: 500;
    line-height: 1.35;
}

.award-ic {
    font-size: .95rem;
}

/* ── RIGHT PANEL (FORM) ── */
.right-panel {
    background: var(--white);
    padding: 52px 48px 52px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--g200);
}

/* form progress indicator */
.form-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
    animation: fadeUp .6s .1s both;
}

.fp-step {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    transition: all .3s;
}

.fp-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--g200);
    color: var(--g500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
    transition: all .3s;
}

.fp-label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--g500);
    transition: color .3s;
}

.fp-step.active .fp-num {
    background: var(--primary);
    color: #fff;
}

.fp-step.active .fp-label {
    color: var(--primary);
}

.fp-step.done .fp-num {
    background: var(--success);
    color: #fff;
}

.fp-step.done .fp-label {
    color: var(--success);
}

.fp-line {
    width: 32px;
    height: 2px;
    background: var(--g200);
    transition: background .3s;
}

.fp-line.done {
    background: var(--success);
}

.form-header {
    margin-bottom: 32px;
    animation: fadeUp .6s .15s both;
}

.form-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--pdark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.form-header p {
    font-size: .88rem;
    color: var(--g500);
    line-height: 1.6;
}

.form-header .req-note {
    font-size: .75rem;
    color: var(--g500);
    margin-top: 6px;
}

.form-header .req-note span {
    color: var(--error);
}

/* form */
#demoForm {
    animation: fadeUp .6s .25s both;
}

.frow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.frow.full {
    grid-template-columns: 1fr;
}

.fgroup {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
}

.fgroup label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: .88rem;
    font-weight: 500;
    color: var(--g500);
    pointer-events: none;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 1;
    background: transparent;
    padding: 0 2px;
}

.fgroup label .req {
    color: var(--error);
    font-size: .85rem;
}

.fgroup.has-select label,
.fgroup.has-textarea label {
    position: static;
    transform: none;
    font-size: .8rem;
    font-weight: 600;
    color: var(--g800);
    margin-bottom: 6px;
    pointer-events: auto;
    background: transparent;
}

.fgroup input:focus~label,
.fgroup input:not(:placeholder-shown)~label,
.fgroup.float-active label {
    top: 0;
    transform: translateY(-50%);
    font-size: .72rem;
    font-weight: 600;
    color: var(--primary);
    background: #fff;
    padding: 0 4px;
}

.fgroup input,
.fgroup select,
.fgroup textarea {
    width: 100%;
    padding: 14px 14px 10px;
    border: 1.5px solid var(--g200);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: .88rem;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    appearance: none;
    -webkit-appearance: none;
}

.fgroup input:focus,
.fgroup select:focus,
.fgroup textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(19, 65, 150, .1);
}

.fgroup input.err,
.fgroup select.err {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .08);
}

.fgroup .errmsg {
    font-size: .72rem;
    color: var(--error);
    display: none;
    margin-top: 2px;
}

.fgroup.show-err .errmsg {
    display: block;
}

.fgroup select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a83a8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.fgroup textarea {
    resize: vertical;
    min-height: 88px;
    line-height: 1.55;
}

.fgroup .hint {
    font-size: .72rem;
    color: var(--g500);
    margin-top: 3px;
}

/* checkbox */
.fcheck {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
}

.fcheck input[type="checkbox"] {
    width: 17px;
    height: 17px;
    border: 1.5px solid var(--g200);
    border-radius: 4px;
    accent-color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.fcheck label {
    font-size: .78rem;
    color: var(--g500);
    line-height: 1.55;
    cursor: pointer;
}

.fcheck label a {
    color: var(--primary);
    font-weight: 600;
}

.fcheck label a:hover {
    text-decoration: underline;
}

/* submit */
.btn-submit {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: linear-gradient(90deg, var(--secondary), var(--slight), var(--secondary));
    background-size: 200% auto;
    color: var(--pdark);
    font-weight: 700;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    animation: shimmer 3s linear infinite;
    transition: transform .2s, box-shadow .2s;
    /* box-shadow: 0 4px 20px rgba(251, 201, 3, .4); */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(251, 201, 3, .55);
    animation: none;
    background: var(--slight);
}

.btn-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(19, 65, 150, .25);
    border-top-color: var(--pdark);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.privacy-note {
    font-size: .73rem;
    color: var(--g500);
    text-align: center;
    margin-top: 14px;
    line-height: 1.55;
}

.privacy-note a {
    color: var(--primary);
}

/* ── SUCCESS STATE ── */
.success-state {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
    animation: successIn .6s ease both;
}

.success-state.show {
    display: flex;
}

.check-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 28px rgba(22, 163, 74, .3);
    animation: checkPop .6s .1s both;
}

.check-circle svg {
    width: 38px;
    height: 38px;
    stroke: #fff;
    stroke-width: 3;
    fill: none;
}

.success-state h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pdark);
    margin-bottom: 10px;
}

.success-state p {
    font-size: .9rem;
    color: var(--g500);
    line-height: 1.65;
    max-width: 340px;
    margin-bottom: 26px;
}

.success-details {
    background: var(--g100);
    border-radius: 12px;
    padding: 18px 22px;
    width: 100%;
    margin-bottom: 24px;
    text-align: left;
}

.success-details p {
    font-size: .82rem;
    color: var(--g800);
    line-height: 1.65;
    margin-bottom: 6px;
}

.success-details p:last-child {
    margin: 0;
}

.success-details strong {
    color: var(--primary);
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
    transition: all .2s;
}

.btn-back-home:hover {
    background: var(--pdark);
    transform: translateY(-2px);
}

.btn-back-home svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* ── FOOTER STRIP ── */
.demo-footer {
    background: var(--navbg);
    padding: 20px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.demo-footer p {
    color: rgba(255, 255, 255, .4);
    font-size: .75rem;
}

.demo-footer .flinks {
    display: flex;
    gap: 20px;
}

.demo-footer .flinks a {
    color: rgba(255, 255, 255, .4);
    font-size: .75rem;
    transition: color .2s;
}

.demo-footer .flinks a:hover {
    color: var(--secondary);
}

/* ── RESPONSIVE ── */
@media(max-width:1000px) {
    .page-wrap {
        grid-template-columns: 1fr;
    }

    .left-panel {
        padding: 48px 5%;
    }

    .right-panel {
        padding: 48px 5%;
    }

    .demo-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width:640px) {
    .frow {
        grid-template-columns: 1fr;
    }

    .demo-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .dstat .dn {
        font-size: 1.4rem;
    }

    nav {
        padding: 0 18px;
    }

    .right-panel {
        padding: 36px 18px;
    }

    .left-panel {
        padding: 36px 18px;
    }
}