:root {
  font-family: Inter, system-ui, sans-serif;
  color: #0f172a;
  background: #f4f7fc;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f7f9fc 0%, #e8edf5 100%);
}

html {
  scroll-behavior: smooth;
}

.layout {
  max-width: 1300px;
  margin: 0 auto;
  padding: 24px;
}

@media (min-width: 1100px) {
  .layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 28px;
    align-items: start;
  }

  .hero {
    margin-bottom: 0;
  }
}

.hero {
  display: grid;
  gap: 20px;
  background: #1f2937;
  color: #fff;
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
}

.hero-brand {
  display: flex;
  justify-content: center;
}

.hero-brand img {
  max-width: 220px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

.hero p {
  margin: 16px 0 0;
  max-width: 680px;
  line-height: 1.8;
}

.badge {
  display: inline-flex;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-note {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 18px;
}

.hero-note strong {
  display: block;
  margin-bottom: 8px;
}

.flow-card {
  background: #fff;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
}

.step {
  display: none !important;
}

.step.active {
  display: block !important;
}

.step-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.step-label {
  display: inline-flex;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
}

.status-pill {
  font-size: 0.9rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 10px 16px;
}

.form-grid {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 10px;
  font-weight: 600;
  color: #334155;
}

input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 1rem;
  background: #f8fafc;
  color: #0f172a;
}

input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.actions {
  margin-top: 16px;
}

button,
.option-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: none;
  border-radius: 14px;
  padding: 0 22px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

button {
  width: 100%;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.18);
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:disabled,
button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.secondary {
  background: #f8fafc;
  color: #101828;
  border: 1px solid #cbd5e1;
}

.progress-bar {
  width: 100%;
  background: #e2e8f0;
  border-radius: 999px;
  height: 14px;
  margin-bottom: 22px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #86a8ff);
  width: 0;
  transition: width 0.35s ease;
}

.question-card,
.gauge-card,
.breakdown-card,
.cta-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 24px;
}

.vertical-label {
  display: inline-flex;
  background: #e0f2fe;
  color: #0c4a6e;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.question-card h3 {
  margin: 0 0 20px;
  font-size: 1.3rem;
  line-height: 1.4;
}

.options-grid {
  display: grid;
  gap: 14px;
}

.option-button {
  background: #fff;
  color: #0f172a;
  text-align: left;
  border: 1px solid #cbd5e1;
  min-height: 68px;
}

.option-button.selected {
  background: #eff6ff;
  border-color: #93c5fd;
}

.question-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
}

.gauge-wrapper {
  display: grid;
  place-items: center;
  padding: 14px 0 10px;
}

.gauge-svg {
  width: 100%;
  max-width: 320px;
}

.gauge-bg {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 16;
}

.gauge-arc {
  fill: none;
  stroke: #2563eb;
  stroke-width: 16;
  stroke-linecap: round;
  stroke-dasharray: 254;
  stroke-dashoffset: 254;
  transform: rotate(-180deg);
  transform-origin: 100px 100px;
}

.gauge-value {
  font-size: 1.7rem;
  font-weight: 800;
  text-anchor: middle;
  fill: #0f172a;
}

.level-label {
  margin: 18px 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #2563eb;
}

.level-message {
  margin: 0;
  line-height: 1.8;
}

.bar-list {
  display: grid;
  gap: 16px;
}

.bar-row {
  display: grid;
  gap: 12px;
}

.bar-track {
  background: #e2e8f0;
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.bar-row strong {
  color: #0f172a;
}

.cta-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.cta-card p {
  margin: 0;
  line-height: 1.8;
}

@media (max-width: 840px) {
  .hero,
  .flow-card {
    padding: 24px;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1100px) {
  .flow-card {
    padding: 32px;
  }

  #step-contact,
  #step-questionnaire {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    height: min-content;
  }

  #step-contact {
    background: #f8fbff;
  }
}

@media (max-width: 640px) {
  .layout {
    padding: 18px;
  }

  .step-header {
    flex-direction: column;
    align-items: stretch;
  }

  .question-actions {
    flex-direction: column;
  }
}
