/* CodeStratz Marketing Investment Calculator
   Colours follow the CodeStratz Growth design: orange accent, charcoal ink, warm neutrals. */

.czcalc {
  --czc-ink: #121110;
  --czc-accent: #F26522;
  --czc-accent-hover: #E0561A;
  --czc-accent-text: #B5430D;
  --czc-accent-soft: #FFF0E6;
  --czc-muted: #5D5650;
  --czc-line: #E6E0DA;
  --czc-soft: #F7F4F1;
  --czc-bg: #FFFFFF;
  --czc-surface: #FFFFFF;
  --czc-radius: 14px;
  --czc-btn-radius: 8px;
  --czc-head: var(--f-display, "Poppins", Arial, sans-serif);
  --czc-body: var(--f-body, "Hanken Grotesk", Arial, sans-serif);

  max-width: 760px;
  margin: 0 auto;
  color: var(--czc-ink);
  font-family: var(--czc-body);
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}
.czcalc *, .czcalc *::before, .czcalc *::after { box-sizing: border-box; }
.czcalc [hidden] { display: none !important; }

.czc-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Page intro ---------- */
.czc-intro { text-align: center; max-width: 640px; margin: 0 auto clamp(24px, 4vw, 40px); }
.czc-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font: 500 12px/1.4 "JetBrains Mono", ui-monospace, Menlo, monospace;
  letter-spacing: .12em; text-transform: uppercase; color: var(--czc-accent-text);
}
.czc-eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--czc-accent); }
.czcalc .czc-title {
  margin: 0 0 14px; color: var(--czc-ink);
  font-family: var(--czc-head); font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -.015em; text-wrap: balance;
}
.czc-lead-in { margin: 0; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--czc-muted); }

.czc-card {
  background: var(--czc-surface);
  border: 1px solid var(--czc-line);
  border-radius: var(--czc-radius);
  padding: clamp(22px, 4vw, 36px);
}

/* ---------- Progress ---------- */
.czc-progress { margin-bottom: 26px; }
.czc-progress-label {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--czc-muted); margin-bottom: 8px;
}
.czc-progress-track { height: 6px; background: var(--czc-soft); border-radius: 999px; overflow: hidden; }
.czc-progress-fill { height: 100%; width: 12.5%; background: var(--czc-accent); border-radius: 999px; transition: width .25s ease; }

/* ---------- Question ---------- */
.czc-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.czc-question {
  display: block; padding: 0; margin: 0 0 6px; float: none; width: 100%;
  font-family: var(--czc-head); font-size: clamp(19px, 1.2rem + .4vw, 23px);
  font-weight: 700; line-height: 1.3; color: var(--czc-ink);
}
.czc-question:focus, .czc-results-title:focus { outline: none; }
.czc-note { font-size: 14px; color: var(--czc-muted); margin: 0 0 20px; }

.czc-options { display: flex; flex-direction: column; gap: 10px; }
.czc-option {
  display: flex; align-items: center; gap: 12px;
  margin: 0; padding: 14px 16px;
  border: 1.5px solid var(--czc-line); border-radius: 12px;
  background: var(--czc-surface); color: var(--czc-ink);
  font-size: 15px; font-weight: 400; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.czc-option:hover { border-color: var(--czc-accent); }
.czc-option.is-selected { border-color: var(--czc-accent); background: var(--czc-accent-soft); font-weight: 600; }
.czc-option input { margin: 0; width: 18px; height: 18px; flex: none; accent-color: var(--czc-accent); }
.czc-option:focus-within { outline: 2px solid var(--czc-ink); outline-offset: 2px; }

.czc-input {
  width: 100%; margin: 0; padding: 12px 14px;
  border: 1.5px solid var(--czc-line); border-radius: 10px;
  background: var(--czc-surface); color: var(--czc-ink);
  font-family: var(--czc-body); font-size: 15px; line-height: 1.4;
}
.czc-input:focus { outline: none; border-color: var(--czc-accent); box-shadow: 0 0 0 3px rgba(242, 106, 33, .18); }
.czc-freetext { margin-top: 10px; }

/* ---------- Buttons (explicit so theme button styles don't leak in) ---------- */
.czcalc .czc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; margin: 0; padding: 12px 22px;
  border: 2px solid transparent; border-radius: var(--czc-btn-radius);
  font-family: var(--czc-body); font-size: 15px; font-weight: 600; line-height: 1.2;
  text-decoration: none; text-transform: none; letter-spacing: 0;
  cursor: pointer; box-shadow: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
}
.czcalc .czc-btn:active { transform: scale(.98); }
.czcalc .czc-btn:focus-visible { outline: 2px solid var(--czc-ink); outline-offset: 3px; }
.czcalc .czc-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.czcalc .czc-btn-primary,
.czcalc .czc-btn-primary:visited { background: var(--czc-accent); border-color: var(--czc-accent); color: var(--czc-ink); }
.czcalc .czc-btn-primary:hover:not(:disabled),
.czcalc .czc-btn-primary:focus:not(:disabled) { background: var(--czc-accent-hover); border-color: var(--czc-accent-hover); color: var(--czc-ink); }

.czcalc .czc-btn-dark { background: transparent; border-color: var(--czc-ink); color: var(--czc-ink); }
.czcalc .czc-btn-dark:hover:not(:disabled),
.czcalc .czc-btn-dark:focus:not(:disabled) { background: var(--czc-ink); border-color: var(--czc-ink); color: #fff; }

.czcalc .czc-btn-ghost { background: transparent; border-color: var(--czc-line); color: var(--czc-ink); }
.czcalc .czc-btn-ghost:hover:not(:disabled),
.czcalc .czc-btn-ghost:focus:not(:disabled) { background: var(--czc-soft); border-color: var(--czc-line); color: var(--czc-ink); }

.czcalc .czc-btn-block { width: 100%; }

.czc-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }

/* ---------- Results ---------- */
.czc-results-hero { text-align: center; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--czc-line); }
.czc-results-title {
  font-family: var(--czc-head); font-size: clamp(20px, 1.25rem + .5vw, 25px);
  font-weight: 700; line-height: 1.3; margin: 0 0 8px; color: var(--czc-ink);
}
.czc-results-hero p { font-size: 15px; color: var(--czc-muted); max-width: 540px; margin: 0 auto; }

.czc-skills { display: flex; flex-direction: column; gap: 10px; margin: 0 0 24px; }
.czc-skill {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 14px 16px; background: var(--czc-soft); border: 1px solid var(--czc-line); border-radius: 12px;
}
.czc-skill-name { font-weight: 700; font-size: 15px; color: var(--czc-ink); }
.czc-skill-blurb { font-size: 13.5px; color: var(--czc-muted); margin-top: 2px; }
.czc-skill-cost { font-weight: 700; font-size: 14.5px; color: var(--czc-accent-text); white-space: nowrap; }

.czc-range {
  text-align: center; background: var(--czc-ink); color: #fff;
  border-radius: var(--czc-radius); padding: 28px 20px; margin: 24px 0;
}
.czc-range-label { font-size: 13px; color: #BDB8B2; text-transform: uppercase; letter-spacing: .06em; }
.czc-range-value { font-family: var(--czc-head); font-size: clamp(26px, 1.4rem + 1.4vw, 34px); font-weight: 800; line-height: 1.2; margin-top: 6px; color: #fff; }
.czc-range-sub { font-size: 13px; color: #BDB8B2; margin-top: 8px; }

.czc-gap {
  background: var(--czc-soft); border-left: 4px solid var(--czc-accent);
  border-radius: 10px; padding: 14px 16px; font-size: 14.5px; margin: 20px 0;
}

.czc-bullets { margin: 20px 0; padding-left: 20px; }
.czc-bullets li { margin-bottom: 8px; font-size: 15px; }

.czc-contact-note {
  background: var(--czc-soft); border: 1px solid var(--czc-line); border-radius: 12px;
  padding: 14px 16px; font-size: 15px; text-align: center; margin: 20px 0;
}

.czc-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.czc-cta .czc-btn { flex: 1 1 220px; }

.czc-lead { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.czc-lead-note { font-size: 13.5px; color: var(--czc-muted); margin: 0 0 4px; }
.czc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.czc-error { margin: 0; font-size: 14px; color: #B42318; }
.czc-confirm {
  background: var(--czc-soft); border: 1px solid var(--czc-line); border-left: 4px solid var(--czc-accent);
  border-radius: 10px; padding: 14px 16px; font-size: 15px; margin-top: 16px;
}

.czc-lower { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; }
.czcalc .czc-link {
  background: none; border: 0; padding: 4px 0; margin: 0;
  font-family: var(--czc-body); font-size: 14px; font-weight: 500;
  color: var(--czc-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.czcalc .czc-link:hover, .czcalc .czc-link:focus { background: none; color: var(--czc-accent-text); }
.czcalc .czc-link:focus-visible { outline: 2px solid var(--czc-ink); outline-offset: 2px; }

/* ---------- Consultation modal ---------- */
html.czc-lock { overflow: hidden; }
.czc-modal {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(21, 21, 21, .6);
}
.czc-modal-card {
  position: relative; width: 100%; max-width: 440px;
  background: var(--czc-surface); border-radius: var(--czc-radius);
  padding: 36px 28px 28px; text-align: center;
}
.czcalc .czc-modal-close {
  position: absolute; top: 10px; right: 12px;
  width: 36px; height: 36px; padding: 0; margin: 0;
  background: none; border: 0; border-radius: 50%;
  font-size: 26px; line-height: 1; color: var(--czc-muted); cursor: pointer;
}
.czcalc .czc-modal-close:hover, .czcalc .czc-modal-close:focus { background: var(--czc-soft); color: var(--czc-ink); }
.czc-modal-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--czc-accent-text); margin-bottom: 8px; }
.czc-modal-price { font-family: var(--czc-head); font-size: 32px; font-weight: 800; color: var(--czc-ink); margin-bottom: 8px; }
.czc-modal-price span { font-family: var(--czc-body); font-size: 15px; font-weight: 500; color: var(--czc-muted); }
.czc-modal-desc { font-size: 15px; color: var(--czc-muted); margin: 0 0 22px; }

/* ---------- Small screens ---------- */
@media (max-width: 520px) {
  .czc-cta { flex-direction: column; }
  .czc-cta .czc-btn { flex: none; width: 100%; }
  .czc-skill { flex-direction: column; gap: 6px; }
  .czcalc .czc-btn { padding: 13px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .czc-progress-fill, .czc-option, .czcalc .czc-btn { transition: none; }
}

/* ---------- Print / PDF: only the results ---------- */
@media print {
  body * { visibility: hidden !important; }
  .czcalc, .czcalc * { visibility: visible !important; }
  .czcalc { position: absolute; left: 0; top: 0; width: 100%; max-width: none; }
  .czc-card { border: 0; padding: 0; }
  .czc-cta, .czc-lead, .czc-lower, .czc-confirm, .czc-modal { display: none !important; }
  .czc-range { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
