/* Pricing Recommendation Tool — Roto-Rooter Indonesia */

:root {
  --bg:        #0d0e11;
  --panel:     #16181d;
  --panel-2:   #1c1f26;
  --line:      #2a2e37;
  --line-soft: #22252c;
  --text:      #eceef2;
  --muted:     #8b919d;
  --red:       #e8383d;
  --red-dark:  #c22a2f;
  --blue-bg:   #12243a;
  --blue-line: #22456e;
  --blue-text: #7fb4e8;
  --amber-bg:  #2a2110;
  --amber-line:#5c4517;
  --amber-text:#e0b25e;
  --green:     #4ec98a;
  --radius:    9px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1360px; margin: 0 auto; padding: 26px 26px 60px; }

/* ---------- nav ---------- */
.nav {
  display: flex; flex-wrap: wrap; gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px; padding-bottom: 12px;
}
.nav a {
  color: var(--muted); text-decoration: none;
  padding: 6px 12px; border-radius: 6px; font-size: 13px;
}
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a.on { color: #fff; background: var(--red); }

/* ---------- hero ---------- */
.hero h1 { margin: 0 0 6px; font-size: 30px; font-weight: 700; letter-spacing: -.4px; }
.hero .sub { margin: 0 0 26px; color: var(--muted); font-size: 12.5px; max-width: 900px; }

h2.section {
  font-size: 19px; font-weight: 700; margin: 30px 0 14px;
  letter-spacing: -.2px;
}
h3.section-sm { font-size: 15px; font-weight: 600; margin: 26px 0 6px; }

/* ---------- form ---------- */
.grid { display: grid; gap: 14px; margin-bottom: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.field { display: flex; flex-direction: column; gap: 6px; }
label, .label { font-size: 11.5px; color: var(--muted); font-weight: 500; }

select, input[type="text"], input[type="password"], input[type="number"], input[type="file"], textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
}
select:focus, input:focus, textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: transparent;
}
select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.radios { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 3px; }
.radio, .check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; color: var(--text); }
.radio input, .check input { accent-color: var(--red); width: 15px; height: 15px; margin: 0; }
.check { margin: 6px 0 18px; }

.btn {
  display: inline-block; text-align: center; text-decoration: none;
  background: var(--panel-2); border: 1px solid var(--line);
  color: var(--text); border-radius: var(--radius);
  padding: 9px 16px; font-size: 13px; font-family: inherit;
  cursor: pointer;
}
.btn:hover { background: #23262e; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-block { width: 100%; padding: 11px; }
.btn-sm { padding: 6px 11px; font-size: 12px; }

/* ---------- cards ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.stat { display: flex; flex-direction: column; gap: 3px; }
.stat-label { font-size: 11.5px; color: var(--muted); }
.stat-value { font-size: 30px; font-weight: 700; letter-spacing: -.7px; line-height: 1.2; }
.stat-range { font-size: 22px; }
.stat-hint { font-size: 11px; color: var(--muted); margin-top: 2px; }
.stat-hero { border-color: var(--red); box-shadow: inset 0 0 0 1px rgba(232,56,61,.25); }
.stat-hero .stat-value { color: #ff6b6f; }

.info { background: var(--blue-bg); border-color: var(--blue-line); color: var(--blue-text); margin-bottom: 6px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 22px; }
.info-grid > div { display: flex; flex-direction: column; }
.info-grid span { font-size: 11px; opacity: .8; }
.info-grid b { font-size: 13.5px; color: #cfe3fa; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px;
  border-top: 1px solid var(--blue-line); padding-top: 12px; }
.chip {
  font-size: 11px; padding: 3px 9px; border-radius: 20px;
  background: rgba(255,255,255,.05); border: 1px solid var(--blue-line); color: var(--blue-text);
}
.chip-on { background: rgba(232,56,61,.14); border-color: rgba(232,56,61,.5); color: #ff9b9e; }

.conf-high { color: var(--green) !important; }
.conf-mid  { color: #9fd0f5 !important; }
.conf-low  { color: var(--amber-text) !important; }
.conf-vlow { color: #ff8a8d !important; }

.ladder .step { border-left: 3px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.ladder .step strong { font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
.step-no { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.step-1 { border-left-color: var(--green); }
.step-2 { border-left-color: var(--red); }
.step-3 { border-left-color: var(--amber-text); }

.warn { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber-text); margin-top: 16px; }
.warn b { display: block; margin-bottom: 6px; font-size: 12.5px; }
.warn ul { margin: 0; padding-left: 18px; font-size: 12.5px; }
.warn li { margin-bottom: 3px; }

.result .btn { margin-top: 18px; }

.alert { border-radius: var(--radius); padding: 11px 14px; font-size: 13px; margin: 0 0 16px; }
.alert-bad  { background: #2b1215; border: 1px solid #5c2126; color: #ff9b9e; }
.alert-good { background: #10241a; border: 1px solid #1f5138; color: #74dda6; }

.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 11px; text-transform: uppercase;
     letter-spacing: .5px; background: var(--panel-2); position: sticky; top: 0; }
tbody tr:hover { background: rgba(255,255,255,.025); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap { overflow: auto; max-height: 70vh; border: 1px solid var(--line-soft); border-radius: var(--radius); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.toolbar .field { flex: 1 1 200px; }

.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  border-top: 1px solid var(--line); margin-top: 40px; padding-top: 14px;
  color: var(--muted); font-size: 11.5px;
}

@media (max-width: 900px) {
  .grid-2, .grid-3, .info-grid { grid-template-columns: 1fr; }
  .wrap { padding: 18px 14px 40px; }
  .hero h1 { font-size: 24px; }
  .stat-value { font-size: 26px; }
  .stat-range { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
