:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #15171a;
  --muted: #68707a;
  --line: #e5e8ee;
  --red: #b91536;
  --red-dark: #8e102b;
  --green: #007a45;
  --dark: #222222;
  --shadow: 0 22px 70px rgba(12, 19, 28, 0.12);
  --radius: 28px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(185, 21, 54, 0.14), transparent 34rem),
    linear-gradient(135deg, #f7f8fa 0%, #eef1f5 100%);
}

a { color: var(--red); }

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 24px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: stretch;
}

.hero-card,
.form-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 680px;
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -110px -140px auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(185, 21, 54, 0.09);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  position: relative;
  z-index: 1;
}

.logo {
  display: block;
  width: min(360px, 72%);
  height: auto;
}

.castrol-badge {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,0.12));
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 42px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(185, 21, 54, 0.10);
  color: var(--red-dark);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 14px;
}

.hero-copy h1 {
  margin: 20px 0 16px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero-copy p {
  margin: 0;
  max-width: 580px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.trust-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
}

.trust-boxes div {
  padding: 18px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.trust-boxes strong,
.trust-boxes span {
  display: block;
}

.trust-boxes strong {
  font-size: 16px;
  margin-bottom: 4px;
}

.trust-boxes span {
  color: var(--muted);
  font-size: 13px;
}

.form-card {
  padding: 30px;
  min-height: 680px;
  display: flex;
  flex-direction: column;
}

.progress-wrap { margin-bottom: 28px; }
.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 10px;
}
.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #eef0f4;
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  transition: width .28s ease;
}

form { display: flex; flex-direction: column; min-height: 580px; }
.step { display: none; animation: fadeUp .22s ease both; }
.step.active { display: block; }

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

.step h2,
.result-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.step-subtitle {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

label,
fieldset {
  display: block;
  margin-bottom: 18px;
}

label span,
legend {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 14px;
  color: #30343a;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d9dee7;
  background: #fbfcfd;
  border-radius: 16px;
  padding: 15px 15px;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(185, 21, 54, 0.72);
  box-shadow: 0 0 0 4px rgba(185, 21, 54, 0.10);
  background: #fff;
}

input.invalid,
select.invalid,
textarea.invalid,
.consent.invalid {
  border-color: #d92d20 !important;
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.10);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

fieldset {
  border: 0;
  padding: 0;
}

.radio-grid,
.check-grid {
  display: grid;
  gap: 10px;
}

.radio-grid { grid-template-columns: repeat(3, 1fr); }
.check-grid { grid-template-columns: 1fr 1fr; }

.radio-grid label,
.check-grid label {
  margin: 0;
}

.radio-grid input,
.check-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-grid span,
.check-grid span {
  margin: 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 13px;
  border-radius: 16px;
  border: 1px solid #d9dee7;
  background: #fbfcfd;
  cursor: pointer;
  font-weight: 800;
  color: #30343a;
}

.radio-grid input:checked + span,
.check-grid input:checked + span {
  border-color: rgba(185, 21, 54, 0.88);
  background: rgba(185, 21, 54, 0.08);
  color: var(--red-dark);
}

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfd;
}
.consent input { width: 20px; height: 20px; margin-top: 2px; }
.consent span { margin: 0; font-weight: 600; color: var(--muted); line-height: 1.45; }

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 16px;
  padding: 16px 22px;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 14px 30px rgba(185, 21, 54, 0.22);
}
.btn-secondary {
  background: #eff2f6;
  color: #30343a;
}
.btn-submit { display: none; margin-left: auto; }
.form-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.result-panel {
  animation: fadeUp .22s ease both;
  min-height: 580px;
}
.result-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(0, 122, 69, 0.10);
  color: var(--green);
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 20px;
}
.result-panel p {
  color: var(--muted);
  line-height: 1.6;
}
.result-advice {
  margin: 22px 0;
  padding: 18px;
  border-radius: 20px;
  background: #f7f8fa;
  border: 1px solid var(--line);
  line-height: 1.65;
}
.result-advice ul { margin: 10px 0 0 20px; padding: 0; }
.contact-card {
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.contact-card h3 { margin: 0 0 12px; }
.contact-card p { margin: 7px 0; }

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 30px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.site-footer p { margin: 5px 0; }

@media (max-width: 920px) {
  .app-shell { grid-template-columns: 1fr; margin-top: 18px; }
  .hero-card { min-height: auto; padding: 26px; }
  .form-card { min-height: auto; padding: 24px; }
  form, .result-panel { min-height: auto; }
  .hero-copy { padding: 30px 0; }
}

@media (max-width: 620px) {
  .app-shell { width: min(100% - 22px, 1180px); }
  .brand-row { align-items: flex-start; }
  .logo { width: 72%; }
  .castrol-badge { width: 74px; height: 74px; }
  .trust-boxes,
  .two-col,
  .radio-grid,
  .check-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column-reverse; }
  .btn { width: 100%; }
  .btn-submit { margin-left: 0; }
  .hero-copy h1 { font-size: 38px; }
}
