/* Fire Alarm Requirement Wizard v1.0 */
.reqwiz-page{
  --rw-red:#c92c2c;
  --rw-red-dark:#9f1f22;
  --rw-navy:#061a36;
  --rw-navy-2:#0b2347;
  --rw-text:#0f172a;
  --rw-muted:#526179;
  --rw-border:#d8e0eb;
  --rw-card:#ffffff;
  --rw-soft:#f4f7fb;
  --rw-soft-blue:#edf5ff;
  --rw-green:#147a3f;
  --rw-orange:#9a4b0d;
  --rw-shadow:0 18px 45px rgba(15,23,42,.10);
  background:linear-gradient(180deg,#f7f9fc 0%,#eef3f8 42%,#f8fafc 100%);
  color:var(--rw-text);
  padding:28px 18px 56px;
  min-height:calc(100vh - 80px);
}

.reqwiz-page *{ box-sizing:border-box; }

.reqwiz-page a{ color:inherit; }

.reqwiz-hero,
.reqwiz-examples,
.reqwiz-layout,
.reqwiz-reference{
  max-width:1240px;
  margin-left:auto;
  margin-right:auto;
}

.reqwiz-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:22px;
  align-items:stretch;
  padding:34px;
  border:1px solid rgba(216,224,235,.9);
  border-radius:28px;
  background:
    radial-gradient(circle at 12% 0%,rgba(201,44,44,.18),transparent 34%),
    linear-gradient(135deg,#071a35 0%,#0a2855 58%,#122f5f 100%);
  color:#fff;
  box-shadow:var(--rw-shadow);
  overflow:hidden;
}

.reqwiz-kicker,
.reqwiz-eyebrow{
  margin:0 0 8px;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:.78rem;
  font-weight:900;
  color:var(--rw-red);
}

.reqwiz-hero .reqwiz-kicker{ color:#fecaca; }

.reqwiz-hero h1{
  font-size:clamp(2.1rem,4vw,4.6rem);
  line-height:.96;
  margin:0 0 16px;
  max-width:760px;
}

.reqwiz-hero p{
  font-size:1.08rem;
  line-height:1.6;
  margin:0;
  max-width:810px;
  color:#e7eef8;
}

.reqwiz-hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}

.reqwiz-hero__note{
  align-self:stretch;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.10);
  backdrop-filter:blur(8px);
  border-radius:22px;
  padding:22px;
  color:#f8fafc;
  line-height:1.55;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.reqwiz-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:0;
  border-radius:999px;
  padding:12px 18px;
  font-weight:900;
  text-decoration:none !important;
  cursor:pointer;
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
  font-size:.98rem;
}

.reqwiz-btn:hover{
  transform:translateY(-1px);
  text-decoration:none !important;
}

.reqwiz-btn--primary{
  background:var(--rw-red);
  color:#fff;
  box-shadow:0 12px 24px rgba(201,44,44,.28);
}

.reqwiz-btn--primary:hover{ background:var(--rw-red-dark); }

.reqwiz-btn--ghost{
  background:#fff;
  color:var(--rw-navy);
  border:1px solid var(--rw-border);
}

.reqwiz-btn--small{
  padding:10px 13px;
  font-size:.9rem;
}

.reqwiz-examples{
  margin-top:18px;
  padding:20px 22px;
  background:#fff;
  border:1px solid var(--rw-border);
  border-radius:24px;
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:space-between;
  box-shadow:0 10px 30px rgba(15,23,42,.06);
}

.reqwiz-examples h2{
  margin:0;
  font-size:1.35rem;
}

.reqwiz-example-grid{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}

.reqwiz-pill{
  border:1px solid #d5dde8;
  background:#f8fafc;
  color:var(--rw-navy);
  border-radius:999px;
  padding:10px 14px;
  font-weight:850;
  cursor:pointer;
}

.reqwiz-pill:hover{
  background:var(--rw-soft-blue);
  border-color:#a8c7ee;
}

.reqwiz-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 410px;
  gap:22px;
  align-items:start;
  margin-top:22px;
}

.reqwiz-card{
  background:var(--rw-card);
  border:1px solid var(--rw-border);
  border-radius:24px;
  box-shadow:0 12px 36px rgba(15,23,42,.07);
}

.reqwiz-form{
  padding:24px;
}

.reqwiz-card__head{
  padding:4px 4px 18px;
  border-bottom:1px solid var(--rw-border);
  margin-bottom:18px;
}

.reqwiz-card__head h2,
.reqwiz-reference h2,
.reqwiz-result h2{
  margin:0 0 8px;
  font-size:1.65rem;
  color:var(--rw-text);
}

.reqwiz-card__head p{
  margin:0;
  color:var(--rw-muted);
  line-height:1.55;
}

.reqwiz-fieldset{
  border:1px solid #e1e7ef;
  border-radius:20px;
  padding:18px;
  margin:0 0 18px;
  background:linear-gradient(180deg,#fff,#fbfdff);
}

.reqwiz-fieldset legend{
  padding:0 8px;
  color:var(--rw-navy);
  font-weight:950;
}

.reqwiz-two,
.reqwiz-three{
  display:grid;
  gap:14px;
  margin-top:12px;
}

.reqwiz-two{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.reqwiz-three{ grid-template-columns:repeat(3,minmax(0,1fr)); }

.reqwiz-label{
  display:flex;
  flex-direction:column;
  gap:7px;
  color:#1e293b;
  font-weight:850;
  font-size:.94rem;
}

.reqwiz-label input,
.reqwiz-label select{
  width:100%;
  border:1px solid #cbd5e1;
  border-radius:14px;
  background:#fff;
  color:#0f172a;
  padding:12px 13px;
  font:inherit;
  font-weight:700;
  outline:none;
}

.reqwiz-label input:focus,
.reqwiz-label select:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 4px rgba(147,197,253,.28);
}

.reqwiz-checkline,
.reqwiz-checkbox-grid{
  display:grid;
  gap:10px;
  margin-top:14px;
}

.reqwiz-checkline label,
.reqwiz-checkbox-grid label{
  display:flex;
  gap:9px;
  align-items:flex-start;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:11px 12px;
  color:#1f2937;
  font-weight:780;
  line-height:1.35;
}

.reqwiz-checkbox-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.reqwiz-checkline input,
.reqwiz-checkbox-grid input{
  margin-top:2px;
  accent-color:var(--rw-red);
}

.reqwiz-r2-panel{
  display:none;
}

.reqwiz-r2-panel.is-visible{
  display:block;
}

.reqwiz-help{
  color:var(--rw-muted);
  margin:0 0 10px;
  line-height:1.5;
}

.reqwiz-helper-actions{
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:8px;
}

.reqwiz-load-output{
  display:block;
  margin-top:12px;
  padding:12px 14px;
  border-radius:14px;
  background:#f1f5f9;
  border:1px dashed #cbd5e1;
  color:#1e293b;
  font-weight:850;
}

.reqwiz-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:flex-start;
  padding-top:4px;
}

.reqwiz-result-wrap{
  position:sticky;
  top:18px;
  display:grid;
  gap:16px;
}

.reqwiz-result{
  padding:22px;
  min-height:320px;
}

.reqwiz-result p{
  color:#334155;
  line-height:1.55;
}

.reqwiz-empty-state{
  margin-top:16px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:18px;
  padding:16px;
  color:#1e293b;
}

.reqwiz-empty-state ul,
.reqwiz-result ul,
.reqwiz-result ol{
  margin:10px 0 0;
  padding-left:20px;
}

.reqwiz-status{
  display:flex;
  gap:12px;
  align-items:flex-start;
  border-radius:18px;
  padding:16px;
  margin:12px 0 16px;
  border:1px solid #cbd5e1;
}

.reqwiz-status strong{
  display:block;
  font-size:1.15rem;
  margin-bottom:4px;
}

.reqwiz-status span{
  display:inline-grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:999px;
  color:#fff;
  font-weight:950;
  flex:0 0 auto;
}

.reqwiz-status--required{
  background:#fff1f2;
  border-color:#fecdd3;
}
.reqwiz-status--required span{ background:var(--rw-red); }

.reqwiz-status--review{
  background:#fffbeb;
  border-color:#fde68a;
}
.reqwiz-status--review span{ background:#d97706; }

.reqwiz-status--clear{
  background:#ecfdf5;
  border-color:#bbf7d0;
}
.reqwiz-status--clear span{ background:var(--rw-green); }

.reqwiz-result-section{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid #e2e8f0;
}

.reqwiz-result-section h3{
  margin:0 0 8px;
  font-size:1.05rem;
  color:#0f172a;
}

.reqwiz-result-section li{
  margin:7px 0;
  color:#334155;
  line-height:1.45;
}

.reqwiz-badge-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:10px 0 0;
}

.reqwiz-badge{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:6px 10px;
  background:#eef2ff;
  color:#27346a;
  font-size:.78rem;
  font-weight:950;
  letter-spacing:.03em;
  text-transform:uppercase;
}

.reqwiz-summary-box{
  margin-top:14px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  padding:14px;
  white-space:pre-wrap;
  color:#1e293b;
  font-weight:740;
  line-height:1.45;
  max-height:230px;
  overflow:auto;
}

.reqwiz-result-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:14px;
}

.reqwiz-related{
  padding:18px;
}

.reqwiz-related a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:9px;
  padding:12px 13px;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#f8fafc;
  color:var(--rw-navy);
  font-weight:900;
  text-decoration:none;
}

.reqwiz-related a::after{ content:'›'; font-size:1.4rem; color:var(--rw-red); }
.reqwiz-related a:hover{ background:#edf5ff; text-decoration:none; }

.reqwiz-reference{
  margin-top:22px;
  padding:24px;
}

.reqwiz-flow-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}

.reqwiz-flow-grid div{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:15px;
  border:1px solid #e2e8f0;
  border-radius:18px;
  background:#f8fafc;
}

.reqwiz-flow-grid strong{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:999px;
  background:var(--rw-navy);
  color:#fff;
}

.reqwiz-flow-grid span{
  color:#334155;
  line-height:1.45;
  font-weight:760;
}

@media print{
  header,
  footer,
  .reqwiz-hero__actions,
  .reqwiz-examples,
  .reqwiz-form,
  .reqwiz-related,
  .reqwiz-reference,
  .reqwiz-result-actions{
    display:none !important;
  }
  .reqwiz-page{ background:#fff; padding:0; }
  .reqwiz-layout{ display:block; max-width:100%; }
  .reqwiz-result-wrap{ position:static; }
  .reqwiz-result{ box-shadow:none; border:0; }
}

@media (max-width:980px){
  .reqwiz-hero,
  .reqwiz-layout{
    grid-template-columns:1fr;
  }
  .reqwiz-result-wrap{ position:static; }
  .reqwiz-flow-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:720px){
  .reqwiz-page{ padding:16px 12px 40px; }
  .reqwiz-hero{ padding:24px; border-radius:22px; }
  .reqwiz-examples{ align-items:flex-start; flex-direction:column; }
  .reqwiz-example-grid{ justify-content:flex-start; }
  .reqwiz-two,
  .reqwiz-three,
  .reqwiz-checkbox-grid,
  .reqwiz-flow-grid{
    grid-template-columns:1fr;
  }
  .reqwiz-form{ padding:16px; }
}


/* v1.1 refinements */
.reqwiz-conditional-panel{display:none;}
.reqwiz-conditional-panel.is-visible{display:block;}
.reqwiz-result-disclaimer{
  border:1px solid #fecaca;
  background:#fff1f2;
  color:#7f1d1d;
  border-radius:14px;
  padding:12px 14px;
  margin:14px 0;
  font-size:.95rem;
}
.reqwiz-result-links{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:10px;
  margin-top:14px;
}
.reqwiz-result-links a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  border:1px solid #cbd5e1;
  background:#fff;
  color:#0f172a;
  border-radius:999px;
  text-decoration:none;
  font-weight:800;
  text-align:center;
  padding:8px 12px;
}
.reqwiz-result-links a:hover{background:#eff6ff;border-color:#93c5fd;}

/* Requirement Wizard v1.1b — force hero secondary button text visible on site theme */
.reqwiz-page .reqwiz-hero__actions a.reqwiz-btn--ghost,
.reqwiz-page .reqwiz-hero__actions a.reqwiz-btn--ghost:visited,
.reqwiz-page .reqwiz-hero__actions a.reqwiz-btn--ghost:hover,
.reqwiz-page .reqwiz-hero__actions a.reqwiz-btn--ghost:focus{
  background:#ffffff !important;
  color:#061a36 !important;
  -webkit-text-fill-color:#061a36 !important;
  text-indent:0 !important;
  font-size:.98rem !important;
  line-height:1.2 !important;
  min-width:auto !important;
  opacity:1 !important;
  visibility:visible !important;
}

.reqwiz-page .reqwiz-hero__actions a.reqwiz-btn--ghost:hover,
.reqwiz-page .reqwiz-hero__actions a.reqwiz-btn--ghost:focus{
  box-shadow:0 14px 26px rgba(15,23,42,.18) !important;
}
