/* RV Service Escalation Kit - base styles */

:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --ink: #1a1d22;
  --muted: #5b6470;
  --accent: #1f4f8b;
  --accent-strong: #163a68;
  --accent-soft: #e8eef7;
  --border: #d8d4cd;
  --warn-bg: #fff7e6;
  --warn-border: #e6c884;
  --ok: #1f7a3a;
  --err: #b3261e;
  --radius: 8px;
  --maxw: 880px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--accent); }
a:hover { color: var(--accent-strong); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

header.site .brand {
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}

header.site nav a {
  margin-left: 18px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}

header.site .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

footer.site a {
  color: var(--muted);
  margin-right: 14px;
}

.hero {
  padding: 60px 0 30px;
}

.hero h1 {
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 16px;
}

.hero p.sub {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 12px;
}

.hero p.support {
  color: var(--muted);
  margin: 0 0 28px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 12px 0 24px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-strong); color: #fff; }

.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn.secondary:hover { background: var(--accent-soft); color: var(--accent-strong); }

.btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

section h2 {
  font-size: 24px;
  margin: 0 0 14px;
}

section h3 {
  font-size: 18px;
  margin: 20px 0 8px;
}

.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 14px 16px;
  border-radius: var(--radius);
  margin: 16px 0;
  font-size: 15px;
}

.disclaimer {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  padding: 16px;
  border-radius: var(--radius);
  font-size: 15px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
}

ul.checklist {
  list-style: none;
  padding: 0;
}
ul.checklist li {
  padding: 6px 0 6px 26px;
  position: relative;
}
ul.checklist li::before {
  content: "✓";
  color: var(--ok);
  position: absolute;
  left: 0;
  top: 6px;
  font-weight: 700;
}

details.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 10px 0;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
}

/* Intake form */

.intake-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 24px 0;
}

.progress {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.progress .step {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
}
.progress .step.active { background: var(--accent); }
.progress .step.done { background: var(--accent-strong); }

.screen { display: none; }
.screen.active { display: block; }

.screen h2 {
  margin-top: 0;
  font-size: 22px;
}

.screen .hint {
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0 18px;
}

.field {
  margin: 14px 0;
}

.field > label,
.field > .field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 15px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="number"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field .options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.field .options.inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}

.field .options label {
  font-weight: 400;
  font-size: 15px;
  cursor: pointer;
}

.field .help {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.field.required > label::after,
.field.required > .field-label::after {
  content: " *";
  color: var(--err);
}

.error-msg {
  color: var(--err);
  font-size: 13px;
  margin-top: 4px;
  display: none;
}

.field.has-error .error-msg { display: block; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--err);
}

.repeating-group {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin: 12px 0;
  background: #fafaf7;
}

.repeating-group .group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.repeating-group .group-header strong { font-size: 15px; }

.btn.remove {
  background: transparent;
  color: var(--err);
  border: 1px solid var(--err);
  padding: 4px 10px;
  font-size: 13px;
}
.btn.remove:hover { background: #fdecea; color: var(--err); }

.btn.add {
  background: transparent;
  color: var(--accent);
  border: 1px dashed var(--accent);
  padding: 8px 14px;
  font-size: 14px;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  gap: 10px;
}

.summary-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #fafaf7;
  font-size: 14px;
}

.summary-list dt {
  font-weight: 600;
  margin-top: 8px;
}
.summary-list dd {
  margin: 0 0 6px;
  color: var(--muted);
}

.banner {
  padding: 14px 16px;
  border-radius: var(--radius);
  margin: 16px 0;
  font-size: 15px;
}
.banner.ok { background: #e9f5ed; color: var(--ok); border: 1px solid #b9dcc4; }
.banner.err { background: #fdecea; color: var(--err); border: 1px solid #f1b9b5; }
.banner.info { background: var(--accent-soft); color: var(--accent-strong); border: 1px solid #cfdbef; }

pre.packet-preview {
  background: #fdfdfb;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  max-height: 360px;
  overflow: auto;
  font-size: 13px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.footer-legal {
  display: block;
  text-align: left;
}

.footer-legal p {
  margin: 0 0 8px;
}

.footer-legal p:last-child {
  margin-bottom: 0;
}
