:root {
  --bg: #080808;
  --panel: #111111;
  --panel-soft: #171717;
  --gold: #d4af37;
  --gold-soft: #f0d27a;
  --text: #f7f1e3;
  --muted: #c2b79c;
  --line: rgba(212, 175, 55, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top, #1f1a0f 0%, #080808 46%, #040404 100%);
  color: var(--text);
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.logo-title {
  font-family: "Cinzel", serif;
  font-size: 20px;
}

.logo-subtitle {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 30px;
  align-items: start;
}

.intro {
  padding: 12px 0;
}

.eyebrow {
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 8px;
}

.intro h1 {
  margin: 0 0 14px;
  font-family: "Cinzel", serif;
  line-height: 1.1;
  font-size: clamp(32px, 4vw, 50px);
}

.intro p {
  color: var(--muted);
  font-size: 18px;
  max-width: 58ch;
}

.calculator-card,
.results-card,
.thank-you {
  background: linear-gradient(180deg, #d8d8d8, #a8a8a8 28%, #8c8c8c 100%);
  border: 2px solid #6b6b6b;
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.calculator-card {
  width: 480px;
  min-width: 480px;
  max-width: 480px;
}

.calc-top-panel {
  background: linear-gradient(180deg, #4a4f58, #3e434b);
  border: 2px solid #2b2f36;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.calc-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.calc-brand-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.calc-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #1f1f1f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.calc-brand-text {
  min-width: 0;
}

.calc-brand-name {
  margin: 0;
  color: #eef2f7;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calc-brand-tag {
  margin: 1px 0 0;
  color: #ffd76a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.calc-brand-model {
  margin: 0;
  color: #f4f7fb;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.button.gold {
  background: linear-gradient(140deg, var(--gold), var(--gold-soft));
  color: #111;
}

.button.ghost {
  background: transparent;
  color: #202020;
  border-color: rgba(0, 0, 0, 0.28);
}

.calc-shell {
  margin: 10px 0 16px;
  background: linear-gradient(180deg, #d8e2e4, #d1dcdf);
  border: 3px solid #1f2427;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}

.calc-label {
  margin: 0 0 6px;
  color: #203236;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.calc-display {
  margin: 0;
  color: #0a1114;
  font-family: "Orbitron", monospace;
  font-size: 26px;
  letter-spacing: 2px;
  text-align: right;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.question-wrap {
  margin: 14px 0 8px;
}

.step {
  margin: 0 0 6px;
  color: #3b3b3b;
  font-size: 12px;
  text-align: right;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.question-wrap h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  color: #1e1e1e;
  text-align: right;
}

.question-wrap p {
  margin: 8px 0 0;
  color: #414141;
  text-align: right;
  font-size: 13px;
}

.calc-top-panel .question-wrap {
  margin: 10px 0 10px;
}

.calc-top-panel .question-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 8px;
}

.calc-top-panel .question-wrap h2 {
  color: #f2f6fb;
  font-size: 20px;
}

.calc-top-panel .question-wrap p {
  color: #d6dee9;
}

.options-wrap {
  display: grid;
  gap: 8px;
}

.mode-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
  border: 2px solid #262626;
  border-radius: 12px;
  padding: 6px;
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.08), rgba(20, 20, 20, 0.12));
}

.mode-btn {
  border: 1px solid #8a6f1f;
  background: linear-gradient(180deg, #f2d67b, #c89f2b);
  color: #1c1a12;
  border-radius: 11px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.mode-btn.active {
  border-color: #b8922d;
  background: linear-gradient(180deg, #ffd86f, #d4af37);
  color: #111;
}

.keypad {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calc-btn {
  border: 1px solid #4e4e4e;
  background: linear-gradient(180deg, #1f1f1f, #0f0f0f);
  color: #d4af37;
  border-radius: 8px;
  min-height: 36px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  padding: 6px 10px;
  white-space: pre-line;
  line-height: 1.15;
}

.injury-btn {
  min-height: 36px;
  width: 100%;
  justify-self: stretch;
  font-size: 12px;
  padding: 6px 10px;
}

.calc-btn.injury-btn.active {
  border-color: #b8922d;
  color: #ffd86f;
  background: linear-gradient(180deg, #1f1f1f, #0f0f0f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 0 1px rgba(184, 146, 45, 0.35);
}

.calc-btn.active:not(.injury-btn) {
  border-color: #1f2d33;
  color: #eef7fb;
  background: linear-gradient(180deg, #56788a, #3f5f6d);
}

.keypad-submit {
  grid-column: 1 / -1;
  min-height: 42px;
}

.calc-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.checklist {
  display: grid;
  gap: 10px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0d0d0d;
  border-radius: 10px;
  padding: 10px 12px;
}

.check-option input {
  width: 17px;
  height: 17px;
}

.calc-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 120px 1fr;
  grid-auto-rows: 84px;
  gap: 8px;
  align-items: stretch;
}

.action-key {
  min-height: 38px;
  border-radius: 8px;
}

.call-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  min-height: 84px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #111;
  border: 1px solid #8a6f1f;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  line-height: 1.05;
  text-align: center;
}

.back-key {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  min-height: 84px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
}

.back-icon {
  font-size: 20px;
  line-height: 1;
}

.disclaimer {
  color: #333;
  margin-bottom: 18px;
}

.lead-form {
  display: grid;
  gap: 14px;
}

.secondary-cta {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

label {
  display: grid;
  gap: 5px;
  color: #333;
  font-size: 13px;
}

input,
textarea {
  background: #090909;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 16px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #333;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .question-wrap h2 {
    font-size: 24px;
  }
}
