:root {
  --primary-color: #2f6fed;
  --dark-color: #1e1e1e;
  --white: #ffffff;
  --light-bg: #f4f4f4;
  --border-color: #e0e0e0;
  --error-color: #c0392b;
  --success-color: #1a7a3c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--light-bg);
  color: var(--dark-color);
  line-height: 1.6;
  padding-bottom: 40px;
}

.hc-progress-wrap {
  position: sticky;
  top: 0;
  background: var(--dark-color);
  padding: 10px 16px 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  z-index: 50;
  border-bottom: 4px solid var(--primary-color);
}
.hc-progress-bar { height: 8px; background: rgba(255,255,255,0.15); border-radius: 4px; overflow: hidden; }
.hc-progress-fill { height: 100%; width: 0%; background: var(--primary-color); transition: width 0.3s ease; }
.hc-progress-label { font-size: 13px; margin-top: 6px; color: #ddd; text-transform: uppercase; letter-spacing: 1px; }

.hc-container { max-width: 700px; margin: 0 auto; padding: 16px; }

.hc-card { background: var(--white); border-radius: 4px; padding: 20px 18px; margin-top: 16px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

h1 { font-size: 22px; color: var(--dark-color); margin-top: 0; }
h2 { font-size: 17px; color: var(--dark-color); display: inline-block; border-bottom: 3px solid var(--primary-color); padding-bottom: 6px; margin: 0 0 12px; }

.hc-note { color: #666; font-size: 14px; }

label { display: block; margin: 14px 0 4px; font-weight: 600; font-size: 14px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"] {
  width: 100%; padding: 10px; border: 1px solid var(--border-color); border-radius: 4px; font-size: 15px; margin-top: 4px;
}
.hc-field-hint { display: block; font-weight: 400; color: #777; font-size: 12px; margin-top: 2px; }
.hc-hp { position: absolute; left: -9999px; }

.hc-btn-primary {
  background: var(--primary-color); color: var(--white); border: none; border-radius: 4px;
  padding: 12px 20px; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 16px;
  display: inline-block; text-decoration: none;
}
.hc-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.hc-btn-secondary {
  background: var(--white); color: var(--dark-color); border: 1px solid var(--border-color); border-radius: 4px;
  padding: 12px 20px; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 16px; margin-right: 8px;
}
.hc-btn-link { background: none; border: none; color: var(--primary-color); text-decoration: underline; cursor: pointer; font-size: 14px; margin-top: 10px; display: block; }

.hc-msg { margin-top: 10px; font-size: 14px; min-height: 20px; }
.hc-msg.error { color: var(--error-color); }
.hc-msg.success { color: var(--success-color); }

.hc-question { padding: 14px 0; border-bottom: 1px solid var(--border-color); }
.hc-question:last-child { border-bottom: none; }
.hc-qtext { font-weight: 600; font-size: 14px; margin: 0 0 8px; }
.hc-scale { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hc-scale-lbl { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.hc-scale-opt { display: inline-flex; flex-direction: column; align-items: center; font-weight: 400; margin: 0; cursor: pointer; }
.hc-scale-opt input { margin: 0 0 2px; }
.hc-scale-opt span { font-size: 13px; }

.hc-nav { display: flex; align-items: center; padding: 4px 0; }
.hc-nav .hc-btn-primary { margin-left: auto; }

.hc-overall-score { font-size: 40px; font-weight: 700; color: var(--primary-color); margin: 4px 0 12px; }

.hc-chart-wrap { max-width: 480px; margin: 0 auto; }
.hc-chart-wrap svg { width: 100%; height: auto; }
.hc-radar-ring { fill: none; stroke: var(--border-color); stroke-width: 1; }
.hc-radar-axis { stroke: var(--border-color); stroke-width: 1; }
.hc-radar-label { font-size: 11px; fill: #555; }
.hc-radar-data { fill: rgba(47,111,237,0.25); stroke: var(--primary-color); stroke-width: 2; }

.hc-score-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 14px; }
.hc-score-table th, .hc-score-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border-color); }
.hc-score-table th { color: #777; font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: 0.5px; }

@media (max-width: 480px) {
  .hc-scale { justify-content: space-between; }
}
