*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #1976d2;
    --primary-dark: #1565c0;
    --accent: #ff6600;
    --accent-light: #ff8533;
    --success: #28a745;
    --danger: #dc3545;
    --bg: #f0f2f5;
    --card: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --border: #e0e0e0;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* Container */
.wizard-container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

/* Header */
.wizard-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 20px 28px;
    border-radius: var(--radius) var(--radius) 0 0;
}
.wizard-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}
.wizard-logo .favicon-icon {
    width: 40px; height: 40px;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
}
.wizard-logo h1 { font-size: 20px; font-weight: 700; }
.wizard-logo p { font-size: 13px; opacity: 0.85; margin-top: 2px; }

/* Progress */
.wizard-progress {
    background: var(--card);
    padding: 24px 28px 16px;
    position: relative;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}
.progress-track {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    position: absolute;
    top: 38px;
    left: 60px;
    right: 60px;
}
.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 0%;
    transition: width 0.4s ease;
}
.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}
.step-circle {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s;
}
.step.active .step-circle {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(255,102,0,0.2);
}
.step.done .step-circle {
    background: var(--success);
    color: #fff;
}
.step-label {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
    text-align: center;
}
.step.active .step-label { color: var(--accent); font-weight: 600; }
.step.done .step-label { color: var(--success); }

/* Form area */
form {
    background: var(--card);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.wizard-step {
    display: none;
    padding: 28px;
    animation: fadeSlide 0.35s ease;
}
.wizard-step.active { display: block; }

@keyframes fadeSlide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.step-title {
    text-align: center;
    margin-bottom: 28px;
}
.step-title i {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}
.step-title h2 { font-size: 20px; margin-bottom: 4px; }
.step-title p { font-size: 13px; color: var(--text-light); }

/* Form grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group.half { grid-column: span 1; }
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.req { color: var(--danger); }
.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(25,118,210,0.1);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(220,53,69,0.1);
}
.form-group small {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}
.form-group .error-msg {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
    display: none;
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* Radio cards */
.radio-cards {
    display: flex;
    gap: 14px;
}
.radio-card {
    flex: 1;
    cursor: pointer;
}
.radio-card input { display: none; }
.radio-card .card-body {
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}
.radio-card .card-body i { font-size: 28px; color: var(--text-light); display: block; margin-bottom: 8px; }
.radio-card .card-body span { font-size: 14px; font-weight: 600; }
.radio-card input:checked + .card-body {
    border-color: var(--primary);
    background: rgba(25,118,210,0.05);
}
.radio-card input:checked + .card-body i { color: var(--primary); }
.radio-card:hover .card-body { border-color: var(--primary); }

/* Dropzone */
.dropzone {
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}
.dropzone.dragover {
    border-color: var(--accent);
    background: rgba(255,102,0,0.04);
}
.dropzone-content i { font-size: 42px; color: var(--accent); margin-bottom: 12px; }
.dropzone-content p { font-size: 14px; color: var(--text); margin-bottom: 6px; }
.dropzone-content small { font-size: 12px; color: var(--text-light); }
.btn-browse {
    background: none; border: none; color: var(--primary); font-weight: 600;
    cursor: pointer; text-decoration: underline; font-size: 14px; font-family: inherit;
}

/* File preview */
.file-preview-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.file-preview-item {
    display: flex; align-items: center; gap: 10px;
    background: #f8f9fa; border-radius: 8px; padding: 10px 14px;
}
.file-preview-item img {
    width: 40px; height: 40px; object-fit: cover; border-radius: 6px;
}
.file-preview-item .file-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: #e0e0e0; border-radius: 6px; font-size: 18px; color: var(--danger); }
.file-preview-item .file-info { flex: 1; }
.file-preview-item .file-info strong { font-size: 13px; display: block; }
.file-preview-item .file-info small { font-size: 11px; color: var(--text-light); }
.file-preview-item .btn-remove { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 16px; padding: 4px; }

/* Summary */
.summary { display: flex; flex-direction: column; gap: 16px; }
.summary-card {
    background: #f8f9fa;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 16px;
}
.summary-card h4 { font-size: 13px; color: var(--primary); text-transform: uppercase; margin-bottom: 10px; letter-spacing: 0.5px; }
.summary-card .row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; }
.summary-card .row .lbl { color: var(--text-light); }
.summary-card .row .val { font-weight: 600; text-align: right; max-width: 60%; word-break: break-word; }

/* Navigation */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    background: var(--card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
}
.btn-prev, .btn-next, .btn-submit {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}
.btn-prev {
    background: #e0e0e0;
    color: var(--text);
}
.btn-prev:hover { background: #d0d0d0; }
.btn-next {
    background: var(--primary);
    color: #fff;
    margin-left: auto;
}
.btn-next:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-submit {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: #fff;
    margin-left: auto;
    box-shadow: 0 4px 16px rgba(255,102,0,0.3);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,102,0,0.4); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Modal overlay */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: var(--card);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow);
    animation: popIn 0.3s ease;
}
@keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-anim {
    width: 72px; height: 72px;
    background: var(--success);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 16px;
}
.modal-box h3 { font-size: 22px; margin-bottom: 8px; }
.modal-box p { color: var(--text-light); margin-bottom: 6px; }
.report-id { color: var(--primary); font-size: 16px; margin-top: 12px; }
.btn-ok {
    margin-top: 20px;
    padding: 12px 40px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.btn-ok:hover { background: var(--primary-dark); }

/* PWA banner */
.pwa-banner {
    margin-top: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}
.pwa-banner button {
    padding: 6px 14px; border: none; border-radius: 6px;
    font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
    background: var(--accent); color: #fff;
}
.pwa-banner .btn-dismiss { background: none; color: var(--text-light); font-size: 18px; padding: 0 4px; margin-left: auto; }

/* Responsive */
@media (max-width: 600px) {
    body { padding: 10px; }
    .wizard-header { padding: 16px 20px; }
    .wizard-logo h1 { font-size: 17px; }
    .wizard-progress { padding: 20px 16px 12px; }
    .progress-track { left: 30px; right: 30px; }
    .step-label { font-size: 10px; }
    .step-circle { width: 28px; height: 28px; font-size: 12px; }
    .wizard-step { padding: 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.half { grid-column: 1 / -1; }
    .wizard-nav { padding: 14px 20px; }
    .btn-prev, .btn-next, .btn-submit { padding: 10px 20px; font-size: 14px; }
    .radio-cards { flex-direction: column; }
}
