:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --accent: #0b6ef6;
  --muted: #666;
  --radius: 10px;
  --pad: 18px;
  --shadow: 0 6px 18px rgba(11,110,246,0.08);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: var(--bg);
  color: #222;
}
.container {
  max-width: 760px;
  margin: 36px auto;
  padding: 12px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: var(--pad);
  box-shadow: var(--shadow);
}
h1 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}
h2 {
  margin: 18px 0 8px;
  font-size: 1.05rem;
}
.field {
  margin-bottom: 14px;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
select, input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e6e9ef;
  font-size: 1rem;
}
.radios label {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
  font-weight: 500;
}
.result {
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
  background: #fbfdff;
  border: 1px solid #eef6ff;
}
.result-line {
  font-size: 1.1rem;
}
.small {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
}
.actions {
  margin-top: 14px;
}
button {
  background: #038C99;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}
button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.hidden {
  display: none;
}
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
#formMessage {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
}
#formMessage.success {
  background: #e6fbef;
  border: 1px solid #b6f0c7;
  color: #0a6a2b;
}
#formMessage.error {
  background: #fff0f0;
  border: 1px solid #f2c2c2;
  color: #9b2a2a;
}

/* Slider styling */
input[type="range"] {
  width: 100%;
  appearance: none;
  height: 6px;
  border-radius: 5px;
  background: #e6e9ef;
  outline: none;
  margin-top: 8px;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FF7558;
  cursor: pointer;
  border: none;
  margin-top: -7px; /* align thumb vertically */
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FF7558;
  cursor: pointer;
  border: none;
}

/* Tooltip bubble above slider */
.slider-wrapper {
  position: relative;
  width: 100%;
}
.slider-tooltip {
  position: absolute;
  top: -35px;
  background: #FF7558;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.9rem;
  transform: translateX(-50%);
  white-space: nowrap;
  transition: left 0.1s ease-out;
}
.slider-tooltip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #FF7558 transparent transparent transparent;
}
