/* ============================================
   FURNESS — CSS
   Prefix: fw-

   Two contexts:
   1) Standalone wizard (wizard.blade.php — own <body>)
   2) Non-wizard pages within @extends('page') — light theme
   ============================================ */

/* ===========================================
   SECTION A — STANDALONE WIZARD (dark theme)
   Dark navy, accento unico sky-blue
   =========================================== */

:root {
    --fw-bg-body: #0c2646;
    --fw-bg-card: rgba(255,255,255,0.08);
    --fw-bg-input: #fff;
    --fw-bg-elevated: rgba(255,255,255,0.12);
    --fw-accent: #38bdf8;
    --fw-accent-glow: rgba(56, 189, 248, 0.18);
    --fw-accent-ring: rgba(56, 189, 248, 0.28);
    --fw-text: #f1f5f9;
    --fw-text-mid: #c8d4e6;
    --fw-text-light: #8fa3c2;
    --fw-text-muted: #6b82a8;
    --fw-border: rgba(255,255,255,0.12);
    --fw-border-hover: rgba(255,255,255,0.20);
    --fw-cta: #38bdf8;
    --fw-green: #22c55e;
}

/* --- Body & Global --- */
body:has(.fw-topbar) {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(to right, rgb(12, 38, 70) 0%, rgb(32, 64, 101) 60%, rgb(42, 87, 136) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--fw-text);
    -webkit-font-smoothing: antialiased;
}
body:has(.fw-topbar) *, body:has(.fw-topbar) *::before, body:has(.fw-topbar) *::after {
    box-sizing: border-box;
}

/* --- Close Button --- */
.fw-close {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 100;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--fw-bg-elevated);
    border: 1px solid var(--fw-border);
    color: var(--fw-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}
.fw-close:hover {
    background: var(--fw-bg-card);
    border-color: var(--fw-border-hover);
    color: var(--fw-text);
    text-decoration: none;
}

/* --- Top Bar --- */
.fw-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 12px 32px;
    background: var(--fw-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--fw-border);
    min-height: 66px;
}
.fw-topbar-logo {
    display: flex;
    align-items: center;
    justify-self: start;
}
.fw-brand-pic-logo {
    height: 48px;
    width: auto;
    display: block;
}
.fw-topbar-right {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 10px;
}
.fw-brand-alfa-logo,
.fw-brand-furness-logo {
    height: 48px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    background: #fff;
    border-radius: 10px;
    padding: 6px 12px;
}
.fw-topbar-product {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: center;
    padding: 8px 20px;
    border-radius: 10px;
    background: var(--fw-accent-glow);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: var(--fw-accent);
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}
.fw-topbar-product i {
    font-size: 0.9em;
}

/* --- Partner bar (mobile only) --- */
.fw-topbar-partners {
    display: none;
}

/* --- Progress Section --- */
.fw-progress-section {
    padding: 32px 32px 20px;
    background: transparent;
}
.fw-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-bottom: 20px;
}
/* Connecting track (background line) */
.fw-progress-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 8%;
    right: 8%;
    height: 4px;
    background: rgba(255,255,255,0.10);
    border-radius: 3px;
    z-index: 0;
}
.fw-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}
.fw-progress-dot {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: rgba(255,255,255,0.30);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.fw-progress-step.active .fw-progress-dot {
    background: var(--fw-accent);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
    transform: scale(1.05);
}
/* Pulse ring on active */
.fw-progress-step.active .fw-progress-dot::before {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 20px;
    border: 2px solid var(--fw-accent);
    opacity: 0.4;
    animation: fw-pulse-ring 2s ease-in-out infinite;
}
@keyframes fw-pulse-ring {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.1; transform: scale(1.08); }
}
.fw-progress-step.completed .fw-progress-dot {
    background: var(--fw-green);
    border-color: transparent;
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}
.fw-progress-step.completed .fw-progress-dot::after {
    content: '\2713';
    font-size: 1.1rem;
    font-weight: 900;
}
.fw-progress-step.completed .fw-progress-dot i {
    display: none;
}
.fw-progress-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.30);
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    transition: all 0.3s;
}
.fw-progress-step.active .fw-progress-label {
    color: #fff;
    font-weight: 700;
}
.fw-progress-step.completed .fw-progress-label {
    color: rgba(255,255,255,0.55);
    font-weight: 600;
}
.fw-progress-step.completed {
    cursor: pointer;
}
.fw-progress-step.completed:hover .fw-progress-dot {
    background: #16a34a;
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

/* Bar — green */
.fw-progress-bar {
    height: 18px;
    background: rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
    border-radius: 9px;
}
.fw-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 9px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    position: relative;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}
.fw-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: fw-shimmer 2s ease-in-out infinite;
}

/* Percentage */
.fw-progress-pct {
    text-align: right;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--fw-green);
    margin-top: 8px;
    letter-spacing: -0.3px;
}

/* Mobile */
@media (max-width: 576px) {
    .fw-progress-section { padding: 16px 12px 10px; }
    .fw-progress-label { display: none; }
    .fw-progress-step.active .fw-progress-label { display: block; font-size: 0.7rem; }
    .fw-progress-dot { width: 38px; height: 38px; font-size: 0.8rem; border-radius: 12px; }
    .fw-progress-steps::before, .fw-progress-steps::after { top: 18px; }
    .fw-progress-step.active .fw-progress-dot::before { inset: -5px; border-radius: 15px; }
}

/* --- Main & Wrapper --- */
.fw-main {
    padding: 40px 20px 60px;
    min-height: calc(100vh - 68px);
}
.fw-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

/* --- Step Header --- */
.fw-step-header {
    text-align: center;
    margin-bottom: 32px;
    background: #fff;
    border: none;
    padding: 32px 24px 24px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.fw-step-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--fw-accent), #0284c7);
    color: #fff;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -52px auto 16px;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
    border: none;
}
.fw-step-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}
.fw-step-header p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* --- Contact Selector Box --- */
.fw-contact-box {
    background: #fff;
    border: none;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.fw-contact-box label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
}
.fw-contact-box label i {
    margin-right: 6px;
    color: #0284c7;
}

/* Select2 light theme inside wizard */
.fw-contact-box .select2-container--default .select2-selection--single {
    height: 46px;
    background: #fff;
    border: 1.5px solid #b0bec5;
    border-radius: 12px;
    color: #1e293b;
    padding: 0;
    display: flex;
    align-items: center;
    transition: all 0.25s ease;
}
.fw-contact-box .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1e293b;
    padding-left: 16px;
    font-size: 0.875rem;
    line-height: 46px;
}
.fw-contact-box .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8;
}
.fw-contact-box .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 8px;
}
.fw-contact-box .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #94a3b8 transparent transparent transparent;
}
.fw-select2-dropdown {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
}
.fw-select2-dropdown .select2-search__field {
    background: #fff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    color: #1e293b !important;
    padding: 8px 12px !important;
}
.fw-select2-dropdown .select2-results__option {
    color: #475569;
    padding: 10px 14px;
    font-size: 0.8125rem;
}
.fw-select2-dropdown .select2-results__option--highlighted {
    background: #eff6ff !important;
    color: #0c2646 !important;
}
.fw-select2-dropdown .select2-results__option--selected {
    background: #dbeafe !important;
    color: #0284c7 !important;
}

/* --- Step Cards (white form) --- */
.fw-step-card {
    display: none;
    background: #fff;
    border: none;
    border-radius: 20px;
    padding: 36px;
    margin-bottom: 24px;
    animation: fw-fadeIn 0.4s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.fw-step-card.active {
    display: block;
}
@keyframes fw-fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.fw-step-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0c2646;
    margin-bottom: 6px;
}
.fw-step-subtitle {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 24px;
}

/* --- Override colors inside white cards --- */
.fw-step-card label {
    color: #1e293b;
}
.fw-step-card label .required {
    color: #ef4444;
}
.fw-step-card input,
.fw-step-card select,
.fw-step-card textarea {
    background: #fff;
    border: 1.5px solid #b0bec5;
    color: #1e293b;
}
.fw-step-card input:focus,
.fw-step-card select:focus,
.fw-step-card textarea:focus {
    border-color: var(--fw-accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
    background: #fff;
}
.fw-step-card input::placeholder,
.fw-step-card textarea::placeholder {
    color: #94a3b8;
}
.fw-step-card select option {
    background: #fff;
    color: #1e293b;
}
.fw-step-card .fw-switch {
    background: #fff;
    border-color: #b0bec5;
}
.fw-step-card .fw-switch:hover {
    background: #fff;
    border-color: #90a4ae;
}
.fw-step-card .fw-switch.active {
    border-color: var(--fw-accent);
    background: #eff6ff;
}
.fw-step-card .fw-switch-label {
    color: #475569;
}
.fw-step-card .fw-switch.active .fw-switch-label {
    color: #0284c7;
}
.fw-step-card .fw-switch-toggle {
    background: #cbd5e1;
}
.fw-step-card .fw-repeatable-row {
    background: #fff;
    border-color: #b0bec5;
}
.fw-step-card .fw-repeatable-row:hover {
    border-color: #90a4ae;
}
.fw-step-card .fw-divider {
    border-top-color: #b0bec5;
}
.fw-step-card .fw-price-card {
    background: linear-gradient(135deg, #f8faff 0%, #eef3ff 100%);
    border: 2px solid #d0ddf0;
    padding: 28px 24px;
}
.fw-step-card .fw-price-card:hover {
    border-color: #2CA8FF;
    background: linear-gradient(135deg, #f0f7ff 0%, #e3edff 100%);
    box-shadow: 0 8px 30px rgba(44, 168, 255, 0.15);
    transform: translateY(-4px);
}
.fw-step-card .fw-price-card.selected {
    border-color: #2CA8FF;
    background: linear-gradient(135deg, #e6f4ff 0%, #d4ecff 100%);
    box-shadow: 0 0 0 3px rgba(44, 168, 255, 0.25), 0 8px 30px rgba(44, 168, 255, 0.18);
}
.fw-step-card .fw-price-card.selected .fw-price-amount {
    color: #0066cc;
}
.fw-step-card .fw-price-label {
    color: #1e3a5f;
    font-size: 0.9rem;
    font-weight: 700;
}
.fw-step-card .fw-price-sublabel {
    color: #5a7a9a;
}
.fw-step-card .fw-price-amount {
    color: #0c2646;
    font-size: 2.4rem;
}
.fw-step-card .fw-price-period {
    color: #5a7a9a;
}
.fw-step-card .fw-price-badge {
    background: linear-gradient(135deg, #2CA8FF, #0088e0);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* --- Form Fields (wizard dark) --- */
.fw-field {
    margin-bottom: 28px;
    position: relative;
}
.fw-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}
.fw-field label .required {
    color: #ef4444;
    margin-left: 2px;
}
.fw-field input,
.fw-field select,
.fw-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #b0bec5;
    border-radius: 12px;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    background: #fff;
    transition: all 0.25s ease;
    outline: none;
    -webkit-appearance: none;
}
.fw-field select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.fw-field select option {
    background: #fff;
    color: #1e293b;
}
.fw-field input::placeholder,
.fw-field textarea::placeholder {
    color: var(--fw-text-muted);
}
.fw-field input:focus,
.fw-field select:focus,
.fw-field textarea:focus {
    border-color: var(--fw-accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
    background: #fff;
}
.fw-field input.fw-prefilled,
.fw-field select.fw-prefilled {
    background: #f0f9ff;
    border-color: #93c5fd;
}
.fw-field input.fw-prefilled:focus,
.fw-field select.fw-prefilled:focus {
    background: #fff;
    border-color: var(--fw-accent);
}
.fw-field input.is-invalid,
.fw-field select.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}
.fw-field .invalid-feedback {
    display: none;
    font-size: 0.75rem;
    color: #ef4444;
    position: absolute;
    bottom: -18px;
    left: 0;
    line-height: 1.3;
    white-space: nowrap;
}
.fw-field input.is-invalid ~ .invalid-feedback,
.fw-field select.is-invalid ~ .invalid-feedback {
    display: block;
}
/* Date input calendar icon — keep dark on white card background */
.fw-field input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
    cursor: pointer;
    opacity: 0.6;
}
.fw-field input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* --- Field Row (grid) --- */
.fw-field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px 24px;
    align-items: end;
}
.fw-field-row-2 {
    grid-template-columns: 1fr 1fr;
}
.fw-field-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

/* --- Switch / Toggle --- */
.fw-switch-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
.fw-switch-group-single {
    grid-template-columns: 1fr;
}
.fw-switch-group-single .fw-switch-label small {
    display: block;
    font-weight: 400;
    color: #94a3b8;
    margin-top: 2px;
    font-size: 0.75rem;
}
.fw-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1.5px solid #b0bec5;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.fw-switch:hover {
    background: #fff;
    border-color: #90a4ae;
}
.fw-switch.active {
    border-color: var(--fw-accent);
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}
.fw-switch-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    flex: 1;
    margin-right: 12px;
}
.fw-switch.active .fw-switch-label {
    color: #0284c7;
    font-weight: 600;
}
.fw-switch-toggle {
    width: 42px;
    height: 22px;
    border-radius: 11px;
    background: #cbd5e1;
    position: relative;
    transition: background 0.25s;
    flex-shrink: 0;
}
.fw-switch-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.fw-switch.active .fw-switch-toggle {
    background: linear-gradient(135deg, var(--fw-accent), #0284c7);
}
.fw-switch.active .fw-switch-toggle::after {
    transform: translateX(20px);
}

/* --- Repeatable Group --- */
.fw-repeatable-group {
    margin-bottom: 20px;
}
.fw-repeatable-row {
    background: #fff;
    border: 1.5px solid #b0bec5;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 10px;
    position: relative;
    transition: border-color 0.2s;
}
.fw-repeatable-row:hover {
    border-color: #90a4ae;
}
.fw-repeatable-row .fw-remove-row {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(239,68,68,0.15);
    color: #ef4444;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.fw-repeatable-row .fw-remove-row:hover {
    background: rgba(239,68,68,0.25);
}
.fw-add-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1.5px dashed var(--fw-accent);
    border-radius: 10px;
    background: transparent;
    color: var(--fw-accent);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.fw-add-row:hover {
    background: var(--fw-accent-glow);
    border-color: var(--fw-accent);
}

/* --- Conditional Section --- */
.fw-conditional {
    display: none;
    overflow: hidden;
    animation: fw-slideDown 0.35s ease;
}
.fw-conditional.show {
    display: block;
}
@keyframes fw-slideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 2000px; }
}

/* --- Auth Card (guest login/register) --- */
.fw-auth-card {
    background: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 24px;
    margin-bottom: 24px;
}
.fw-auth-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.fw-auth-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}
.fw-auth-option input[type="radio"] {
    display: none;
}
.fw-auth-option:hover {
    border-color: #cbd5e1;
    color: #475569;
    background: #f1f5f9;
}
.fw-auth-option.active {
    border-color: var(--fw-accent);
    background: #eff6ff;
    color: #0284c7;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}
.fw-auth-option i {
    font-size: 1rem;
}
.fw-auth-login .fw-field {
    margin-bottom: 16px;
}

/* --- Recap (preventivo step) --- */
.fw-recap {
    margin-bottom: 8px;
}
.fw-recap-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0c2646;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.fw-recap-title i {
    color: #2CA8FF;
    font-size: 1.1rem;
}
.fw-recap-section {
    background: #f8faff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 16px;
    color: #1e293b;
}
.fw-recap-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e3a5f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fw-recap-section-title i {
    color: #2CA8FF;
    font-size: 0.9rem;
}
.fw-recap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px 24px;
}
.fw-recap-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px dashed #e2e8f0;
}
.fw-recap-item:last-child {
    border-bottom: none;
}
.fw-recap-label {
    font-size: 0.8rem;
    color: #5a7a9a;
    font-weight: 500;
}
.fw-recap-value {
    font-size: 0.85rem;
    color: #0c2646;
    font-weight: 600;
    text-align: right;
    max-width: 65%;
    word-break: break-all;
}
.fw-recap-spec-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
}
.fw-recap-spec-row:last-child {
    border-bottom: none;
}
.fw-recap-spec-num {
    background: linear-gradient(135deg, #2CA8FF, #0088e0);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}
.fw-recap-spec-detail {
    font-size: 0.8rem;
    color: #5a7a9a;
}
.fw-recap-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.fw-recap-tag {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.fw-recap-tag.active {
    background: linear-gradient(135deg, #e6f4ff, #d4ecff);
    color: #0066cc;
    border: 1px solid #b3d9ff;
}
.fw-recap-tag.active i {
    font-size: 0.65rem;
}
.fw-recap-tag.inactive {
    background: #f1f5f9;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
}
.fw-recap-ext-si {
    color: #059669;
}
.fw-recap-ext-si i {
    margin-right: 3px;
}
.fw-recap-ext-no {
    color: #94a3b8;
}
.fw-recap-ext-no i {
    margin-right: 3px;
}
.fw-link-back {
    color: #5a7a9a;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.fw-link-back:hover {
    color: #2CA8FF;
    text-decoration: underline;
}
.fw-link-back i {
    margin-right: 4px;
    font-size: 0.75rem;
}

/* --- Modal conferma emissione --- */
.fw-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 38, 70, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fw-modal {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px 28px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: fwModalIn 0.25s ease;
}
@keyframes fwModalIn {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.fw-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e6f4ff, #d4ecff);
    color: #2CA8FF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 16px;
}
.fw-modal h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0c2646;
    margin: 0 0 8px;
}
.fw-modal p {
    font-size: 0.88rem;
    color: #5a7a9a;
    margin: 0 0 6px;
    line-height: 1.5;
}
.fw-modal-massimale {
    background: linear-gradient(135deg, #f0f7ff, #e6f4ff);
    border: 1px solid #b3d9ff;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 14px 0;
    font-size: 0.95rem;
    color: #0c2646;
}
.fw-modal-sub {
    font-weight: 600;
    color: #0c2646 !important;
    margin-top: 10px !important;
}
.fw-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}
.fw-modal-actions .fw-btn {
    flex: 1;
    max-width: 180px;
}

/* --- Divider (dark) --- */
.fw-divider {
    border: none;
    border-top: 1px solid var(--fw-border);
    margin: 28px 0;
}

/* --- Prices Grid --- */
.fw-prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
    padding: 0 8px;
}
.fw-price-card {
    background: linear-gradient(135deg, #f8faff 0%, #eef3ff 100%);
    border: 2px solid #d0ddf0;
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.fw-price-card:hover {
    border-color: #2CA8FF;
    background: linear-gradient(135deg, #f0f7ff 0%, #e3edff 100%);
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(44, 168, 255, 0.18);
}
.fw-price-card.selected {
    border-color: #2CA8FF;
    background: linear-gradient(135deg, #e6f4ff 0%, #d4ecff 100%);
    box-shadow: 0 0 0 3px rgba(44, 168, 255, 0.25), 0 8px 30px rgba(44, 168, 255, 0.18);
}
.fw-price-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2CA8FF, #0088e0);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    animation: fw-scaleIn 0.3s ease;
    box-shadow: 0 2px 8px rgba(44, 168, 255, 0.4);
}
.fw-price-card.selected .fw-price-amount {
    color: #0066cc;
}
.fw-price-badge {
    background: linear-gradient(135deg, #2CA8FF, #0088e0);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(44, 168, 255, 0.3);
}
.fw-price-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}
.fw-price-sublabel {
    font-size: 0.75rem;
    font-weight: 500;
    color: #5a7a9a;
    margin-bottom: 16px;
}
.fw-price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0c2646;
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.fw-price-euro {
    font-size: 1.5rem;
    font-weight: 700;
    vertical-align: super;
    margin-right: 2px;
}
.fw-price-period {
    font-size: 0.8rem;
    color: #5a7a9a;
    margin-top: 6px;
    font-weight: 500;
}

/* --- Errors Banner --- */
.fw-errors-banner {
    padding: 18px 22px;
    margin-bottom: 24px;
    border-radius: 14px;
    font-size: 0.875rem;
    line-height: 1.6;
}
.fw-errors-banner.fw-errors-blocking {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    color: #991b1b;
}
.fw-errors-banner.fw-errors-warning {
    background: #fffbeb;
    border: 1.5px solid #fcd34d;
    color: #92400e;
}
.fw-errors-banner-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9375rem;
}
.fw-errors-blocking .fw-errors-banner-header i {
    color: #ef4444;
    font-size: 1.2rem;
}
.fw-errors-warning .fw-errors-banner-header i {
    color: #f59e0b;
    font-size: 1.2rem;
}
.fw-errors-list {
    margin: 0 0 12px 8px;
    padding-left: 18px;
}
.fw-errors-list li {
    margin-bottom: 4px;
}
.fw-errors-banner-footer {
    font-size: 0.8125rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.08);
}
.fw-prices-disabled {
    opacity: 0.45;
    pointer-events: none;
}
.fw-btn-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* --- Referral Banner --- */
.fw-referral-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    margin-bottom: 24px;
    background: #fff7ed;
    border: 1.5px solid #fdba74;
    border-radius: 14px;
    color: #9a3412;
    font-size: 0.875rem;
    line-height: 1.5;
}
.fw-referral-banner i {
    color: #f59e0b;
    font-size: 1.25rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.fw-referral-banner strong {
    color: #92400e;
    font-size: 0.9375rem;
}

/* --- Valid Until banner --- */
.fw-valid-until {
    text-align: center;
    margin-top: 20px;
    padding: 10px 20px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 10px;
    color: var(--fw-text-mid);
    font-size: 0.875rem;
    font-weight: 500;
}
.fw-valid-until i {
    color: var(--fw-accent);
    margin-right: 6px;
}
.fw-valid-until strong {
    color: var(--fw-text);
}
/* Inside white step cards, use dark text */
.fw-step-card .fw-valid-until {
    color: #1e3a5f;
    background: #eff6ff;
    border-color: #bfdbfe;
}
.fw-step-card .fw-valid-until i {
    color: #0284c7;
}
.fw-step-card .fw-valid-until strong {
    color: #0c2646;
}

/* --- Navigation (dark) --- */
.fw-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
}
.fw-nav-spacer {
    flex: 1;
}
.fw-nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.fw-btn {
    padding: 13px 28px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.fw-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.fw-btn-ghost {
    background: var(--fw-bg-elevated);
    color: var(--fw-text-mid);
    border: 1.5px solid var(--fw-border-hover);
}
.fw-btn-ghost:hover:not(:disabled) {
    background: var(--fw-bg-card);
    border-color: rgba(255,255,255,0.15);
    color: var(--fw-text);
    text-decoration: none;
}
.fw-btn-cta {
    background: linear-gradient(135deg, var(--fw-accent), #0284c7);
    color: #fff;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}
.fw-btn-cta:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(56, 189, 248, 0.35);
    color: #fff;
    text-decoration: none;
}

/* --- Loading & Spinner (dark) --- */
.fw-loading {
    display: none;
    text-align: center;
    padding: 60px 0;
}
.fw-loading.show {
    display: block;
}
.fw-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--fw-border-hover);
    border-top-color: var(--fw-accent);
    border-radius: 50%;
    animation: fw-spin 0.7s linear infinite;
    margin: 0 auto 20px;
}
@keyframes fw-spin {
    to { transform: rotate(360deg); }
}
.fw-loading-text {
    color: var(--fw-text-light);
    font-size: 0.9375rem;
    font-weight: 600;
}
.fw-loading-subtext {
    color: var(--fw-text-muted);
    font-size: 0.8125rem;
    margin-top: 6px;
}
.fw-step-card .fw-loading-text {
    color: #334155;
}
.fw-step-card .fw-loading-subtext {
    color: #94a3b8;
}

/* --- Result States (success, referral, error) --- */
.fw-result {
    display: none;
    text-align: center;
    padding: 48px 0;
}
.fw-result.show {
    display: block;
}
.fw-result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: fw-scaleIn 0.5s ease;
}
@keyframes fw-scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}
.fw-result-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}
.fw-result-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}
.fw-result-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}
.fw-result h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fw-text);
    margin: 0 0 8px;
}
.fw-result p {
    color: var(--fw-text-light);
    font-size: 0.9375rem;
    margin-bottom: 24px;
}
/* Inside white step cards, use dark text */
.fw-step-card .fw-result h2 {
    color: #0c2646;
}
.fw-step-card .fw-result p {
    color: #64748b;
}
.fw-result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Payment modal options --- */
.fw-pay-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0 16px;
}
.fw-pay-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1.5px solid #e9ecef;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
}
.fw-pay-option:hover {
    border-color: #2CA8FF;
    background: #f8fcff;
    box-shadow: 0 4px 16px rgba(44, 168, 255, 0.12);
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}
.fw-pay-option-btn {
    -webkit-appearance: none;
    appearance: none;
}
.fw-pay-option-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.fw-pay-option-info {
    flex: 1;
    min-width: 0;
}
.fw-pay-option-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0c2646;
    line-height: 1.2;
}
.fw-pay-option-desc {
    font-size: 0.78rem;
    color: #6c757d;
    margin-top: 2px;
}
.fw-pay-option-arrow {
    color: #ced4da;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: color 0.2s;
}
.fw-pay-option:hover .fw-pay-option-arrow {
    color: #2CA8FF;
}
.fw-pay-close {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border: none;
    background: none;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    transition: color 0.2s;
    font-family: inherit;
}
.fw-pay-close:hover {
    color: #64748b;
}

/* --- Wizard Responsive --- */
@media (max-width: 768px) {
    .fw-topbar {
        grid-template-columns: auto 1fr;
        column-gap: 10px;
        padding: 10px 48px 10px 12px;
    }
    .fw-topbar-right {
        display: none;
    }
    .fw-topbar-partners {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 8px 12px;
        background: var(--fw-bg-card);
        border-bottom: 1px solid var(--fw-border);
    }
    .fw-topbar-partners .fw-brand-alfa-logo,
    .fw-topbar-partners .fw-brand-furness-logo {
        height: 46px;
        max-width: 180px;
    }
    .fw-main {
        padding: 20px 12px 36px;
    }
    .fw-wrapper {
        max-width: 100%;
    }
    .fw-step-header {
        margin-bottom: 22px;
    }
    .fw-step-header h1 {
        font-size: 1.375rem;
    }
    .fw-step-header p {
        font-size: 0.875rem;
    }
    .fw-step-card {
        padding: 24px 20px;
        border-radius: 16px;
        margin-bottom: 20px;
    }
    .fw-field-row,
    .fw-field-row-2,
    .fw-field-row-3 {
        grid-template-columns: 1fr;
    }
    .fw-switch-group {
        grid-template-columns: 1fr;
    }
    .fw-prices-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .fw-recap-grid {
        grid-template-columns: 1fr;
    }
    .fw-recap-section {
        padding: 16px 18px;
    }
    .fw-nav {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .fw-nav .fw-btn {
        width: 100%;
        justify-content: center;
    }
    .fw-nav-actions {
        width: 100%;
        flex-direction: column;
    }
    .fw-contact-box {
        padding: 18px 20px;
        margin-bottom: 18px;
    }
    .fw-brand-pic-logo {
        height: 38px;
    }
    .fw-topbar-product {
        justify-self: end;
        font-size: 0.88rem;
        padding: 7px 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 55vw;
    }
}
@media (max-width: 480px) {
    .fw-topbar {
        grid-template-columns: auto 1fr;
        column-gap: 8px;
        padding: 8px 44px 8px 10px;
    }
    .fw-topbar-product {
        justify-self: end;
        font-size: 0.8rem;
        padding: 5px 10px;
        max-width: 50vw;
    }
    .fw-brand-pic-logo {
        height: 32px;
    }
    .fw-close {
        width: 30px;
        height: 30px;
        top: 8px;
        right: 8px;
        font-size: 0.75rem;
    }
    .fw-progress-section {
        padding: 10px 12px 6px;
    }
    .fw-progress-dot {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
        border-radius: 10px;
    }
    .fw-progress-steps::before, .fw-progress-steps::after { top: 15px; }
    .fw-progress-pct {
        font-size: 0.75rem;
    }
    .fw-main {
        padding: 14px 10px 30px;
    }
    .fw-step-header {
        margin-bottom: 16px;
    }
    .fw-step-header h1 {
        font-size: 1.2rem;
    }
    .fw-step-header p {
        font-size: 0.8125rem;
    }
    .fw-step-card {
        padding: 18px 14px;
    }
    .fw-field input,
    .fw-field select,
    .fw-field textarea {
        padding: 10px 12px;
        font-size: 0.8125rem;
    }
    .fw-step-title {
        font-size: 1rem;
    }
    .fw-step-subtitle {
        font-size: 0.8125rem;
    }
}
@media (max-width: 380px) {
    .fw-topbar {
        padding: 6px 40px 6px 8px;
    }
    .fw-brand-pic-logo {
        height: 28px;
    }
    .fw-topbar-product {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    .fw-close {
        width: 28px;
        height: 28px;
        top: 6px;
        right: 6px;
        font-size: 0.7rem;
    }
}


/* ===========================================
   SECTION B — NON-WIZARD PAGES (light theme)
   Products, Quotes, Logs — inside @extends('page')
   =========================================== */

/* --- Header (gradient blue) --- */
.fw-header {
    background: linear-gradient(135deg, #2CA8FF, #1e90ff, #0066cc);
    border-radius: 16px;
    padding: 32px;
    color: #fff;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.fw-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 60%;
    height: 200%;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    pointer-events: none;
}
.fw-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
}
.fw-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}
.fw-header-icon {
    font-size: 2.5rem;
    opacity: 0.3;
    position: absolute;
    top: 24px;
    right: 32px;
}

/* --- Product Cards (index page — light) --- */
.fw-product-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.fw-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-color: #2CA8FF;
}
.fw-product-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2CA8FF, #1e90ff);
    color: #fff;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.fw-product-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f1d3a;
    margin-bottom: 4px;
}
.fw-product-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 12px;
}
.fw-product-desc {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-bottom: 24px;
    line-height: 1.6;
}
.fw-product-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    background: #2CA8FF;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
}
.fw-product-btn:hover {
    background: #1e90ff;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44,168,255,0.3);
}

/* --- Quotes Table (light) --- */
.fw-quotes-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.fw-quotes-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
}
.fw-quotes-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
    color: #334155;
    vertical-align: middle;
}
.fw-quotes-table tr:hover td {
    background: #f8fafc;
}

/* --- Status Badges (light) --- */
.fw-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.fw-badge-draft {
    background: #f1f5f9;
    color: #64748b;
}
.fw-badge-quoted {
    background: #dbeafe;
    color: #2563eb;
}
.fw-badge-emitted {
    background: #d1fae5;
    color: #059669;
}
.fw-badge-referral {
    background: #fef3c7;
    color: #d97706;
}
.fw-badge-error {
    background: #fee2e2;
    color: #dc2626;
}

/* --- Log Stats Cards (light) --- */
.fw-stat-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    padding: 20px;
    text-align: center;
}
.fw-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #0f1d3a;
    line-height: 1;
}
.fw-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Non-wizard Responsive --- */
@media (max-width: 768px) {
    .fw-header {
        padding: 24px;
    }
    .fw-header h2 {
        font-size: 1.375rem;
    }
    .fw-header-icon {
        display: none;
    }
}
