/* Industrial HVAC dashboard palette — matches HVAC-Quiz.html for brand continuity */
:root {
  --bg: #13161b;
  --panel: #1b2027;
  --panel-2: #222933;
  --line: #2c3540;
  --ink: #eef2f6;
  --ink-dim: #9aa7b4;
  --amber: #ff8a3d;
  --amber-deep: #e9610a;
  --leak: #ff4d4f;
  --recover: #2fd27a;
  --gauge: #3a4856;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background:
    radial-gradient(1200px 600px at 50% -10%, #1d242d 0%, var(--bg) 55%),
    var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100dvh;
  padding: 18px 16px 40px;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px; opacity: 0.05;
}
#app, header.brand { position: relative; z-index: 1; }

/* Header / brand */
header.brand {
  display: flex; align-items: center; gap: 10px;
  justify-content: center; margin: 0 auto 18px; max-width: 560px;
}
.brand .dot {
  width: 11px; height: 11px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.18), 0 0 18px rgba(255, 138, 61, 0.5);
}
.brand b {
  font-family: "Oswald"; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 13px; color: var(--ink-dim);
}

/* Cards */
.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 22px 24px;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  max-width: 560px;
  margin: 0 auto 16px;
}

/* Typography */
.kicker { font-family: "Oswald"; text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; color: var(--amber); margin-bottom: 10px; font-weight: 600; }
h1 { font-family: "Oswald"; font-weight: 600; font-size: 30px; line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 8px; }
h2.q { font-family: "Oswald"; font-weight: 600; font-size: 23px; line-height: 1.2; margin-bottom: 4px; }
h3 { font-family: "Oswald"; font-weight: 600; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 12px; }
p.sub { color: var(--ink-dim); font-size: 15px; margin-bottom: 22px; }
p.hint { color: var(--ink-dim); font-size: 13px; margin-top: 14px; }

/* Quiz banner (shown when arriving from quiz) */
.quiz-banner {
  background: rgba(255, 77, 79, 0.08);
  border: 1px solid rgba(255, 77, 79, 0.3);
  border-radius: 13px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.quiz-banner .qb-kicker { font-family: "Oswald"; text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; color: var(--leak); font-weight: 600; margin-bottom: 4px; }
.quiz-banner .qb-num { font-family: "Oswald"; font-weight: 700; font-size: 26px; color: var(--leak); }
.quiz-banner .qb-line { font-size: 13px; color: var(--ink-dim); margin-top: 4px; }
.quiz-banner .qb-line b { color: var(--ink); }

/* Date strip */
.date-strip {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 8px; margin: 0 -2px 18px; scrollbar-width: thin;
}
.date-strip::-webkit-scrollbar { height: 6px; }
.date-strip::-webkit-scrollbar-thumb { background: var(--gauge); border-radius: 3px; }
.date-card {
  flex: 0 0 auto; cursor: pointer; background: var(--panel-2);
  border: 1.5px solid var(--line); color: var(--ink);
  border-radius: 11px; padding: 12px 14px; min-width: 78px;
  text-align: center; transition: 0.18s; font-family: "Archivo";
}
.date-card:hover { border-color: var(--amber); }
.date-card.selected { border-color: var(--amber); background: rgba(255, 138, 61, 0.15); }
.date-card .dc-dow { font-size: 12px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.08em; font-family: "Oswald"; font-weight: 500; }
.date-card .dc-num { font-family: "Oswald"; font-weight: 700; font-size: 22px; margin-top: 4px; }
.date-card .dc-mon { font-size: 11px; color: var(--ink-dim); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.08em; font-family: "Oswald"; }
.date-card.has-slots .dc-dow { color: var(--recover); }
.date-card.empty { opacity: 0.4; cursor: not-allowed; }

/* Time slot grid */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 9px; }
.slot-btn {
  cursor: pointer; background: var(--panel-2); border: 1.5px solid var(--line);
  color: var(--ink); border-radius: 11px; padding: 12px 10px;
  font-family: "Oswald"; font-size: 15px; font-weight: 500;
  letter-spacing: 0.02em; transition: 0.18s;
}
.slot-btn:hover { border-color: var(--amber); background: #262d38; transform: translateY(-1px); }
.slot-btn.selected { border-color: var(--amber); background: rgba(255, 138, 61, 0.2); color: var(--amber); }
.slot-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.empty-state { color: var(--ink-dim); font-style: italic; text-align: center; padding: 30px 10px; font-size: 14px; }

/* Form */
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 13px; color: var(--ink-dim); margin-bottom: 6px; font-family: "Oswald"; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 11px; padding: 14px 15px; color: var(--ink);
  font-size: 16px; font-family: "Archivo";
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); }
.field .label-row { display: flex; align-items: baseline; justify-content: space-between; }
.field .label-row .opt { font-size: 11px; color: var(--ink-dim); text-transform: none; letter-spacing: 0; font-family: "Archivo"; }

/* Buttons */
.cta, .btn-primary {
  width: 100%; cursor: pointer; border: none; border-radius: 13px;
  font-family: "Oswald"; font-weight: 600; letter-spacing: 0.04em;
  font-size: 18px; padding: 17px; color: #1a1205;
  background: linear-gradient(180deg, #ffa45c, var(--amber-deep));
  box-shadow: 0 12px 24px -10px rgba(233, 97, 10, 0.8);
  text-transform: uppercase; transition: 0.18s;
}
.cta:hover, .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -12px rgba(233, 97, 10, 0.9); }
.cta:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost {
  background: none; border: 1px solid var(--line); color: var(--ink-dim);
  border-radius: 10px; padding: 10px 16px; cursor: pointer;
  font-family: "Archivo"; font-size: 14px; transition: 0.18s;
}
.btn-ghost:hover { border-color: var(--ink-dim); color: var(--ink); }

/* Selected summary footer */
.summary {
  background: var(--bg); border: 1px solid var(--line); border-radius: 11px;
  padding: 12px 14px; margin-bottom: 16px;
}
.summary .s-kicker { font-size: 11px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.1em; font-family: "Oswald"; font-weight: 500; }
.summary .s-value { font-family: "Oswald"; font-weight: 600; font-size: 17px; margin-top: 3px; }
.summary .s-value small { color: var(--ink-dim); font-weight: 400; font-size: 13px; }

/* Confirmation page */
.confirmation { text-align: center; }
.confirmation .check {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 16px;
  background: rgba(47, 210, 122, 0.15); border: 2px solid var(--recover);
  display: flex; align-items: center; justify-content: center;
  color: var(--recover); font-size: 30px; font-weight: bold;
}
.zoom-cta {
  background: rgba(47, 210, 122, 0.08); border: 1px solid rgba(47, 210, 122, 0.3);
  border-radius: 13px; padding: 18px; margin: 20px 0;
}
.zoom-cta a {
  display: inline-block; background: linear-gradient(180deg, #ffa45c, var(--amber-deep));
  color: #1a1205; padding: 12px 22px; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-family: "Oswald";
  letter-spacing: 0.04em; margin-top: 8px;
}

/* Loading */
.loading { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--gauge); border-top-color: var(--amber); border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none;
  transition: opacity 0.2s; z-index: 1000;
}
#toast.show { opacity: 1; }
#toast.show.error { background: var(--leak); color: #fff; }
#toast.show.success { background: var(--recover); color: var(--bg); }

.footnote { text-align: center; color: var(--ink-dim); font-size: 12px; margin-top: 20px; line-height: 1.6; }

@media (max-width: 430px) {
  h1 { font-size: 25px; }
  .card { padding: 22px 17px; }
}
