:root {
  --risk-blue: #4d9fba;
  --risk-blue-dark: #287c9a;
  --risk-yellow: #f5d66b;
  --risk-orange: #f0a13a;
  --risk-red: #d95454;
  --risk-green: #6abf87;
  --risk-ink: #283640;
  --risk-muted: #667782;
  --risk-bg: #f5fbfd;
  --baby-skin: #f5c9aa;
}

body.risk-page {
  margin: 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(77, 159, 186, 0.16), transparent 32%),
    linear-gradient(180deg, #f7fdff 0%, #fffaf1 100%);
  color: var(--risk-ink);
  font-family: "Open Sans", Arial, sans-serif;
}

.risk-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

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

.risk-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--risk-ink);
  text-decoration: none;
  font-weight: 700;
}

.risk-logo img {
  width: 172px;
  max-width: 48vw;
  height: auto;
}

.risk-home {
  color: var(--risk-blue-dark);
  text-decoration: none;
  font-weight: 700;
}

.risk-hero {
  margin-bottom: 26px;
}

.risk-eyebrow {
  color: var(--risk-blue-dark);
  font-weight: 700;
  margin: 0 0 10px;
}

.risk-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

.risk-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--risk-muted);
  font-size: 18px;
  line-height: 1.6;
}

.risk-widget {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
  gap: 22px;
  align-items: stretch;
}

.risk-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(77, 159, 186, 0.16);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(37, 91, 110, 0.13);
}

.risk-visual {
  padding: 30px;
  display: grid;
  align-content: center;
  min-height: 620px;
  overflow: hidden;
}

.baby-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 410px;
  border-radius: 24px;
  background: linear-gradient(180deg, #e9f7fb 0%, #fff5d7 100%);
}

.baby-stage::before,
.baby-stage::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(77, 159, 186, 0.18);
}

.baby-stage::before {
  width: 190px;
  height: 190px;
  left: 24px;
  top: 24px;
}

.baby-stage::after {
  width: 230px;
  height: 230px;
  right: -70px;
  bottom: -80px;
  background: rgba(245, 214, 107, 0.3);
}

.baby-svg {
  position: relative;
  z-index: 1;
  width: min(360px, 88%);
  height: auto;
  filter: drop-shadow(0 22px 34px rgba(73, 116, 151, 0.18));
}

.baby-skin {
  fill: var(--baby-skin);
  transition: fill 450ms ease, filter 450ms ease;
}

.baby-blush {
  fill: rgba(225, 125, 116, 0.3);
  transition: fill 450ms ease;
}

.baby-blanket {
  fill: #d9f0f5;
}

.baby-line {
  fill: none;
  stroke: #42525a;
  stroke-linecap: round;
  stroke-width: 4;
}

.risk-scale {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.risk-scale-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  color: var(--risk-muted);
  font-size: 14px;
}

.risk-scale-bar {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f5c9aa 0%, #f0c77a 35%, #e8b24e 58%, #d99b34 78%, #c9861e 100%);
}

.risk-panel {
  padding: 26px;
}

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

.risk-field {
  display: grid;
  gap: 8px;
}

.risk-field label,
.risk-group-title {
  color: var(--risk-ink);
  font-weight: 700;
}

.risk-field input[type="number"],
.risk-field input[type="text"],
.risk-field input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(77, 159, 186, 0.28);
  border-radius: 16px;
  background: #fff;
  color: var(--risk-ink);
  font: inherit;
  padding: 14px 16px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.risk-field input:focus {
  border-color: var(--risk-blue);
  box-shadow: 0 0 0 4px rgba(77, 159, 186, 0.14);
}

.risk-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.risk-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(77, 159, 186, 0.24);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.risk-pill input,
.risk-check input {
  accent-color: var(--risk-blue);
}

.risk-pill:has(input:checked) {
  background: rgba(77, 159, 186, 0.12);
  border-color: var(--risk-blue);
}

.risk-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.risk-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(77, 159, 186, 0.18);
  padding: 12px;
  color: var(--risk-muted);
}

.risk-result {
  margin-top: 4px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(106, 191, 135, 0.3);
  background: rgba(106, 191, 135, 0.11);
}

.risk-result[data-tone="yellow"] {
  border-color: rgba(245, 214, 107, 0.65);
  background: rgba(245, 214, 107, 0.18);
}

.risk-result[data-tone="orange"] {
  border-color: rgba(240, 161, 58, 0.55);
  background: rgba(240, 161, 58, 0.15);
}

.risk-result[data-tone="red"] {
  border-color: rgba(217, 84, 84, 0.5);
  background: rgba(217, 84, 84, 0.12);
}

.risk-result h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: 0;
}

.risk-result p {
  margin: 0;
  line-height: 1.55;
}

.risk-result small {
  display: block;
  margin-top: 10px;
  color: var(--risk-muted);
}

.risk-cta {
  margin-top: 18px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(77, 159, 186, 0.14), rgba(245, 214, 107, 0.22));
}

.risk-cta h2 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: 0;
}

.risk-cta p {
  margin: 0 0 16px;
  color: var(--risk-muted);
  line-height: 1.55;
}

.risk-lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.risk-button {
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: var(--risk-blue);
  color: #fff;
  cursor: pointer;
  font: 700 16px/1.2 "Open Sans", Arial, sans-serif;
  padding: 15px 18px;
  box-shadow: 0 12px 26px rgba(77, 159, 186, 0.28);
  transition: transform 160ms ease, background-color 160ms ease;
}

.risk-button:hover {
  background: var(--risk-blue-dark);
  transform: translateY(-1px);
}

.risk-disclaimer {
  margin-top: 18px;
  color: var(--risk-muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .risk-widget {
    grid-template-columns: 1fr;
  }

  .risk-visual {
    min-height: auto;
  }

  .baby-stage {
    min-height: 330px;
  }
}

@media (max-width: 560px) {
  .risk-shell {
    width: min(100% - 22px, 1180px);
    padding-top: 18px;
  }

  .risk-header {
    align-items: flex-start;
  }

  .risk-hero h1 {
    font-size: 32px;
  }

  .risk-hero p {
    font-size: 16px;
  }

  .risk-visual,
  .risk-panel {
    padding: 16px;
  }

  .risk-checks,
  .risk-lead-grid,
  .risk-segmented {
    grid-template-columns: 1fr;
  }
}
