.vri-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.vri-overlay.is-open {
    display: block;
}

.vri-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 13, 10, 0.72);
    backdrop-filter: blur(2px);
}

.vri-dialog {
    position: relative;
    width: min(1024px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    margin: 16px auto;
    background: linear-gradient(155deg, #f4f7f1, #fdfcf9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
    display: flex;
    flex-direction: column;
    animation: vri-enter 220ms ease;
}

@keyframes vri-enter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.vri-close {
    position: absolute;
    right: 14px;
    top: 10px;
    border: 0;
    width: 34px;
    height: 34px;
    line-height: 34px;
    border-radius: 999px;
    background: #e4ece2;
    color: #1a3826;
    font-size: 24px;
    cursor: pointer;
}

.vri-header {
    padding: 30px 38px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.vri-kicker {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #476647;
    font-weight: 700;
}

.vri-header h2 {
    margin: 10px 0 8px;
    color: #10261a;
    font-size: clamp(1.4rem, 2.7vw, 2.2rem);
    line-height: 1.15;
}

.vri-claim {
    margin: 0;
    color: #2b4a3a;
    font-size: 1rem;
    max-width: 780px;
}

.vri-flow {
    padding: 24px 38px 32px;
    overflow: auto;
}

.vri-step {
    border-radius: 12px;
    margin-bottom: 12px;
    position: relative;
}

.vri-step-content {
    padding: 10px;
}

.vri-step-index {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: #1a3c2b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.vri-step-question {
    margin: 10px 0 0;
    font-size: 1.05rem;
    line-height: 1.45;
    color: #10261a;
}

.vri-step-answer {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

.vri-step-past {
    color: #ffffff;
}

.vri-step-past .vri-step-question {
    color: rgba(255, 255, 255, 0.9);
}

.vri-step-current {
    background: #edf2ea;
}

.vri-step.has-parent-link {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
}

.vri-step.has-parent-link::before {
    content: none;
}

.vri-step.has-parent-link::after {
    content: none;
}

.vri-grid {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.vri-card {
    text-align: center;
    border: 0;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    background: #ffffff;
    width: 140px;
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.12);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.vri-card:focus-visible,
.vri-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.vri-card.is-selected {
    box-shadow: 0 0 0 2px var(--vri-card-color, #2D6A4F), 0 14px 28px rgba(0, 0, 0, 0.18);
}

.vri-card.is-inactive .vri-card-media {
    filter: grayscale(1);
    opacity: 0.45;
}

.vri-card.is-inactive .vri-card-label {
    color: #6f796f;
    border-top-color: #a8b1a8;
}

.vri-card-media {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--vri-card-bg-color, #2D6A4F);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 44%;
    transition: filter 180ms ease, opacity 180ms ease;
}

.vri-card-media.has-image {
    background-size: cover;
}

.vri-card-label {
    display: block;
    padding: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.25;
    color: #113122;
    min-height: 54px;
    border-top: 4px solid var(--vri-card-border-color, #2D6A4F);
    text-align: center;
}

body.vri-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .vri-card {
        width: 128px;
    }
}

@media (max-width: 680px) {
    .vri-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        margin: 8px auto;
        border-radius: 14px;
    }

    .vri-header,
    .vri-flow {
        padding-left: 16px;
        padding-right: 16px;
    }

    .vri-card {
        width: 114px;
    }

}
