/* =====================================================================
   Innova Law — Guided case wizard styles
   Reuses tokens from site.css: #A20000 primary, Public Sans, Tabler.
   ===================================================================== */

.wizard-page {
    background:
        radial-gradient(60% 60% at 50% 0%, rgba(162, 0, 0, 0.06) 0%, rgba(248, 247, 250, 0) 60%),
        #f8f7fa;
    padding: 3rem 0 5rem;
    min-height: 80vh;
}

.wizard-page-title {
    font-family: "Public Sans", sans-serif;
    font-weight: 700;
    color: #1a1c1e;
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    letter-spacing: -0.01em;
}

.wizard-page-subtitle {
    color: #5d6577;
    font-size: 1rem;
    margin: 0;
}

/* ========== Stepper ========== */
.wizard-stepper {
    position: relative;
    margin: 2rem auto 2.5rem;
    max-width: 760px;
}

.wizard-stepper-track {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 1.25rem;
    height: 3px;
    background: #e6e8ee;
    border-radius: 3px;
    z-index: 0;
}

.wizard-stepper-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #A20000, #cc0000);
    border-radius: 3px;
    transition: width 0.35s ease;
}

.wizard-stepper-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: relative;
    z-index: 1;
}

.wizard-stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: default;
}

.wizard-stepper-bullet {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #d8dbe3;
    color: #8b93a6;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wizard-stepper-label {
    font-size: 0.8125rem;
    color: #8b93a6;
    font-weight: 500;
    text-align: center;
    transition: color 0.25s ease;
}

.wizard-stepper-item.is-complete .wizard-stepper-bullet {
    background: #A20000;
    border-color: #A20000;
    color: #fff;
}

.wizard-stepper-item.is-active .wizard-stepper-bullet {
    background: #fff;
    border-color: #A20000;
    color: #A20000;
    box-shadow: 0 0 0 4px rgba(162, 0, 0, 0.12);
}

.wizard-stepper-item.is-active .wizard-stepper-label,
.wizard-stepper-item.is-complete .wizard-stepper-label {
    color: #1a1c1e;
}

/* ========== Card ========== */
.wizard-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    padding: 2.25rem;
    max-width: 1024px;
    margin: 0 auto;
}

@@media (max-width: 575.98px) {
    .wizard-card { padding: 1.25rem; border-radius: 0.75rem; }
    .wizard-stepper-label { display: none; }
}

.wizard-step {
    display: none;
    animation: wizardFadeIn 0.35s ease both;
}

.wizard-step.is-active { display: block; }

@@keyframes wizardFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wizard-step-header {
    margin-bottom: 1.75rem;
}

.wizard-step-title {
    font-family: "Public Sans", sans-serif;
    font-weight: 700;
    color: #1a1c1e;
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}

.wizard-step-subtitle {
    color: #5d6577;
    margin: 0 0 0.75rem;
}

/* ========== Chips (selected breadcrumbs) ========== */
.wizard-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(162, 0, 0, 0.08);
    color: #A20000;
    border: 1px solid rgba(162, 0, 0, 0.18);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.wizard-chip-secondary {
    background: #f3f4f8;
    color: #1a1c1e;
    border-color: #e6e8ee;
}

.wizard-chip:empty { display: none; }

/* ========== Area cards (step 1) ========== */
.wizard-area-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
    width: 100%;
    height: 100%;
    background: #fff;
    border: 2px solid #e6e8ee;
    border-radius: 0.875rem;
    padding: 1.25rem;
    color: inherit;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 168px;
}

.wizard-area-card:hover {
    transform: translateY(-3px);
    border-color: rgba(162, 0, 0, 0.4);
    box-shadow: 0 12px 24px rgba(162, 0, 0, 0.08);
}

.wizard-area-card.is-selected {
    border-color: #A20000;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(162, 0, 0, 0.12), 0 12px 24px rgba(162, 0, 0, 0.1);
}

.wizard-area-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    background: rgba(162, 0, 0, 0.08);
    color: #A20000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.wizard-area-card.is-selected .wizard-area-icon {
    background: #A20000;
    color: #fff;
}

.wizard-area-name {
    font-weight: 700;
    font-size: 1.0625rem;
    color: #1a1c1e;
    line-height: 1.3;
}

.wizard-area-body {
    color: #6b7280;
    font-size: 0.8125rem;
    line-height: 1.45;
}

/* ========== Generic option list (steps 2 & 3) ========== */
.wizard-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@@media (max-width: 575.98px) {
    .wizard-options { grid-template-columns: 1fr; }
}

.wizard-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #fff;
    border: 2px solid #e6e8ee;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    text-align: left;
    color: inherit;
    cursor: pointer;
    transition: all 0.18s ease;
    gap: 1rem;
}

.wizard-option:hover {
    border-color: rgba(162, 0, 0, 0.4);
    background: #fff;
    transform: translateY(-1px);
}

.wizard-option.is-selected {
    border-color: #A20000;
    background: rgba(162, 0, 0, 0.04);
    box-shadow: 0 0 0 4px rgba(162, 0, 0, 0.08);
}

.wizard-option-name {
    font-weight: 600;
    color: #1a1c1e;
    flex: 1;
}

.wizard-option-radio {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 2px solid #c4c8d4;
    flex-shrink: 0;
    transition: all 0.18s ease;
    position: relative;
}

.wizard-option.is-selected .wizard-option-radio {
    border-color: #A20000;
    background: #A20000;
}

.wizard-option.is-selected .wizard-option-radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: #fff;
    border-radius: 50%;
}

.wizard-option-price {
    font-size: 0.875rem;
    color: #5d6577;
    font-weight: 500;
    flex-shrink: 0;
}

.wizard-option.is-selected .wizard-option-price {
    color: #A20000;
    font-weight: 700;
}

.wizard-loader { padding: 2rem 0; }

.wizard-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #8b93a6;
    background: #f8f7fa;
    border-radius: 0.75rem;
}

/* ========== Forms (step 4) ========== */
.wizard-step .form-label {
    font-weight: 600;
    color: #1a1c1e;
    margin-bottom: 0.375rem;
}

.wizard-step .form-control {
    border-radius: 0.5rem;
    border-color: #d8dbe3;
    padding: 0.65rem 0.875rem;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.wizard-step .form-control:focus {
    border-color: #A20000;
    box-shadow: 0 0 0 3px rgba(162, 0, 0, 0.12);
}

.wizard-step .form-check-input:checked {
    background-color: #A20000;
    border-color: #A20000;
}

.wizard-step .form-check-input:focus {
    border-color: #A20000;
    box-shadow: 0 0 0 0.2rem rgba(162, 0, 0, 0.15);
}

/* ========== Summary box (step 4) ========== */
.wizard-summary {
    background: #f8f7fa;
    border-left: 4px solid #A20000;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
}

.wizard-summary-label {
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    color: #8b93a6;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.wizard-summary-value {
    color: #1a1c1e;
    font-weight: 600;
    font-size: 1rem;
}

.wizard-summary-price {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    color: #A20000;
}

/* ========== Help/error/nav ========== */
.wizard-help {
    text-align: center;
    color: #5d6577;
}

.wizard-link {
    color: #A20000;
    text-decoration: none;
}

.wizard-link:hover { color: #cc0000; text-decoration: underline; }

.wizard-error {
    color: #c0392b;
    font-size: 0.9375rem;
    font-weight: 500;
    min-height: 1.4em;
}

.wizard-error:empty { display: none; }

.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 1024px;
    margin: 2rem auto 0;
}

.wizard-nav .btn:disabled { opacity: 0.45; }

#wizardSubmit:not(.d-none) + #wizardNext,
#wizardSubmit:not(.d-none) ~ #wizardNext { display: none; }

/* ========== Step 5: Success ========== */
.wizard-step-success {
    text-align: center;
    padding: 1rem 0.5rem;
}

.wizard-success-icon {
    font-size: 4rem;
    color: #198754;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.wizard-success-title {
    font-family: "Public Sans", sans-serif;
    font-weight: 700;
    color: #1a1c1e;
    margin: 0.25rem 0 0.5rem;
}

.wizard-success-subtitle {
    color: #5d6577;
    margin: 0 0 1.5rem;
}

.wizard-success-case {
    background: linear-gradient(135deg, rgba(162, 0, 0, 0.04), rgba(162, 0, 0, 0.08));
    border: 1px solid rgba(162, 0, 0, 0.15);
    border-radius: 0.875rem;
    padding: 1.25rem 1.5rem;
    margin: 0 auto 1.5rem;
    max-width: 480px;
}

.wizard-success-case-label {
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    color: #8b93a6;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.wizard-success-case-number {
    font-family: "Public Sans", sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: #A20000;
    margin-bottom: 0.5rem;
}

.wizard-success-case-path {
    color: #5d6577;
    font-size: 0.9375rem;
}

.wizard-success-next-title {
    margin: 1.5rem 0 1rem;
    color: #1a1c1e;
    font-weight: 700;
}

.wizard-success-next {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 480px;
    text-align: left;
}

.wizard-success-next li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem 0;
    color: #1a1c1e;
}

.wizard-success-step-num {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: #A20000;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
