/* styles.css */
/* Reset & Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #f9fafb;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  padding: 2rem;
  border: 1px solid #e5e7eb;
}

/* Header */
.header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo {
  color: #2563eb;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  border: none;
  background-color: transparent;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

/* Menu Dropdown Styles */
.menu-container {
  position: relative;
  display: block;
}
.hamburger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  padding: 0;
  z-index: 100;
  position: relative;
}
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1f2937;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}
.hamburger-btn.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-btn.is-active span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
  width: 240px;
  z-index: 99;
  overflow: hidden;
  padding: 0.5rem 0;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.menu-item:hover, .menu-item:focus {
  background-color: #f3f4f6;
  color: #111827;
}
.menu-fade-enter-active, .menu-fade-leave-active { transition: opacity 0.2s ease, transform 0.2s ease; }
.menu-fade-enter-from, .menu-fade-leave-to { opacity: 0; transform: translateY(-10px); }

/* Hero Section */
.hero-section { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #dbeafe 100%); min-height: calc(100vh - 65px); display: flex; flex-direction: column; }
.hero-content { flex: 1; display: flex; align-items: center; padding: 2rem 0; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.hero-text h1 { font-size: 2.5rem; font-weight: 800; color: #111827; margin-bottom: 1.5rem; line-height: 1.2; letter-spacing: -0.025em; }
.hero-text .highlight { color: #2563eb; }
.hero-text .bold { color: #000000; font-weight: bold; }
.hero-text p { font-size: 1.125rem; color: #4b5563; margin-bottom: 2rem; line-height: 1.7; }

/* Page Section (for steps > 0 and content pages) */
.page-section { min-height: calc(100vh - 65px); padding: 2rem 0; }
.content-container { max-width: 640px; margin: 0 auto; }

/* --- New/Updated Content Page Layout --- */
.content-page-background {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #dbeafe 100%);
}
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: flex-start;
}
.content-sidebar {
    position: sticky;
    top: 85px; /* header height + some padding */
}
.cta-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}
.cta-icon {
    display: block;
    margin-bottom: 1rem;
    color: #1d4ed8;
}
.cta-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}
.cta-text {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.content-page { padding: 2.5rem; }
.content-title {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1.5rem;
}
.btn-back { margin-bottom: 1.5rem; padding: 0.5rem 1rem; }
.content-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}
.content-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.content-body h2:first-child { margin-top: 0; }
.content-body p, .content-body li {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.content-body ul {
  list-style-position: inside;
  padding-left: 0.5rem;
}

/* --- Form Styles --- */
.form-heading { font-size: 1.5rem; font-weight: 700; margin-bottom: 2rem; color: #111827; }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.75rem; font-weight: 600; color: #374151; font-size: 0.875rem; }
.form-input { width: 100%; padding: 1rem; border: 1px solid #d1d5db; border-radius: 0.5rem; font-size: 1rem; transition: all 0.2s ease; background: white; }
.form-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); }
.form-input.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2); }
textarea.form-input { resize: vertical; min-height: 120px; font-family: inherit; }

/* --- Button Styles --- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.875rem 1.5rem; border: none; border-radius: 0.5rem; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.2s ease; user-select: none; }
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: translateY(0); }
.btn-primary { background: #2563eb; color: white; box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.25); }
.btn-primary:hover:not(:disabled) { background: #1d4ed8; box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.3); }
.btn-secondary { background: #e5e7eb; color: #374151; }
.btn-secondary:hover:not(:disabled) { background: #d1d5db; }
.btn-full { width: 100%; padding: 1rem 2rem; font-size: 1.125rem; }

/* --- Step Indicator & Progress --- */
.step-indicator { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.step-badge { background: #e0e7ff; color: #3730a3; padding: 0.25rem 0.75rem; border-radius: 99px; font-size: 0.875rem; font-weight: 600; }
.step-title { color: #6b7280; font-weight: 500; }
.progress-container { margin-bottom: 2rem; }
.progress-bar { width: 100%; height: 0.5rem; background: #e5e7eb; border-radius: 0.25rem; overflow: hidden; }
.progress-fill { height: 100%; background: #2563eb; transition: width 0.4s ease-in-out; border-radius: 0.25rem; }

/* Radio Options */
.radio-group { display: grid; gap: 0.75rem; }
.radio-option { display: flex; align-items: center; padding: 1rem; border: 2px solid #e5e7eb; border-radius: 0.75rem; cursor: pointer; transition: all 0.2s ease; background: white; }
.radio-option:hover { border-color: #93c5fd; }
.radio-option.selected { border-color: #2563eb; background: #eff6ff; }
.radio-option-content { flex: 1; }
.radio-option-title { font-weight: 600; color: #111827; margin-bottom: 0.25rem; }
.radio-option-desc { font-size: 0.875rem; color: #6b7280; }
.radio-indicator { width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 2px solid #d1d5db; position: relative; transition: all 0.2s ease; }
.radio-option.selected .radio-indicator { border-color: #2563eb; background: #2563eb; }
.radio-indicator::after { content: ''; width: 0.5rem; height: 0.5rem; background: white; border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); transition: transform 0.2s ease; }
.radio-option.selected .radio-indicator::after { transform: translate(-50%, -50%) scale(1); }
.radio-group.error .radio-option.selected { border-color: #ef4444; }
.radio-group.error .radio-option:not(.selected) { border-color: #ef4444; }

/* --- Info & Car Box --- */
.info-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 0.75rem; padding: 1rem; }
.info-box-text { color: #166534; font-size: 0.875rem; display: flex; align-items: center; gap: 0.75rem; font-weight: 500; }
.car-info { background: #f0fdf4; border-radius: 0.5rem; padding: 0.75rem; margin-top: 1rem; animation: slideDown 0.3s ease-out; }
.car-info-text { color: #166534; font-size: 0.875rem; display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }

/* Navigation & Trust */
.navigation { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid #e5e7eb; }
.trust-indicators { display: flex; justify-content: center; gap: 2rem; padding-top: 1.5rem; border-top: 1px solid #e5e7eb; margin-top: 2rem; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: #6b7280; font-weight: 500; }

/* --- AI Analysis Box --- */
.ai-analysis-box { background-color: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 1rem 1.5rem; margin-bottom: 2rem; }
.ai-header { display: flex; align-items: center; margin-bottom: 1rem; }
.ai-icon { width: 1.5rem; height: 1.5rem; margin-right: 0.75rem; color: #1d4ed8; }
.ai-title { font-size: 1.125rem; font-weight: 600; margin: 0; }
.ai-label { font-size: 0.875rem; font-weight: 600; color: #6b7280; }
.ai-disclaimer { font-size: 0.75rem; color: #6b7280; margin-top: 1rem; text-align: center; }
.ai-error-message { display: flex; align-items: center; color: #991b1b; background-color: #fee2e2; padding: 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; }
.ai-cost-summary { display: grid; gap: 1rem; }
.ai-diagnosis { font-weight: 500; color: #111827; }
.ai-total-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: 0.875rem; background: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 50%, #eff6ff 100%); }
.ai-total-left { display: flex; align-items: center; gap: 0.75rem; }
.ai-total-icon { color: #1d4ed8; }
.ai-total-label { font-size: 0.875rem; color: #374151; font-weight: 600; }
.ai-total-range { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: #1d4ed8; }
.ai-badge { background: #1d4ed8; color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.35rem 0.6rem; border-radius: 999px; white-space: nowrap; }
.ai-split { display: grid; gap: 0.5rem; }
.ai-stacked-bar { height: 10px; background: #e5e7eb; border-radius: 999px; overflow: hidden; display: flex; }
.ai-segment.labour { background: #2563eb; }
.ai-segment.parts { background: #8b5cf6; }
.ai-legend { display: grid; gap: 0.25rem; }
.legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; flex-wrap: wrap; }
.legend-item strong { margin-left: auto; font-weight: 700; color: #111827; padding-left: 0.5rem; }
.legend-item .muted { color: #6b7280; font-weight: 500; }
.dot { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; }
.dot.labour { background: #2563eb; }
.dot.parts { background: #8b5cf6; }
.ai-reco { display: flex; align-items: center; gap: 0.5rem; background: #ffffff; padding: 1rem; border-radius: 0.5rem; }

/* Confirmation Page */
.confirmation-card { background: white; border-radius: 1rem; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); padding: 2.5rem; text-align: center; animation: slideUpFadeIn 0.5s ease-out; }
.confirmation-icon-wrapper { width: 4.5rem; height: 4.5rem; margin: 0 auto 1.5rem auto; background-color: #dcfce7; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.confirmation-icon { color: #16a34a; }
.confirmation-title { font-size: 2rem; font-weight: 800; color: #111827; margin-bottom: 0.5rem; }
.confirmation-subtitle { font-size: 1.125rem; color: #4b5563; margin-bottom: 2.5rem; max-width: 500px; margin: 0 auto 2.5rem auto; line-height: 1.7; }
.next-steps { display: grid; gap: 1.5rem; text-align: left; margin-bottom: 2.5rem; }
.next-step-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem; background: #f9fafb; border-radius: 0.75rem; }
.next-step-icon { background: #eff6ff; color: #2563eb; flex-shrink: 0; width: 3rem; height: 3rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; }
.next-step-text h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.25rem; color: #111827; }
.next-step-text p { color: #4b5563; line-height: 1.5; margin: 0; }
.request-summary { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 1.5rem; text-align: left; }
.summary-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid #e5e7eb; padding-bottom: 0.75rem;}
.summary-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; }
.summary-item:not(:last-child) { border-bottom: 1px solid #e5e7eb; }
.summary-item.problem-description { flex-direction: column; align-items: flex-start; gap: 0.5rem;}
.summary-label { font-weight: 500; color: #6b7280; font-size: 0.875rem;}
.summary-value { font-weight: 600; color: #111827; }

/* Error & Spinner */
.error-message { color: #ef4444; font-size: 0.875rem; margin-top: 0.5rem; font-weight: 500; }
.spinner { width: 1.25rem; height: 1.25rem; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 1s linear infinite; }
.spinner.hero-section-spinner { border-color: #d1d5db; border-top-color: #2563eb; }
.spinner.page-spinner { border-color: #d1d5db; border-top-color: #2563eb; width: 2rem; height: 2rem; }
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUpFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Utilities */
.font-mono { font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace; }
.char-count { color: #9ca3af; font-size: 0.875rem; text-align: right; margin-top: 0.25rem; }
.inline-icon { display: inline-block; vertical-align: middle; margin-bottom: 2px; }
.inline-icon.mr-2 { margin-right: 0.5rem; }
.inline-icon.ml-2 { margin-left: 0.5rem; }

/* Responsive */
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 0.9fr; gap: 4rem; }
  .content-grid { grid-template-columns: 1fr 340px; } /* Activate 2-column layout on desktop */
  .hero-text h1 { font-size: 3rem; }
  .card { padding: 2.5rem; }
  .confirmation-card { padding: 3rem; }
}
@media (max-width: 767px) {
  .hero-text h1 { font-size: 2rem; }
  .card { padding: 1.5rem; }
  .trust-indicators { flex-direction: column; gap: 1rem; text-align: center; }
  .navigation { gap: 1rem; }
  .confirmation-card { padding: 2rem 1.5rem; }
  .ai-total-range { font-size: 1.25rem; }
  .content-title { font-size: 1.75rem; }
  .content-page { padding: 1.5rem; }
}

/* --- Enriched Content Styles (About/FAQ) --- */
.content-body .lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}
.content-body .value-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: grid;
  gap: 2rem;
}
.content-body .value-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.content-body .value-item i {
  flex-shrink: 0;
  color: #2563eb;
  margin-top: 3px;
}
.content-body .value-item h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.25rem 0;
}
.content-body .value-item p {
  font-size: 0.95rem;
  margin: 0;
  color: #4b5563;
}
.content-body .cta-card {
  margin-top: 3rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: #eff6ff;
  color: #1e40af;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #bfdbfe;
}
.content-body .cta-card i {
  flex-shrink: 0;
}

/* FAQ Accordion Styles */
.content-body details {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  transition: background-color 0.2s ease;
}
.content-body details[open] {
  background-color: white;
}
.content-body summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  list-style: none; /* Hide default marker */
}
.content-body summary::-webkit-details-marker {
  display: none; /* Hide default marker for Safari */
}
.content-body summary:hover {
  color: #111827;
}
.content-body summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: #9ca3af;
  transition: transform 0.3s ease-in-out;
  transform-origin: center;
}
.content-body details[open] summary::after {
  transform: rotate(45deg);
  content: '+';
}
.content-body details .faq-answer {
  padding: 0 1.25rem 1.25rem 1.25rem;
  color: #4b5563;
  line-height: 1.7;
}
.content-body details .faq-answer p {
  margin-bottom: 0;
}