/* Driving Logic Identity Verification — Frontend Styles */

.dl-idv-gate,
.dl-idv-challenge,
.dl-idv-lockout {
    margin: 0 auto 2rem;
    max-width: 680px;
}

.dl-idv-gate__inner,
.dl-idv-challenge__inner,
.dl-idv-lockout__inner {
    background: #fff;
    border: 1px solid #dde1e7;
    border-radius: 8px;
    padding: 2rem 2.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

.dl-idv-gate__inner h2,
.dl-idv-challenge__inner h2,
.dl-idv-lockout__inner h2 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #1a1a2e;
}

/* ---- Question block ---- */
.dl-idv-question {
    margin-bottom: 1.5rem;
}

.dl-idv-question__text {
    margin-bottom: .5rem;
    font-size: 1rem;
    color: #1a1a2e;
}

.dl-idv-question__options {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dl-idv-question__options li {
    margin-bottom: .4rem;
}

.dl-idv-question__options label {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    padding: .5rem .75rem;
    border: 1px solid #dde1e7;
    border-radius: 6px;
    transition: background .15s, border-color .15s;
}

.dl-idv-question__options label:hover {
    background: #f5f7fa;
    border-color: #a0aec0;
}

.dl-idv-question__options input[type=radio]:checked + span,
.dl-idv-question__options label:has(input:checked) {
    background: #ebf4ff;
    border-color: #3182ce;
}

/* ---- Buttons ---- */
.dl-idv-btn {
    display: inline-block;
    padding: .6rem 1.4rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: .95rem;
    font-weight: 600;
    transition: opacity .15s;
}

.dl-idv-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.dl-idv-btn--primary {
    background: #2563eb;
    color: #fff;
}

.dl-idv-btn--primary:hover:not(:disabled) {
    background: #1d4ed8;
}

.dl-idv-btn--secondary {
    background: #e5e7eb;
    color: #374151;
}

.dl-idv-btn--secondary:hover:not(:disabled) {
    background: #d1d5db;
}

/* ---- Messages ---- */
.dl-idv-challenge__message {
    margin-top: 1rem;
    padding: .75rem 1rem;
    border-radius: 6px;
    font-size: .9rem;
}

.dl-idv-message--success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.dl-idv-message--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ---- Lockout ---- */
.dl-idv-lockout__icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: .5rem;
}

.dl-idv-lockout__inner h2 {
    text-align: center;
    color: #dc2626;
}

.dl-idv-lockout__message {
    margin-bottom: 1.5rem;
    color: #374151;
    line-height: 1.6;
}

.dl-idv-countdown {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: #dc2626;
    margin: .75rem 0;
    font-variant-numeric: tabular-nums;
}

.dl-idv-lockout__countdown,
.dl-idv-lockout__self-unlock {
    text-align: center;
}

.dl-idv-lockout__self-unlock .dl-idv-btn {
    margin-top: 1rem;
}

/* ---- Challenge actions ---- */
.dl-idv-challenge__actions {
    margin-top: 1.25rem;
}
