/* =========================================================
   HEAT CHECK - WIZARD FORM UI
   ========================================================= */

/* Modal Overlay */
.wizard-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px);
  z-index: 9000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.wizard-overlay.active { opacity: 1; pointer-events: auto; }

/* Modal Container */
.wizard-container {
  background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(14, 165, 233, 0.3);
  box-shadow: 0 0 40px rgba(14, 165, 233, 0.15); border-radius: 16px;
  width: 100%; max-width: 800px; max-height: 90vh; display: flex; flex-direction: column;
  transform: translateY(20px) scale(0.98); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden; position: relative;
}
.wizard-overlay.active .wizard-container { transform: translateY(0) scale(1); }

/* Header & Progress */
.wizard-header { padding: 2rem 2rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); position: relative; }
.wizard-close { position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(255,255,255,0.1); border: none; color: white; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.wizard-close:hover { background: rgba(255,255,255,0.2); }
.wizard-title { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 0.5rem; color: white; }
.wizard-intro { font-size: 0.9rem; color: var(--text-muted, #94a3b8); line-height: 1.5; margin-bottom: 1.5rem; max-width: 90%; }
.wizard-note { font-size: 0.75rem; color: var(--db-accent-cyan, #22d3ee); display: flex; align-items: center; gap: 0.5rem; background: rgba(34, 211, 238, 0.1); padding: 0.5rem; border-radius: 6px; }

/* Progress Bar */
.progress-container { display: flex; justify-content: space-between; position: relative; margin-top: 1rem; }
.progress-container::before { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: rgba(255,255,255,0.1); transform: translateY(-50%); z-index: 1; }
.progress-bar-fill { position: absolute; top: 50%; left: 0; height: 2px; background: var(--db-accent-orange, #f97316); transform: translateY(-50%); z-index: 1; transition: width 0.3s ease; width: 0%; box-shadow: 0 0 10px rgba(249, 115, 22, 0.5); }
.step-indicator { width: 24px; height: 24px; border-radius: 50%; background: #1e293b; border: 2px solid rgba(255,255,255,0.2); z-index: 2; position: relative; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 600; color: #94a3b8; transition: all 0.3s; }
.step-indicator.active { background: var(--db-accent-orange, #f97316); border-color: var(--db-accent-orange, #f97316); color: white; box-shadow: 0 0 10px rgba(249, 115, 22, 0.5); }
.step-indicator.completed { background: var(--db-accent-cyan, #22d3ee); border-color: var(--db-accent-cyan, #22d3ee); color: #0a0e17; }

/* Form Body */
.wizard-body { padding: 2rem; overflow-y: auto; flex: 1; }
.wizard-step { display: none; animation: fadeIn 0.4s ease; }
.wizard-step.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.step-title { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 1.5rem; color: var(--db-accent-cyan, #22d3ee); border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 0.5rem; }

/* Inputs */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group.full { grid-column: 1 / -1; }
.form-label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: #cbd5e1; margin-bottom: 0.5rem; font-weight: 600; }
.form-label span.req { color: #ef4444; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 0.85rem 1rem; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: white; font-family: var(--font-body); font-size: 0.95rem; transition: all 0.2s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--db-accent-blue, #0ea5e9); box-shadow: 0 0 15px rgba(14, 165, 233, 0.2); background: rgba(14, 165, 233, 0.05); }
.form-input::placeholder, .form-textarea::placeholder { color: #64748b; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { appearance: none; background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>'); background-repeat: no-repeat; background-position: right 1rem center; }
.form-select option { background: #0f172a; color: white; }
.form-helper { font-size: 0.75rem; color: #64748b; margin-top: 0.4rem; display: block; }

/* Chips / Multi-select */
.chip-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { padding: 0.5rem 1rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s; user-select: none; }
.chip:hover { background: rgba(255,255,255,0.1); }
.chip.selected { background: rgba(14, 165, 233, 0.2); border-color: var(--db-accent-blue, #0ea5e9); color: var(--db-accent-cyan, #22d3ee); box-shadow: 0 0 10px rgba(14, 165, 233, 0.2); }

/* File Upload */
.file-upload { border: 2px dashed rgba(255,255,255,0.1); border-radius: 8px; padding: 1.5rem; text-align: center; cursor: pointer; transition: all 0.2s; background: rgba(0,0,0,0.1); }
.file-upload:hover { border-color: var(--db-accent-blue, #0ea5e9); background: rgba(14, 165, 233, 0.05); }
.file-upload input[type="file"] { display: none; }
.file-icon { font-size: 2rem; margin-bottom: 0.5rem; opacity: 0.5; }
.file-text { font-size: 0.9rem; color: #cbd5e1; }
.file-name { font-size: 0.8rem; color: var(--db-accent-cyan, #22d3ee); margin-top: 0.5rem; font-weight: 600; }

/* Checkboxes */
.checkbox-group { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; background: rgba(255,255,255,0.02); padding: 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }
.checkbox-group input[type="checkbox"] { margin-top: 0.2rem; accent-color: var(--db-accent-blue, #0ea5e9); width: 1.2rem; height: 1.2rem; }
.checkbox-label { font-size: 0.9rem; color: #e2e8f0; line-height: 1.5; cursor: pointer; }

/* Footer / Actions */
.wizard-footer { padding: 1.5rem 2rem; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; background: rgba(0,0,0,0.2); }
.btn-wizard { padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.2s; border: none; }
.btn-back { background: rgba(255,255,255,0.1); color: white; }
.btn-back:hover { background: rgba(255,255,255,0.15); }
.btn-back[disabled] { opacity: 0.3; cursor: not-allowed; }
.btn-next { background: var(--db-accent-blue, #0ea5e9); color: white; }
.btn-next:hover { background: #0284c7; box-shadow: 0 0 15px rgba(14, 165, 233, 0.4); }
.btn-submit { background: var(--db-accent-orange, #f97316); color: white; display: none; }
.btn-submit:hover { background: #ea580c; box-shadow: 0 0 15px rgba(249, 115, 22, 0.4); }

/* Review Screen */
.review-block { background: rgba(0,0,0,0.2); border-radius: 8px; padding: 1rem; margin-bottom: 1rem; border: 1px solid rgba(255,255,255,0.05); }
.review-title { font-size: 0.85rem; color: var(--db-accent-cyan, #22d3ee); text-transform: uppercase; margin-bottom: 0.5rem; font-weight: 600; border-bottom: 1px solid rgba(34, 211, 238, 0.2); padding-bottom: 0.25rem;}
.review-item { font-size: 0.9rem; margin-bottom: 0.25rem; display: flex; justify-content: space-between; }
.review-lbl { color: #94a3b8; }
.review-val { font-weight: 500; text-align: right; }

/* Success State */
.success-state { display: none; text-align: center; padding: 3rem 2rem; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
.success-icon { font-size: 4rem; color: #10b981; margin-bottom: 1rem; filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.4)); }
.success-title { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 1rem; color: white; }
.success-msg { color: #94a3b8; line-height: 1.6; margin-bottom: 2rem; max-width: 500px; }

/* Error state for inputs */
.form-input.error, .form-select.error, .form-textarea.error { border-color: #ef4444; background: rgba(239, 68, 68, 0.05); }
.error-msg { color: #ef4444; font-size: 0.75rem; margin-top: 0.25rem; display: none; }

@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .wizard-container { max-height: 100vh; height: 100%; border-radius: 0; border: none; }
  .wizard-overlay { padding: 0; }
  .wizard-header { padding: 1.5rem; }
  .wizard-body { padding: 1.5rem; }
  .wizard-footer { padding: 1rem 1.5rem; }
}
