/* ═══════════════════════════════════════════════════════════════════
   GDPR Data-Breach Wizard — wizard-specific styles
   ───────────────────────────────────────────────────────────────────
   Modal shell (backdrop, container, header, body, footer, close) is
   inherited from `.fa-prefs-modal*` in fairy-aurora-edge.css — the
   same shell that powers the Preferences modal. Only wizard-specific
   inner patterns (steps, radio-cards, result tiles, recommendation,
   legal-refs) live here.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Wide-modifier on the shared container ───────────────────────── */
/* Wizard has more content than the prefs modal — give it more room. */
.fa-prefs-modal__container--wide {
    max-width: 720px;
}

/* ─── Header title block (title + subtitle stack) ─────────────────── */
.gdpr-wizard__title-block {
    flex: 1 1 auto;
    min-width: 0;
}

.gdpr-wizard__subtitle {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--fg-2);
    line-height: 1.5;
}

/* ─── Stepper band — sits below the header on surface-2 ───────────── */
.gdpr-wizard__stepper-band {
    padding: 12px 22px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

/* ─── Screen-reader-only progress (Stimulus targets kept) ─────────── */
.gdpr-wizard__progress-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─── Wizard step ─────────────────────────────────────────────────── */
.gdpr-wizard__step {
    animation: gdpr-wizard-fade-in 0.25s var(--ease-out, ease);
}

@keyframes gdpr-wizard-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gdpr-wizard__step {
        animation: none;
    }
}

.gdpr-wizard__step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.gdpr-wizard__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary, white);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Override only the white fallback — token-based version */
:where([data-theme="dark"], [data-bs-theme="dark"]) .gdpr-wizard__step-number {
    color: var(--bg);
}

.gdpr-wizard__step-title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    color: var(--fg);
    line-height: 1.3;
}

.gdpr-wizard__step-question {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--fg-2);
    line-height: 1.5;
}

/* ─── Radio / Checkbox card group ─────────────────────────────────── */
.gdpr-wizard__radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gdpr-wizard__radio-card {
    --gw-tone: var(--primary);
    --gw-tone-tint: var(--primary-tint);
    --gw-tone-glow: var(--primary-glow);

    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md, 8px);
    cursor: pointer;
    transition: background-color var(--t-fast, 120ms) var(--ease-out, ease),
        border-color var(--t-fast, 120ms) var(--ease-out, ease),
        box-shadow var(--t-fast, 120ms) var(--ease-out, ease);
}

.gdpr-wizard__radio-card:hover {
    background: var(--surface-2);
    border-color: var(--gw-tone);
}

.gdpr-wizard__radio-card:focus-within {
    outline: none;
    border-color: var(--gw-tone);
    box-shadow: 0 0 0 3px var(--gw-tone-glow);
}

.gdpr-wizard__radio-card:has(.gdpr-wizard__radio-input:checked) {
    background: var(--gw-tone-tint);
    border-color: var(--gw-tone);
    box-shadow: 0 0 0 1px var(--gw-tone);
}

.gdpr-wizard__radio-card--success {
    --gw-tone: var(--success);
    --gw-tone-tint: var(--success-glow);
    --gw-tone-glow: var(--success-glow);
}

.gdpr-wizard__radio-card--warning {
    --gw-tone: var(--warning);
    --gw-tone-tint: var(--warning-glow);
    --gw-tone-glow: var(--warning-glow);
}

.gdpr-wizard__radio-card--danger {
    --gw-tone: var(--danger);
    --gw-tone-tint: var(--danger-glow);
    --gw-tone-glow: var(--danger-glow);
}

/* Native radio/checkbox kept for a11y + form submission, visually hidden */
.gdpr-wizard__radio-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gdpr-wizard__radio-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    background: var(--surface);
    border: 2px solid var(--border-strong, var(--border));
    border-radius: 50%;
    transition: background-color var(--t-fast, 120ms) var(--ease-out, ease),
        border-color var(--t-fast, 120ms) var(--ease-out, ease);
}

.gdpr-wizard__radio-marker--check {
    border-radius: var(--r-sm, 4px);
}

.gdpr-wizard__radio-card:has(.gdpr-wizard__radio-input:checked) .gdpr-wizard__radio-marker {
    background: var(--gw-tone);
    border-color: var(--gw-tone);
    position: relative;
}

.gdpr-wizard__radio-card:has(.gdpr-wizard__radio-input[type="radio"]:checked) .gdpr-wizard__radio-marker::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--surface);
}

.gdpr-wizard__radio-card:has(.gdpr-wizard__radio-input[type="checkbox"]:checked) .gdpr-wizard__radio-marker--check::after {
    content: "";
    width: 10px;
    height: 6px;
    border: 2px solid var(--surface);
    border-top: 0;
    border-right: 0;
    transform: translateY(-1px) rotate(-45deg);
}

.gdpr-wizard__radio-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gdpr-wizard__radio-label {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--fg);
    line-height: 1.4;
}

.gdpr-wizard__radio-desc {
    font-size: 12.5px;
    color: var(--fg-2);
    line-height: 1.4;
}

/* ─── Step-4 result grid + tiles ──────────────────────────────────── */
.gdpr-wizard__result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 599px) {
    .gdpr-wizard__result-grid {
        grid-template-columns: 1fr;
    }
}

.gdpr-wizard__result-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md, 8px);
}

.gdpr-wizard__result-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-3);
}

.gdpr-wizard__deadline {
    margin-bottom: 16px;
}

/* ─── Recommendation block ────────────────────────────────────────── */
.gdpr-wizard__recommendation {
    margin-bottom: 16px;
    padding: 14px 16px;
    background: var(--warning-glow);
    border: 1px solid var(--warning);
    border-radius: var(--r-md, 8px);
}

.gdpr-wizard__recommendation-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--warning-text);
    margin-bottom: 6px;
}

.gdpr-wizard__recommendation-text {
    margin: 0;
    font-size: 13.5px;
    color: var(--fg);
    line-height: 1.5;
}

/* ─── Legal references ────────────────────────────────────────────── */
.gdpr-wizard__legal-refs {
    padding: 14px 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md, 8px);
}

.gdpr-wizard__legal-refs-title {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-3);
    margin-bottom: 6px;
}

.gdpr-wizard__legal-refs-list {
    margin: 0;
    padding-left: 18px;
    font-size: 12.5px;
    color: var(--fg-2);
    line-height: 1.6;
}

.gdpr-wizard__legal-refs-list li {
    margin: 0;
}

/* ─── Footer extras (sits inside .fa-prefs-modal__footer) ─────────── */
/* Mid-spacer keeps Back at left and Next/Complete at right of the row. */
.gdpr-wizard__footer-spacer {
    flex: 1 1 auto;
}

/* ─── Compact phone breakpoint ────────────────────────────────────── */
@media (max-width: 575px) {
    .gdpr-wizard__stepper-band {
        padding-left: 16px;
        padding-right: 16px;
    }
}
