.afaq-contact-wizard-card{overflow:hidden;border:1px solid var(--afaq-line);box-shadow:var(--afaq-shadow);background:linear-gradient(180deg,#fff 0%,#fbfdfc 100%)}
.afaq-contact-wizard{display:grid;gap:1rem}
.afaq-wizard-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1.15rem 1.2rem;border:1px solid var(--afaq-line);border-radius:1.1rem;background:linear-gradient(135deg,#f7fbf8,#fff 58%,#f7f3e8)}
.afaq-wizard-kicker{margin:0 0 .25rem;color:var(--afaq-leaf);font-size:.76rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.afaq-wizard-head h2,.afaq-wizard-panel-head h3{margin:0;color:var(--afaq-forest);line-height:1.35}
.afaq-wizard-head>div>p:last-child,.afaq-wizard-panel-head p{margin:.35rem 0 0;color:var(--afaq-muted);line-height:1.7}
.afaq-wizard-progress,.afaq-selection-badge{display:inline-flex;align-items:center;justify-content:center;min-width:2.1rem;height:2.1rem;padding:0 .55rem;border-radius:999px;background:var(--afaq-leaf-soft);color:var(--afaq-forest);font-size:.76rem;font-weight:800;white-space:nowrap}
.afaq-wizard-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.5rem;margin:0;padding:0;list-style:none}
.afaq-wizard-steps li{position:relative;display:flex;align-items:center;justify-content:center;gap:.35rem;min-height:44px;padding:.45rem .5rem;border:1px solid var(--afaq-line);border-radius:.8rem;background:#fff;color:var(--afaq-muted);font-size:.76rem;font-weight:700;text-align:center}
.afaq-wizard-steps li span{display:grid;place-items:center;width:1.55rem;height:1.55rem;border-radius:50%;background:#eef4f0;color:var(--afaq-forest);font-size:.7rem}
.afaq-wizard-steps li.is-active{border-color:#91b9a1;background:var(--afaq-leaf-soft);color:var(--afaq-forest)}
.afaq-wizard-steps li.is-active span,.afaq-wizard-steps li.is-complete span{background:var(--afaq-forest);color:#fff}
.afaq-wizard-steps li.is-complete{border-color:#c4dbcd;background:#f5faf7;color:var(--afaq-forest)}
.afaq-wizard-panel{display:grid;gap:1rem;padding:1.15rem;border:1px solid var(--afaq-line);border-radius:1.1rem;background:#fff}
.afaq-wizard-panel[hidden]{display:none}
.afaq-wizard-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding-bottom:.85rem;border-bottom:1px solid #e8f0eb}
.afaq-step-number{display:block;margin-bottom:.25rem;color:var(--afaq-gold);font-size:.72rem;font-weight:800;letter-spacing:.08em}
.afaq-wizard-fieldset{min-width:0;margin:0;padding:0;border:0}
.afaq-selection-grid{margin-top:0}
.afaq-selection-card{position:relative;display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:center!important;gap:.75rem;min-height:82px;padding:.85rem .9rem!important;border:1px solid var(--afaq-line)!important;border-radius:1rem!important;background:#fff!important;cursor:pointer;transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease,transform .18s ease}
.afaq-selection-card:hover{border-color:#afd0bd!important;background:#f8fcf9!important;transform:translateY(-1px)}
.afaq-selection-card input{width:1.2rem!important;height:1.2rem!important;min-width:1.2rem!important;margin:0!important;align-self:center!important;accent-color:var(--afaq-forest)}
.afaq-selection-card .afaq-check-copy{display:grid;gap:.22rem;min-width:0}
.afaq-selection-card .afaq-check-title{font-weight:750;line-height:1.5}
.afaq-selection-card .afaq-check-description{margin:0;color:var(--afaq-muted);font-size:.78rem;line-height:1.6}
.afaq-selection-card.is-selected{border-color:#79aa8d!important;background:#f0f8f3!important;box-shadow:0 8px 22px rgba(11,59,46,.08)}
.afaq-interest-groups{display:grid;gap:.65rem}
.afaq-interest-group{border:1px solid var(--afaq-line);border-radius:1rem;overflow:hidden;background:#fff}
.afaq-interest-group[open]{border-color:#b9d4c3;box-shadow:0 8px 22px rgba(11,59,46,.05)}
.afaq-interest-group.has-selection .afaq-interest-summary{background:#f5faf7}
.afaq-interest-summary{display:flex!important;align-items:center;justify-content:space-between;gap:.75rem;min-height:62px;padding:.65rem .75rem;cursor:pointer;list-style:none}
.afaq-interest-summary::-webkit-details-marker{display:none}
.afaq-interest-summary-main{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.65rem;min-width:0}
.afaq-interest-summary-title{min-width:0;color:var(--afaq-ink);font-size:.9rem;font-weight:800;line-height:1.55}
.afaq-interest-count{min-width:1.7rem;height:1.7rem;padding:0 .35rem}
.afaq-interest-summary-chevron{display:grid;width:2.15rem;height:2.15rem;min-width:2.15rem;place-items:center;border:1px solid #dce9e1;border-radius:50%;background:#fff;color:var(--afaq-forest);transition:transform .18s ease,background-color .18s ease}
.afaq-interest-group[open] .afaq-interest-summary-chevron{transform:rotate(180deg);background:#dff0e6}
.afaq-interest-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;padding:.65rem;border-top:1px solid #e3ece7;background:#fcfefd}
.afaq-interest-option{min-height:68px}
.afaq-wizard-context{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.8rem;padding:.9rem;border:1px solid #d8e8de;border-radius:1rem;background:#f5faf7}
.afaq-wizard-context-icon{display:grid;width:2.5rem;height:2.5rem;place-items:center;border-radius:.8rem;background:#dff0e6;color:var(--afaq-forest);font-size:1.15rem}
.afaq-wizard-context strong{color:var(--afaq-forest)}
.afaq-wizard-context p{margin:.2rem 0 .55rem;color:var(--afaq-muted);font-size:.82rem;line-height:1.6}
.afaq-wizard-tags{display:flex;flex-wrap:wrap;gap:.35rem}
.afaq-wizard-tag{display:inline-flex;align-items:center;min-height:28px;padding:.2rem .55rem;border-radius:999px;background:#fff;border:1px solid #d6e6dc;color:var(--afaq-forest);font-size:.74rem;font-weight:700}
.afaq-wizard-tag.is-empty{color:var(--afaq-muted)}
.afaq-review-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
.afaq-review-section{min-width:0;padding:.85rem;border:1px solid var(--afaq-line);border-radius:.9rem;background:#fbfdfc}
.afaq-review-section:last-child{grid-column:1/-1}
.afaq-review-section h4{margin:0 0 .55rem;color:var(--afaq-forest);font-size:.85rem}
.afaq-review-section dl{display:grid;gap:.4rem;margin:0}
.afaq-review-section dl div{display:grid;grid-template-columns:minmax(90px,.35fr) minmax(0,1fr);gap:.65rem;padding:.4rem 0;border-top:1px solid #edf2ee}
.afaq-review-section dt{color:var(--afaq-muted);font-size:.75rem}
.afaq-review-section dd{margin:0;color:var(--afaq-ink);font-size:.78rem;font-weight:700;overflow-wrap:anywhere}
.afaq-wizard-actions{display:flex;align-items:center;gap:.65rem;padding-top:.25rem}
.afaq-wizard-actions-spacer{flex:1}
.afaq-wizard-actions .projectops-button{min-height:46px}
.afaq-wizard-actions .projectops-button:disabled{opacity:.6;cursor:not-allowed}
.afaq-inline-check{align-items:flex-start!important}
.afaq-inline-check input{margin-top:.2rem!important}
.afaq-contact-wizard input.is-invalid,.afaq-contact-wizard select.is-invalid,.afaq-contact-wizard textarea.is-invalid,.afaq-contact-wizard input[aria-invalid="true"]{border-color:#c24135!important;box-shadow:0 0 0 3px rgba(194,65,53,.08)}
.afaq-contact-wizard input[type="checkbox"][aria-invalid="true"]{outline:2px solid #c24135;outline-offset:2px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:760px){
    .afaq-wizard-steps{grid-template-columns:1fr 1fr;gap:.4rem}
    .afaq-wizard-steps li{justify-content:flex-start;text-align:start}
    .afaq-interest-options,.afaq-review-summary{grid-template-columns:1fr}
    .afaq-review-section:last-child{grid-column:auto}
}
@media(max-width:560px){
    .afaq-wizard-head,.afaq-wizard-panel{padding:.9rem}
    .afaq-wizard-head{display:grid}
    .afaq-wizard-progress{justify-self:start}
    .afaq-wizard-steps{grid-template-columns:1fr}
    .afaq-wizard-steps li{min-height:40px}
    .afaq-selection-card{grid-template-columns:auto minmax(0,1fr);min-height:74px}
        .afaq-wizard-actions{position:sticky;bottom:.5rem;z-index:5;padding:.65rem;border:1px solid var(--afaq-line);border-radius:.9rem;background:rgba(255,255,255,.96);box-shadow:0 10px 30px rgba(7,39,31,.12)}
}
@media(prefers-reduced-motion:reduce){.afaq-selection-card,.afaq-interest-summary-chevron{transition:none!important}}

/* R4: Always honor the native hidden state of wizard action buttons.
   Prevents the submit button from appearing on steps 1-4 if global button CSS
   overrides the browser's [hidden] presentation rule. */
.afaq-contact-wizard .afaq-wizard-actions button[hidden]{display:none!important;visibility:hidden!important;pointer-events:none!important}
