.btn-primary {
  background: #043E52 !important;
  color: #fff !important;
  border: none !important;
}
.btn-primary:hover {
  background: #06566c !important;
}
/* Button styles copied from upload_case.css for consistency */
.btn {
  min-width: 120px;
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.2s;
}
.btn-primary {
  background: #043E52;
  color: #fff;
  border: none;
}
.btn-primary:hover {
  background: #06566c;
}
.btn-secondary {
  background-color: #e5e7eb !important;
  color: var(--primary) !important;
  border: 1.5px solid var(--primary) !important;
  box-shadow: none !important;
}
.btn-secondary:hover {
  background: #cbd5e1;
}
/* Box style for AI Assistant form to match upload page */
.ai-assistant-form {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  max-width: 1400px;
  width: 100%;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'IBM Plex Sans', 'Segoe UI', 'Roboto', Arial, sans-serif;
  background-color: #F1F5F9;
  color: #1e1e1e;
}

.container {
  max-width: 1400px;
  margin: 40px auto;
  padding: 20px;
}

.title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.subtitle {
  text-align: center;
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.layout {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.form {
  flex: 1;
  background-color: #fff;
}

.ai-assistant-form label {
  color: #222;
  font-weight: 500;
  font-size: 1rem;
}
.ai-assistant-form input[type="text"] {
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
  margin-bottom: 0.5rem;
  background: #f9fafb;
  font-size: 1rem;
}
.ai-assistant-form .btn-primary {
  background: #043E52 !important;
  color: #fff !important;
  border: none !important;
}
.ai-assistant-form .btn-primary:hover {
  background: #06566c !important;
}
.ai-assistant-form .btn-secondary {
  background-color: #e5e7eb !important;
  color: var(--primary) !important;
  border: 1.5px solid var(--primary) !important;
  box-shadow: none !important;
}
.ai-assistant-form .btn-secondary:hover {
  background: #cbd5e1 !important;
}


.form h2 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.required-note {
  color: #b91c1c;
  font-size: 0.98em;
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 1rem;
}

input[type="text"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  margin-top: 5px;
}

button {
  background-color: #043E52;
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
}

.steps {
  width: 300px;
  background-color: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.step-icon {
  width: 28px;
  height: 28px;
  background-color: #e5e7eb;
  border-radius: 50%;
  text-align: center;
  font-weight: bold;
  line-height: 28px;
}

.step-icon.done {
  background-color: #043E52;
  color: white;
}

.step-text {
  font-size: 0.98em;
  color: #1e293b;
}


/* ===== AI Assistant: animations + step states ===== */

/* Hide helper the JS toggles */
.is-hidden { display: none !important; }

/* Enter/exit animations used by animateSwap() */
@keyframes aiSlideOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}
@keyframes aiSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-out { animation: aiSlideOut 260ms ease-out forwards; will-change: transform, opacity; }
.anim-in  { animation: aiSlideIn 260ms ease-out forwards;  will-change: transform, opacity; }

/* Reduced motion: disable animations gracefully */
@media (prefers-reduced-motion: reduce) {
  .anim-out, .anim-in { animation: none !important; }
}

/* Step circles (the script moves .done between .step-icon elements) */
.steps .step-icon{
  width: 28px; height: 28px; line-height: 28px;
  border-radius: 50%;
  background: #e5e7eb; color: #111827;
  text-align: center; font-weight: 700;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.steps .step-icon.done{
  background: var(--color-accent, #043E52);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(4, 62, 82, 0.15);
}

/* Results card default look (kept minimal; you likely already have this) */
#aiResults{
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  padding: clamp(18px, 2.5vw, 32px);
}
