/* ====================================================
   VTS – application form + thank-you
   (uses the tokens from veritech.css)
==================================================== */

.vf-hero {
    padding: 40px 0 50px;
}

.vf-hero h1 {
    margin-bottom: 10px;
    font-size: clamp(30px, 4.4vw, 48px);
}

.vf-hero p {
    margin: 0;
}

.vf-back-link {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.vf-back-link:hover {
    color: var(--blue);
}

html[dir="rtl"] .vf-back-link i {
    transform: scaleX(-1);
}

.vf-body {
    padding: 34px 0 90px;
}

.vf-body .vt-wrap {
    max-width: 900px;
}

/* ================= STEPPER ================= */

.vf-stepper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    scroll-margin-top: 90px;
}

.vf-stepper::before {
    content: "";
    position: absolute;
    top: 21px;
    inset-inline: 8% 8%;
    border-top: 2px solid var(--line);
}

.vf-stepper-item {
    position: relative;
    text-align: center;
}

.vf-stepper-item .dot {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    margin: 0 auto 8px;
    display: grid;
    place-items: center;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--navy);
    font-size: 16px;
    font-weight: 900;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.vf-stepper-item .lbl {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.vf-stepper-item.is-done {
    cursor: pointer;
}

.vf-stepper-item.is-done .dot {
    border-color: var(--deep);
    background: var(--deep);
    color: #fff;
}

.vf-stepper-item.is-active .dot {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
    transform: scale(1.1);
}

.vf-stepper-item.is-active .lbl {
    color: var(--navy);
}

/* ================= CARD ================= */

.vf-card {
    position: relative;
    padding: 34px 38px 30px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.vf-progress {
    position: absolute;
    top: 0;
    inset-inline: 24px;
    height: 5px;
    overflow: hidden;
    border-radius: 0 0 6px 6px;
    background: var(--mist);
}

.vf-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--blue);
    transition: width 0.3s ease;
}

.vf-step-count {
    margin: 0 0 6px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html[dir="rtl"] .vf-step-count {
    letter-spacing: 0;
}

.vf-step {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.vf-step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 0;
    color: var(--navy);
    font-size: 24px;
    font-weight: 900;
}

.vf-step-title i {
    color: var(--blue);
    font-size: 20px;
}

.vf-alert {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 2px solid #ef4444;
    border-radius: 14px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 14px;
}

.vf-alert i {
    margin-top: 3px;
}

.vf-alert span {
    display: block;
}

/* ================= FIELDS ================= */

.vf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 22px;
}

.vf-span-2 {
    grid-column: 1 / -1;
}

.vf-field {
    min-width: 0;
}

.vf-label {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.vf-req {
    color: var(--blue);
}

.vf-opt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.vf-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #c9d9e8;
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vf-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(34, 156, 217, 0.15);
}

textarea.vf-input {
    min-height: 96px;
    resize: vertical;
}

html[dir="rtl"] .vf-input[dir="ltr"] {
    text-align: right;
}

.vf-other {
    margin-top: 10px;
}

.vf-counter {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.vf-counter.over {
    color: #dc2626;
    font-weight: 700;
}

.vf-error {
    margin: 6px 0 0;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
}

.has-error .vf-input,
.has-error .vf-drop {
    border-color: #ef4444;
}

.has-error .vf-choice span,
.has-error .vf-track-card .card,
.has-error .vf-agree {
    border-color: #f3a5a5;
}

/* ================= CHOICE CHIPS ================= */

.vf-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vf-choices-col {
    flex-direction: column;
}

.vf-choice {
    position: relative;
    cursor: pointer;
}

.vf-choice input,
.vf-track-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vf-choice span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid #c9d9e8;
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.vf-choices-col .vf-choice span {
    display: flex;
}

.vf-choice span::before {
    content: "";
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 2px solid #9fb7cc;
    border-radius: 50%;
    transition: all 0.15s ease;
}

.vf-check span::before {
    border-radius: 5px;
}

.vf-choice:hover span {
    border-color: var(--sky);
}

.vf-choice input:checked + span {
    border-color: var(--blue);
    background: rgba(34, 156, 217, 0.08);
    color: var(--navy);
}

.vf-choice input:checked + span::before {
    border-color: var(--blue);
    background: var(--blue);
    box-shadow: inset 0 0 0 3px var(--surface);
}

.vf-choice input:focus-visible + span,
.vf-track-card input:focus-visible + .card {
    outline: 3px solid rgba(34, 156, 217, 0.4);
    outline-offset: 2px;
}

/* ================= TRACK CARDS ================= */

.vf-tracks {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.vf-track-card {
    position: relative;
    cursor: pointer;
}

.vf-track-card .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 10px;
    border: 2px solid #c9d9e8;
    border-radius: 16px;
    background: var(--surface);
    text-align: center;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.vf-track-card .card i {
    color: var(--deep);
    font-size: 24px;
}

.vf-track-card .card strong {
    color: var(--navy);
    font-size: 14px;
    line-height: 1.3;
}

.vf-track-card:hover .card {
    transform: translateY(-3px);
}

.vf-track-card input:checked + .card {
    border-color: var(--blue);
    background: var(--blue);
    box-shadow: 0 10px 24px rgba(35, 157, 217, 0.3);
}

.vf-track-card input:checked + .card i,
.vf-track-card input:checked + .card strong {
    color: #fff;
}

/* ================= FILE DROP ================= */

.vf-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 26px 16px;
    border: 2px dashed #9fc4e2;
    border-radius: 16px;
    background: rgba(34, 156, 217, 0.04);
    color: var(--muted);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.vf-drop i {
    color: var(--blue);
    font-size: 28px;
}

.vf-drop-text {
    color: var(--navy);
    font-weight: 700;
    word-break: break-all;
}

.vf-drop small {
    font-size: 13px;
}

.vf-drop input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.vf-drop:hover,
.vf-drop.is-drag {
    border-color: var(--blue);
    background: rgba(34, 156, 217, 0.08);
}

.vf-drop.has-file {
    border-style: solid;
    border-color: var(--blue);
}

/* ================= AGREEMENTS ================= */

.vf-agree {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #c9d9e8;
    border-radius: 14px;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.55;
    cursor: pointer;
}

.vf-agree input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--blue);
}

.vf-agree:has(input:checked) {
    border-color: var(--blue);
    background: rgba(34, 156, 217, 0.06);
}

.vf-step[data-step="5"] .vf-field + .vf-field {
    margin-top: 12px;
}

.vf-intro {
    margin: 0 0 20px;
    color: var(--muted);
}

.vf-intro strong {
    color: var(--navy);
}

.vf-intro i {
    color: var(--blue);
}

.vf-empty {
    padding: 20px;
    border: 2px dashed #c9d9e8;
    border-radius: 14px;
    color: var(--muted);
    text-align: center;
}

/* ================= SUMMARY ================= */

.vf-summary {
    margin-bottom: 20px;
    padding: 20px 22px;
    border-radius: 16px;
    background: var(--mist);
}

.vt .vf-summary h3 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 800;
}

.vf-summary dl {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 8px 16px;
    margin: 0;
    font-size: 14px;
}

.vf-summary dt {
    color: var(--muted);
    font-weight: 600;
}

.vf-summary dd {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
    word-break: break-word;
}

/* ================= NAVIGATION ================= */

.vf-nav {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 2px dashed #d5e3ef;
}

.vf-nav [data-next],
.vf-nav [data-submit] {
    margin-inline-start: auto;
}

/* ================= THANK YOU ================= */

.vf-thanks {
    padding: 70px 0 100px;
    text-align: center;
}

.vf-thanks .vt-cap {
    width: 140px;
    height: auto;
    margin: 0 auto 22px;
}

.vf-thanks .note {
    margin-bottom: 26px;
}

.vt .vf-thanks h1 {
    margin-bottom: 14px;
    font-size: clamp(30px, 4.4vw, 46px);
    font-weight: 900;
    text-align: center;
}

.vf-thanks p {
    max-width: 560px;
    margin: 0 auto 30px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

/* ================= DARK MODE ================= */

body.dark-mode .vf-input,
body.dark-mode .vf-choice span,
body.dark-mode .vf-track-card .card,
body.dark-mode .vf-agree {
    border-color: #2c4a70;
}

body.dark-mode .vf-card {
    border-color: #2c4a70;
    box-shadow: var(--shadow-lg);
}

body.dark-mode .vf-alert {
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
}

body.dark-mode .vf-nav {
    border-color: #2c4a70;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 760px) {
    .vf-tracks {
        grid-template-columns: repeat(2, 1fr);
    }

    .vf-stepper {
        margin-bottom: 44px;
    }

    .vf-stepper .lbl {
        display: none;
    }

    .vf-stepper-item.is-active .lbl {
        position: absolute;
        top: 52px;
        left: 50%;
        display: block;
        width: max-content;
        max-width: 140px;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .vf-card {
        padding: 26px 18px 22px;
        box-shadow: var(--shadow-sm);
    }

    .vf-grid {
        grid-template-columns: 1fr;
    }

    .vf-stepper-item .dot {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .vf-stepper::before {
        top: 17px;
    }

    .vf-stepper-item.is-active .lbl {
        top: 44px;
    }

    .vf-summary dl {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .vf-summary dd {
        margin-bottom: 8px;
    }

    .vf-nav .vt-btn {
        flex: 1;
        padding: 14px 16px;
    }
}
