/* WHS Induction Builder — Styles
 * constructtrackpro.com/induction/
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --carbon:     #1D1D1F;
  --carbon-2:   #2C2C2E;
  --chalk:      #F5F5F7;
  --white:      #FFFFFF;
  --mid:        #86868B;
  --light:      #E8E8ED;
  --orange:     #FF6B35;
  --orange-dim: rgba(255,107,53,0.10);
  --blue:       #0071E3;
  --green:      #34C759;
  --green-dim:  rgba(52,199,89,0.10);
  --red:        #FF3B30;
  --yellow:     #FF9F0A;
  --radius-card: 16px;
  --radius-pill: 980px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--chalk);
  color: var(--carbon);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1 { font-size: clamp(28px,4.5vw,52px); font-weight: 200; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: clamp(22px,3vw,36px); font-weight: 200; letter-spacing: -0.025em; line-height: 1.15; }
h3 { font-size: clamp(16px,2vw,22px); font-weight: 400; letter-spacing: -0.02em; }
p  { line-height: 1.65; }

/* ─── NAV ─── */
.ind-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 52px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(29,29,31,0.92);
  backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-brand { display:flex; align-items:center; gap:10px; font-size:13px; font-weight:400; letter-spacing:-0.01em; color:rgba(255,255,255,0.9); text-decoration:none; }
.nav-brand svg { width:22px; height:22px; flex-shrink:0; }
.nav-brand .sep { color:rgba(255,255,255,0.2); margin:0 4px; }
.nav-brand .hub { color:var(--orange); font-weight:500; }
.nav-links { display:flex; align-items:center; gap:20px; }
.nav-links a { font-size:12px; color:rgba(255,255,255,0.5); text-decoration:none; transition:color 0.2s; }
.nav-links a:hover, .nav-links a.active { color:rgba(255,255,255,0.9); }
.nav-links a.active { color:var(--orange); }
.nav-cta { height:30px; padding:0 14px; background:var(--orange); color:white; border-radius:var(--radius-pill); font-size:11px; font-weight:500; text-decoration:none; display:flex; align-items:center; transition:opacity 0.2s; border:none; cursor:pointer; font-family:'DM Sans',sans-serif; }
.nav-cta:hover { opacity:0.88; }

/* ─── BREADCRUMB ─── */
.breadcrumb { padding:68px 0 0; background:var(--chalk); }
.breadcrumb-inner { max-width:1000px; margin:0 auto; padding:16px 40px 0; display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:12px; color:var(--mid); font-family:'DM Mono',monospace; }
.breadcrumb-inner a { color:var(--mid); text-decoration:none; transition:color 0.2s; }
.breadcrumb-inner a:hover { color:var(--carbon); }

/* ─── HERO ─── */
.page-hero { background:var(--carbon); padding:64px 40px 56px; text-align:center; position:relative; overflow:hidden; }
.page-hero::before { content:''; position:absolute; inset:0; background-image:linear-gradient(rgba(255,255,255,0.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.025) 1px,transparent 1px); background-size:48px 48px; }
.page-hero::after { content:''; position:absolute; width:500px; height:500px; border-radius:50%; background:radial-gradient(ellipse,rgba(255,107,53,0.12) 0%,transparent 70%); top:50%; left:50%; transform:translate(-50%,-60%); }
.page-hero > * { position:relative; z-index:1; }
.hero-eyebrow { font-family:'DM Mono',monospace; font-size:10px; letter-spacing:0.14em; text-transform:uppercase; color:var(--orange); margin-bottom:16px; }
.hero-title { color:white; margin-bottom:16px; }
.hero-title strong { font-weight:500; }
.hero-sub { font-size:clamp(14px,1.8vw,17px); font-weight:300; color:rgba(255,255,255,0.45); line-height:1.6; max-width:600px; margin:0 auto 28px; }
.hero-pills { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.hero-pill { height:32px; padding:0 16px; border-radius:var(--radius-pill); font-size:12px; font-weight:400; text-decoration:none; display:flex; align-items:center; gap:6px; transition:all 0.2s; }
.hero-pill.primary { background:var(--orange); color:white; border:none; cursor:pointer; font-family:'DM Sans',sans-serif; }
.hero-pill.primary:hover { background:#ff7a48; transform:translateY(-1px); }
.hero-pill.ghost { background:transparent; color:rgba(255,255,255,0.6); border:1px solid rgba(255,255,255,0.15); }

/* ─── STATS ─── */
.stats-row { display:flex; background:var(--white); border-top:1px solid var(--light); border-bottom:1px solid var(--light); flex-wrap:wrap; }
.stat-item { padding:18px 28px; text-align:center; border-right:1px solid var(--light); flex:1; min-width:100px; }
.stat-item:last-child { border-right:none; }
.stat-num { font-size:22px; font-weight:200; letter-spacing:-0.03em; color:var(--orange); display:block; margin-bottom:2px; }
.stat-label { font-size:10px; color:var(--mid); font-family:'DM Mono',monospace; letter-spacing:0.04em; }

/* ─── AD ─── */
.ad-unit { display:flex; align-items:center; justify-content:center; min-height:90px; padding:16px; background:var(--white); border-top:1px solid var(--light); border-bottom:1px solid var(--light); }

/* ─── BUILDER CONTAINER ─── */
.builder-wrap { max-width:760px; margin:0 auto; padding:40px 40px 64px; }

/* ─── PROGRESS STEPS ─── */
.progress-steps { display:flex; gap:0; margin-bottom:40px; background:var(--white); border:1px solid var(--light); border-radius:12px; overflow:hidden; }
.step-tab { flex:1; padding:12px 8px; text-align:center; font-family:'DM Mono',monospace; font-size:10px; letter-spacing:0.06em; text-transform:uppercase; color:var(--mid); cursor:pointer; border-right:1px solid var(--light); transition:all 0.2s; user-select:none; }
.step-tab:last-child { border-right:none; }
.step-tab.active { background:var(--orange); color:white; }
.step-tab.done { background:var(--green-dim); color:#1d8a3c; }
.step-tab .step-num { display:block; font-size:16px; margin-bottom:2px; font-family:'DM Sans',sans-serif; font-weight:300; }

/* ─── STEP PANELS ─── */
.step-panel { display:none; }
.step-panel.active { display:block; }
.step-heading { font-size:20px; font-weight:400; letter-spacing:-0.02em; color:var(--carbon); margin-bottom:6px; }
.step-sub { font-size:13px; color:var(--mid); font-weight:300; margin-bottom:24px; line-height:1.6; }

/* ─── FORM FIELDS ─── */
.field-group { margin-bottom:20px; }
.field-label { display:block; font-size:12px; font-weight:500; letter-spacing:0.02em; color:var(--carbon); margin-bottom:6px; }
.field-label span { color:var(--orange); } /* required marker */
.field-input, .field-select, .field-textarea {
  width:100%; padding:12px 14px;
  border:1.5px solid var(--light); border-radius:10px;
  background:var(--white); color:var(--carbon);
  font-family:'DM Sans',sans-serif; font-size:14px;
  transition:border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance:none;
}
.field-input:focus, .field-select:focus, .field-textarea:focus {
  outline:none; border-color:var(--orange); box-shadow:0 0 0 3px rgba(255,107,53,0.1);
}
.field-input::placeholder, .field-textarea::placeholder { color:var(--mid); }
.field-textarea { min-height:80px; resize:vertical; }
.field-select { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2386868B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; padding-right:36px; }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }

/* ─── CHOICE CARDS (site type) ─── */
.choice-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:10px; }
.choice-card { position:relative; }
.choice-card input[type=radio] { position:absolute; opacity:0; width:0; height:0; }
.choice-card label {
  display:flex; flex-direction:column; gap:4px; padding:16px;
  border:1.5px solid var(--light); border-radius:12px;
  background:var(--white); cursor:pointer; transition:all 0.2s;
}
.choice-card label:hover { border-color:#ccc; }
.choice-card input:checked + label { border-color:var(--orange); background:rgba(255,107,53,0.05); box-shadow:0 0 0 2px rgba(255,107,53,0.15); }
.choice-label { font-size:13px; font-weight:500; letter-spacing:-0.01em; }
.choice-desc { font-size:11px; color:var(--mid); font-weight:300; }

/* ─── CHECKBOX GRID (work types) ─── */
.checkbox-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:8px; }
.checkbox-item { position:relative; }
.checkbox-item input[type=checkbox] { position:absolute; opacity:0; width:0; height:0; }
.checkbox-item label {
  display:flex; align-items:center; gap:10px; padding:12px 14px;
  border:1.5px solid var(--light); border-radius:10px;
  background:var(--white); cursor:pointer; transition:all 0.15s;
  font-size:13px; font-weight:400; color:var(--carbon);
}
.checkbox-item label:hover { border-color:#ccc; }
.checkbox-item input:checked + label { border-color:var(--orange); background:rgba(255,107,53,0.05); }
.checkbox-item label .cb-icon { font-size:16px; flex-shrink:0; }
.checkbox-item label .hrcw-tag { margin-left:auto; font-family:'DM Mono',monospace; font-size:9px; letter-spacing:0.06em; background:rgba(255,107,53,0.1); color:var(--orange); padding:2px 6px; border-radius:4px; flex-shrink:0; }
.checkbox-box { width:18px; height:18px; border:1.5px solid var(--light); border-radius:4px; flex-shrink:0; display:flex; align-items:center; justify-content:center; transition:all 0.15s; }
.checkbox-item input:checked + label .checkbox-box { background:var(--orange); border-color:var(--orange); }
.checkbox-item input:checked + label .checkbox-box::after { content:'✓'; color:white; font-size:11px; font-weight:600; }

/* ─── CUSTOM HAZARDS ─── */
.hazard-list { display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
.hazard-row { display:flex; gap:8px; align-items:center; }
.hazard-row .field-input { flex:1; }
.hazard-remove { width:32px; height:32px; border:none; background:var(--chalk); border-radius:8px; cursor:pointer; font-size:16px; color:var(--mid); display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:all 0.15s; }
.hazard-remove:hover { background:rgba(255,59,48,0.1); color:var(--red); }
.add-hazard-btn { display:flex; align-items:center; gap:6px; font-size:13px; color:var(--blue); background:none; border:none; cursor:pointer; padding:4px 0; font-family:'DM Sans',sans-serif; }

/* ─── NAV BUTTONS ─── */
.step-nav { display:flex; justify-content:space-between; align-items:center; margin-top:32px; padding-top:24px; border-top:1px solid var(--light); }
.btn { height:44px; padding:0 24px; border-radius:var(--radius-pill); font-family:'DM Sans',sans-serif; font-size:14px; font-weight:500; cursor:pointer; border:none; transition:all 0.2s; display:inline-flex; align-items:center; gap:8px; text-decoration:none; }
.btn-primary { background:var(--orange); color:white; }
.btn-primary:hover { background:#ff7a48; transform:translateY(-1px); box-shadow:0 6px 20px rgba(255,107,53,0.3); }
.btn-secondary { background:var(--chalk); color:var(--carbon); border:1px solid var(--light); }
.btn-secondary:hover { background:var(--light); }
.btn-sm { height:34px; padding:0 16px; font-size:12px; }
.btn-generate { height:52px; padding:0 36px; font-size:15px; width:100%; justify-content:center; }
.btn-disabled { opacity:0.4; cursor:not-allowed; pointer-events:none; }

/* ─── VALIDATION ─── */
.field-error { font-size:11px; color:var(--red); margin-top:4px; display:none; }
.field-input.error, .field-select.error { border-color:var(--red); }

/* ─── OUTPUT ─── */
#outputSection { display:none; }
.output-header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:24px; }
.output-actions { display:flex; gap:8px; flex-wrap:wrap; }

.checklist-document {
  background:var(--white); border:1px solid var(--light); border-radius:var(--radius-card); overflow:hidden;
}
.doc-header { background:var(--carbon); padding:28px 32px; color:white; }
.doc-title { font-size:20px; font-weight:500; letter-spacing:-0.02em; margin-bottom:4px; }
.doc-subtitle { font-size:12px; color:rgba(255,255,255,0.5); font-weight:300; }
.doc-meta { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px; }
.doc-meta-item { background:rgba(255,255,255,0.06); border-radius:8px; padding:10px 14px; }
.doc-meta-label { font-family:'DM Mono',monospace; font-size:9px; letter-spacing:0.1em; text-transform:uppercase; color:rgba(255,255,255,0.3); margin-bottom:3px; }
.doc-meta-value { font-size:13px; font-weight:400; color:white; }
.doc-meta-item.hrcw-notice { grid-column:1/-1; background:rgba(255,107,53,0.15); border:1px solid rgba(255,107,53,0.25); }
.doc-meta-item.hrcw-notice .doc-meta-value { color:rgba(255,200,160,1); font-size:12px; line-height:1.5; }

.doc-body { padding:28px 32px; }
.doc-section { margin-bottom:28px; }
.section-heading { font-size:13px; font-weight:500; letter-spacing:0.04em; text-transform:uppercase; color:var(--orange); margin-bottom:12px; padding-bottom:8px; border-bottom:1px solid var(--orange-dim); font-family:'DM Mono',monospace; }
.checklist-items { list-style:none; display:flex; flex-direction:column; gap:8px; }
.checklist-item { display:flex; align-items:flex-start; gap:12px; padding:10px 12px; border:1px solid var(--light); border-radius:8px; transition:background 0.15s; }
.checklist-item:hover { background:var(--chalk); }
.item-checkbox { width:20px; height:20px; border:1.5px solid var(--light); border-radius:4px; flex-shrink:0; margin-top:1px; cursor:pointer; -webkit-appearance:none; appearance:none; transition:all 0.15s; }
.item-checkbox:checked { background:var(--green); border-color:var(--green); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' fill='none'%3E%3Cpath d='M1 5l4 4 6-8' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:center; }
.item-text { font-size:13px; line-height:1.5; font-weight:300; color:var(--carbon); flex:1; }

/* Acknowledgement section styling */
.doc-section.acknowledgement { background:var(--chalk); border-radius:12px; padding:20px; }
.sig-row { display:grid; grid-template-columns:1fr 1fr auto; gap:16px; align-items:end; margin-top:16px; }
.sig-field label { font-family:'DM Mono',monospace; font-size:9px; letter-spacing:0.1em; text-transform:uppercase; color:var(--mid); display:block; margin-bottom:6px; }
.sig-line { height:38px; border-bottom:1.5px solid var(--carbon); width:100%; }
.sig-date .sig-line { width:120px; }

/* Summary banner */
.checklist-summary { background:var(--green-dim); border:1px solid rgba(52,199,89,0.2); border-radius:12px; padding:16px 20px; margin-bottom:20px; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.summary-count { font-size:28px; font-weight:200; letter-spacing:-0.03em; color:#1d8a3c; }
.summary-label { font-size:13px; color:#1d8a3c; font-weight:400; }
.summary-chips { display:flex; gap:8px; flex-wrap:wrap; margin-left:auto; }
.summary-chip { height:26px; padding:0 12px; border-radius:var(--radius-pill); font-family:'DM Mono',monospace; font-size:10px; letter-spacing:0.06em; background:rgba(52,199,89,0.15); color:#1d8a3c; display:flex; align-items:center; }

/* ─── BIZCOVER CTA ─── */
.insurance-cta { background:var(--carbon); border-radius:var(--radius-card); padding:24px 28px; margin-top:28px; color:white; display:flex; align-items:flex-start; gap:20px; flex-wrap:wrap; }
.insurance-cta-icon { width:44px; height:44px; border-radius:10px; background:rgba(255,255,255,0.08); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:20px; }
.insurance-cta-body { flex:1; min-width:200px; }
.insurance-cta-body p:first-child { font-family:'DM Mono',monospace; font-size:9px; letter-spacing:0.12em; text-transform:uppercase; color:var(--orange); margin-bottom:4px; }
.insurance-cta-body h4 { font-size:15px; font-weight:400; letter-spacing:-0.01em; color:white; margin-bottom:4px; }
.insurance-cta-body p:last-child { font-size:12px; color:rgba(255,255,255,0.4); font-weight:300; line-height:1.5; }
.insurance-cta a { flex-shrink:0; align-self:center; }

/* ─── EMAIL CAPTURE ─── */
.email-capture-wrap { background:var(--carbon); border-radius:var(--radius-card); padding:28px 32px; margin-top:28px; color:white; }
.email-capture-wrap p.ec-eyebrow { font-family:'DM Mono',monospace; font-size:9px; letter-spacing:0.14em; text-transform:uppercase; color:var(--orange); margin-bottom:6px; }
.email-capture-wrap h3 { font-size:18px; font-weight:400; letter-spacing:-0.02em; color:white; margin-bottom:8px; }
.email-capture-wrap p.ec-sub { font-size:13px; color:rgba(255,255,255,0.45); font-weight:300; margin-bottom:20px; }

/* ─── DISCLAIMER ─── */
.disclaimer { background:rgba(255,107,53,0.05); border:1px solid rgba(255,107,53,0.15); border-radius:10px; padding:16px 20px; margin-top:24px; }
.disclaimer p { font-size:12px; color:var(--mid); line-height:1.6; font-weight:300; }
.disclaimer strong { color:var(--carbon); font-weight:500; }

/* ─── CROSS-PROMO ─── */
.cross-promo { background:var(--carbon); border-radius:var(--radius-card); padding:24px 28px; margin-top:24px; color:white; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.cross-promo-text p:first-child { font-family:'DM Mono',monospace; font-size:9px; letter-spacing:0.12em; text-transform:uppercase; color:var(--orange); margin-bottom:4px; }
.cross-promo-text h3 { font-size:16px; font-weight:400; letter-spacing:-0.02em; color:white; }
.cross-promo-text p:last-child { font-size:12px; color:rgba(255,255,255,0.5); font-weight:300; margin-top:2px; }

/* ─── CONTENT / FAQ ─── */
.content-section { max-width:1000px; margin:0 auto; padding:0 40px 48px; }
.content-section h2 { margin-bottom:16px; }
.content-section p { font-size:14px; color:var(--mid); font-weight:300; line-height:1.7; margin-bottom:12px; }
.content-section a { color:var(--blue); }
.content-section strong { color:var(--carbon); font-weight:500; }

.faq-section { max-width:1000px; margin:0 auto; padding:0 40px 64px; }
.faq-item { border-top:1px solid var(--light); }
.faq-q { width:100%; text-align:left; background:none; border:none; cursor:pointer; padding:18px 0; display:flex; justify-content:space-between; align-items:center; font-family:'DM Sans',sans-serif; font-size:14px; font-weight:400; color:var(--carbon); letter-spacing:-0.01em; gap:16px; }
.faq-q svg { flex-shrink:0; transition:transform 0.3s; }
.faq-item.open .faq-q svg { transform:rotate(45deg); }
.faq-a { font-size:13px; color:var(--mid); line-height:1.7; font-weight:300; padding-bottom:18px; display:none; }
.faq-item.open .faq-a { display:block; }

/* ─── FOOTER ─── */
.ind-footer { background:var(--carbon); border-top:1px solid rgba(255,255,255,0.06); padding:40px 60px; }
.footer-inner { max-width:1000px; margin:0 auto; display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:24px; }
.footer-brand { display:flex; align-items:center; gap:8px; font-size:13px; color:rgba(255,255,255,0.5); text-decoration:none; }
.footer-brand svg { width:18px; height:18px; }
.footer-links { display:flex; gap:20px; flex-wrap:wrap; }
.footer-links a { font-size:12px; color:rgba(255,255,255,0.3); text-decoration:none; transition:color 0.2s; }
.footer-links a:hover { color:rgba(255,255,255,0.7); }
.footer-copy { font-family:'DM Mono',monospace; font-size:10px; color:rgba(255,255,255,0.2); letter-spacing:0.04em; line-height:1.7; width:100%; margin-top:8px; }

/* ─── PRINT ─── */
@media print {
  .ind-nav, .breadcrumb, .page-hero, .stats-row, .ad-unit, .builder-wrap > *:not(#outputSection),
  .output-actions, .insurance-cta, .email-capture-wrap, .disclaimer,
  .cross-promo, .content-section, .faq-section, .ind-footer,
  .output-header .btn, .checklist-summary { display: none !important; }
  body { background: white; }
  #outputSection { display: block !important; }
  .builder-wrap { padding: 0; max-width: 100%; }
  .checklist-document { border: none; box-shadow: none; }
  .doc-header { background: black; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .checklist-item { border-color: #ddd; break-inside: avoid; }
  .doc-section { break-inside: avoid; }
  .item-checkbox { border: 1.5px solid #333; }
  .section-heading { color: #333; font-size: 11px; }
}

/* ─── RESPONSIVE ─── */
@media (max-width:768px) {
  .ind-nav { padding:0 20px; }
  .nav-links .hide-mobile { display:none; }
  .page-hero { padding:64px 24px 40px; }
  .builder-wrap { padding:24px 20px 48px; }
  .field-row { grid-template-columns:1fr; }
  .doc-meta { grid-template-columns:1fr; }
  .sig-row { grid-template-columns:1fr; }
  .choice-grid { grid-template-columns:1fr 1fr; }
  .checkbox-grid { grid-template-columns:1fr; }
  .progress-steps { overflow-x:auto; }
  .content-section, .faq-section { padding-left:20px; padding-right:20px; }
  .ind-footer { padding:32px 24px; }
  .stats-row .stat-item { min-width:50%; }
  .cross-promo { flex-direction:column; }
  .insurance-cta { flex-direction:column; }
  .output-header { flex-direction:column; }
}
