/* ========================================
   Verify Page Styles (v2)
   ======================================== */

/* Home page (code entry) */
.v-home-card {
    max-width: 420px;
    margin: 0 auto;
}

.v-code-input {
    width: min(320px, 100%);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-align: center;
    color: #212529;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.v-code-input::placeholder {
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #adb5bd;
}
.v-code-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

.v-home-help {
    margin-top: 0.85rem;
    font-size: 0.78rem;
    color: #6c757d;
    line-height: 1.45;
}

/* Top tracker (shared across pages) */
.v-top-tracker {
    margin: 0 auto 1.5rem;
    width: min(480px, 100%);
}

.v-top-track {
    counter-reset: v-step;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;

    opacity: 0;
    transform: translateY(-6px);
    animation: v-top-in 400ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes v-top-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Each step: dot + label stacked vertically */
.v-top-step {
    counter-increment: v-step;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: default;
    pointer-events: none;
    user-select: none;
    flex: 0 0 auto;

    opacity: 0;
    transform: translateY(-4px);
    animation: v-top-step-in 380ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.v-top-step:nth-child(1) { animation-delay: 80ms; }
.v-top-step:nth-child(2) { animation-delay: 140ms; }
.v-top-step:nth-child(3) { animation-delay: 200ms; }
.v-top-step:nth-child(4) { animation-delay: 260ms; }

@keyframes v-top-step-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Connector line between steps */
.v-top-sep {
    flex: 1;
    min-width: 6px;
    height: 1.5px;
    background: #e9ecef;
    border-radius: 1px;
    margin-bottom: 0.85rem; /* aligns with dot row */
    transition: background 0.3s ease;
}
.v-top-sep.done {
    background: #a3c9b4;
}

/* The dot / badge */
.v-top-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 700;
    border: 2px solid #dee2e6;
    color: #adb5bd;
    background: #fff;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

/* Show step number via counter on non-done steps */
.v-top-step:not(.done) .v-top-dot::before {
    content: counter(v-step);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
}

.v-top-step.active .v-top-dot {
    border-color: #93b8f5;
    color: #5b92e5;
    background: #eef4ff;
    box-shadow: none;
}

.v-top-step.done .v-top-dot {
    border-color: #7db99a;
    color: #fff;
    background: #7db99a;
}

.v-top-step.pending .v-top-dot {
    border-color: #e9ecef;
    color: #ced4da;
    background: #f8f9fa;
}

/* Checkmark for done steps */
.v-top-step.done .v-top-dot::after {
    content: "";
    display: block;
    width: 4px;
    height: 7px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}

.v-top-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #adb5bd;
    transition: color 0.25s ease;
}
.v-top-step.active .v-top-label {
    color: #5b92e5;
}
.v-top-step.done .v-top-label {
    color: #7db99a;
}

@media (prefers-reduced-motion: reduce) {
    .v-top-track,
    .v-top-step {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}

/* Stepper */
.v-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
}
.v-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.v-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid #dee2e6;
    color: #adb5bd;
    background: #fff;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.v-step-circle.active {
    border-color: #0d6efd;
    color: #0d6efd;
    background: #e7f1ff;
}
.v-step-circle.done {
    border-color: #198754;
    color: #fff;
    background: #198754;
}
.v-step-label {
    font-size: 0.8rem;
    color: #adb5bd;
    font-weight: 500;
    transition: color 0.3s ease;
}
.v-step-label.active {
    color: #0d6efd;
}
.v-step-label.done {
    color: #198754;
}
.v-step-line {
    width: 40px;
    height: 2px;
    background: #dee2e6;
    margin: 0 0.5rem;
    transition: background 0.3s ease;
}
.v-step-line.done {
    background: #198754;
}

/* Card */
.v-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

/* Icon wrap */
.v-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.v-icon-wrap.id-bg {
    background: #e7f1ff;
}
.v-icon-wrap.selfie-bg {
    background: #fef3e2;
}

/* Card content */
.v-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.35rem;
}
.v-card-desc {
    font-size: 0.82rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.45;
}

/* Upload button */
.v-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    position: relative;
    overflow: hidden;
}
.v-upload-btn:hover {
    background: #0b5ed7;
}
.v-upload-btn:active {
    transform: scale(0.98);
}
.v-upload-btn input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
}

/* Tips */
.v-tips {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.v-tip {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: #6c757d;
}
.v-tip svg {
    flex-shrink: 0;
}

/* Overlay */
.v-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.v-overlay-inner {
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 360px;
    width: 100%;
}

/* Progress */
.v-progress-item {
    width: 100%;
    margin-bottom: 1.25rem;
}
.v-progress-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
}
.v-progress-header .v-prog-icon {
    width: 22px;
    height: 22px;
    margin-right: 0.5rem;
    flex-shrink: 0;
}
.v-progress-header .v-prog-label {
    font-size: 0.88rem;
    font-weight: 500;
    color: #212529;
}
.v-progress-header .v-prog-status {
    margin-left: auto;
    font-size: 0.78rem;
    color: #6c757d;
}
.v-progress-track {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}
.v-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: #0d6efd;
    transition: width 0.4s ease, background 0.3s ease;
}
.v-progress-fill.done {
    background: #198754;
}

/* Error overlay */
.v-error-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fce4e6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.v-error-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 0.5rem;
}
.v-error-msg {
    font-size: 0.88rem;
    color: #495057;
    margin-bottom: 1.25rem;
    line-height: 1.45;
}
.v-error-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.2rem;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
}
.v-error-btn:hover {
    background: #bb2d3b;
    color: #fff;
    text-decoration: none;
}

/* Server error */
.v-server-error {
    background: #fce4e6;
    color: #842029;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Skip link */
.v-skip-link {
    font-size: 0.8rem;
    color: #6c757d;
    text-decoration: underline;
    margin-top: 1rem;
    display: inline-block;
}
.v-skip-link:hover {
    color: #495057;
}

/* Waiting text */
.v-waiting-text {
    font-size: 0.82rem;
    color: #6c757d;
    margin-top: 0.75rem;
}

/* Pulse animation */
@keyframes v-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.v-pulsing {
    animation: v-pulse 1.5s ease-in-out infinite;
}

/* ========================================
   Overview / Checklist Styles
   ======================================== */
.v-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.v-check-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem 1.15rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.v-check-item:hover {
    text-decoration: none;
    color: inherit;
    border-color: #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.v-check-item.pending:hover {
    border-color: #0d6efd;
}

.v-check-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.v-check-icon.done {
    background: #d1e7dd;
    color: #198754;
}
.v-check-icon.pending {
    background: #f8f9fa;
    color: #adb5bd;
}

.v-check-content {
    flex: 1;
    min-width: 0;
}
.v-check-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
}
.v-check-status {
    font-size: 0.78rem;
    margin-top: 0.1rem;
}
.v-check-status.done {
    color: #198754;
}
.v-check-status.pending {
    color: #dc3545;
}

.v-check-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* ========================================
   Form Wizard Navigation Buttons
   ======================================== */
.v-next-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.2rem;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}
.v-next-btn:hover {
    background: #0b5ed7;
}
.v-next-btn:active {
    transform: scale(0.98);
}
.v-next-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.v-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.55rem 1.2rem;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.v-back-btn:hover {
    border-color: #adb5bd;
    color: #495057;
}

/* ========================================
   OCR Confirmation Summary
   ======================================== */
.v-ocr-summary {
    text-align: left;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}
.v-ocr-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.4rem 0;
    border-bottom: 1px solid #e9ecef;
}
.v-ocr-row:last-child {
    border-bottom: none;
}
.v-ocr-label {
    font-size: 0.78rem;
    color: #6c757d;
    font-weight: 500;
    flex-shrink: 0;
    margin-right: 0.75rem;
}
.v-ocr-value {
    font-size: 0.88rem;
    color: #212529;
    font-weight: 600;
    text-align: right;
}
