:root {
  --bg: #f3f5f7;
  --panel: #ffffff;
  --ink: #1e1f23;
  --brand: #b0163a;
  --line: #d8dde4;
  --danger: #b4233b;
  --danger-bg: #fff2f5;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: "Source Sans 3", "Segoe UI", sans-serif; background: radial-gradient(circle at 0 0, #fff, var(--bg)); color: var(--ink); }
.container { max-width: 980px; margin: 0 auto; padding: 20px; }
section { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 14px; padding: 14px; }
h1 { color: var(--brand); margin: 8px 0 4px; }
h2 { margin-top: 0; color: #7a122e; font-size: 1.15rem; }
label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; font-weight: 600; }
input, textarea { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 0.97rem; font-family: inherit; font-weight: 400; background: #fff; }
input:focus, textarea:focus { outline: none; border-color: #8f1531; box-shadow: 0 0 0 3px rgba(176,22,58,0.13); }
textarea { min-height: 82px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 26px; }
.actions-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.button, button { display: inline-block; border: none; border-radius: 8px; background: var(--brand); color: #fff; padding: 9px 12px; text-decoration: none; cursor: pointer; font-size: 0.95rem; }
.button.ghost { background: #f0f2f5; color: #2b2e36; border: 1px solid var(--line); }
button.danger { background: #7a122e; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: 9px; }
th { background: #f8f9fb; }
.errors { border: 1px solid #c91f4a; background: #fff1f4; border-radius: 10px; padding: 10px; }
.disclaimer { background: #fff3d8; border: 1px solid #efcb80; border-radius: 10px; padding: 10px; }
.form-field { position: relative; background: #fcfdff; border: 1px solid transparent; border-radius: 10px; padding: 8px; }
.form-field span { font-size: 0.95rem; }
.hint { color: #5f6670; font-size: 0.82rem; font-weight: 500; line-height: 1.2; }
.field-error { border-color: var(--danger); background: var(--danger-bg); }
input.invalid, textarea.invalid { border-color: var(--danger); background: #fff; }
.error-msg { color: var(--danger); font-weight: 700; font-size: 0.8rem; }

.scale-guide { background: linear-gradient(120deg, #ffffff, #f8fafc); border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 12px; }
.scale-guide h3 { margin: 0 0 6px; font-size: 0.95rem; color: #3c4250; }
.scale-guide p { margin: 6px 0 0; color: #4f5762; font-size: 0.88rem; }
.guide-gradient { height: 14px; border-radius: 999px; background: linear-gradient(90deg, #5fcf80 0%, #b7de5f 35%, #f5cf4f 65%, #ed7b4f 100%); border: 1px solid #d8d8d8; }

.mini-risk-scale { margin-top: 4px; position: relative; }
.mini-risk-bar { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #5fcf80 0%, #f5cf4f 55%, #ed7b4f 100%); border: 1px solid #d8d8d8; }
.mini-risk-pointer { position: absolute; top: -12px; left: 0%; transform: translateX(-50%); color: #5a1021; font-size: 11px; transition: left 0.15s ease; }
.mini-risk-labels { display: flex; justify-content: space-between; font-size: 0.72rem; color: #636a73; margin-top: 2px; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  align-items: center;
  background: linear-gradient(140deg, #ecf7ff, #fffef6 55%, #f0fff5);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 18px;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #166090;
  margin: 0 0 6px;
  font-weight: 700;
}
.hero-content p {
  margin: 8px 0;
  line-height: 1.4;
}
.hero-media img {
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid #b7cad8;
}

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