/* AC29 R26 — functional-form density pass.
   Scope is deliberately limited to the two real intake surfaces whose forms extend
   beyond the approved art-direction boards. No field, label, validation rule,
   endpoint, step count or intake logic is changed. */

@media (min-width:901px){
  /* CONTACT / PROGRAMARE — keep the real four-step intake, but stop it reading as a
     second full landing page. Three-column matter rail mirrors the concept's open
     editorial option rhythm and shortens the first step without hiding information. */
  body.ac29-r14.appointment-page #formular{padding:26px 0 30px!important}
  body.ac29-r14.appointment-page #formular .ac26-form-shell{
    grid-template-columns:minmax(0,1.52fr) minmax(220px,.48fr)!important;
    gap:28px!important;align-items:start!important
  }
  body.ac29-r14.appointment-page #formular .ac26-title{font-size:35px!important;line-height:.98!important;margin-bottom:7px!important}
  body.ac29-r14.appointment-page #formular .ac26-copy{font-size:9.5px!important;line-height:1.42!important;max-width:660px!important;margin-bottom:10px!important}
  body.ac29-r14.appointment-page #formular .p2-intake-progress{margin:9px 0 12px!important}
  body.ac29-r14.appointment-page #formular .p2-intake-progress__meta{font-size:9px!important}
  body.ac29-r14.appointment-page #formular .p2-intake-progress__bar{margin-top:5px!important;height:2px!important}
  body.ac29-r14.appointment-page #formular .p2-intake-step>legend{font-size:22px!important;line-height:1.03!important;margin-bottom:4px!important}
  body.ac29-r14.appointment-page #formular .p2-field-intro{font-size:9px!important;line-height:1.4!important;margin:0 0 9px!important}
  body.ac29-r14.appointment-page #formular .p2-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;border-top:1px solid var(--ac26-line)!important}
  body.ac29-r14.appointment-page #formular .p2-choice-grid label{min-width:0!important;border-right:1px solid var(--ac26-line)!important;border-bottom:1px solid var(--ac26-line)!important}
  body.ac29-r14.appointment-page #formular .p2-choice-grid label:nth-child(3n){border-right:0!important}
  body.ac29-r14.appointment-page #formular .p2-choice-grid span{
    min-height:73px!important;padding:10px 24px 8px 10px!important;border:0!important;border-radius:0!important;background:transparent!important
  }
  body.ac29-r14.appointment-page #formular .p2-choice-grid strong{font-size:12px!important;line-height:1.18!important}
  body.ac29-r14.appointment-page #formular .p2-choice-grid small{font-size:7.5px!important;line-height:1.3!important;margin-top:3px!important}
  body.ac29-r14.appointment-page #formular .p2-choice-grid span::after{right:8px!important;top:50%!important;width:11px!important;height:11px!important;transform:translateY(-50%)!important}
  body.ac29-r14.appointment-page #formular .p2-intake-nav{margin-top:11px!important;padding-top:0!important;gap:7px!important}
  body.ac29-r14.appointment-page #formular .p2-intake-nav .p2-btn{min-height:36px!important;padding:0 15px!important;font-size:9px!important}
  /* redesign-2026.css declared .p2-btn display !important after the legacy hidden rule. Restore semantic hidden state. */
  body.ac29-r14.appointment-page #formular .p2-intake-nav [hidden]{display:none!important}
  body.ac29-r14.appointment-page #formular .ac26-note-list{padding:18px 0 18px 24px!important}
  body.ac29-r14.appointment-page #formular .ac26-note-list p{padding:9px 0!important;font-size:8.5px!important;line-height:1.42!important}
  body.ac29-r14.appointment-page #formular .ac26-note-list strong{font-size:9px!important}
  /* Later steps remain fully usable when activated. */
  body.ac29-r14.appointment-page #formular .p2-field{margin-bottom:12px!important}
  body.ac29-r14.appointment-page #formular .p2-field label,
  body.ac29-r14.appointment-page #formular .p2-subfieldset>legend{font-size:10px!important;margin-bottom:5px!important}
  body.ac29-r14.appointment-page #formular .p2-field input,
  body.ac29-r14.appointment-page #formular .p2-field select{min-height:40px!important;padding:8px 10px!important;font-size:10px!important}
  body.ac29-r14.appointment-page #formular .p2-field textarea{min-height:105px!important;padding:9px 10px!important;font-size:10px!important}
  body.ac29-r14.appointment-page #formular .p2-field-help{font-size:8.5px!important;line-height:1.4!important}
  body.ac29-r14.appointment-page #formular .p2-subfieldset{margin-top:9px!important;padding:9px!important}
  body.ac29-r14.appointment-page #formular .p2-check-grid{gap:4px 9px!important}
  body.ac29-r14.appointment-page #formular .p2-check-grid label{min-height:28px!important;font-size:9px!important}
  body.ac29-r14.appointment-page #formular .p2-consent{padding:10px 0!important;font-size:9px!important;line-height:1.4!important}

  /* QUESTION — same concept-first rule: preserve the three-step intake and its legal
     boundaries, reduce only visual dead-space around the currently active step. */
  body.ac29-r14.legal-question-page #formular-intrebare{padding:26px 0 29px!important}
  body.ac29-r14.legal-question-page #formular-intrebare .ac26-form-shell{
    grid-template-columns:minmax(0,1.48fr) minmax(225px,.52fr)!important;gap:28px!important;align-items:start!important
  }
  body.ac29-r14.legal-question-page #formular-intrebare .ac26-form-shell>div{padding-right:0!important}
  body.ac29-r14.legal-question-page #formular-intrebare .ac26-title{font-size:35px!important;line-height:.98!important;margin-bottom:7px!important}
  body.ac29-r14.legal-question-page #formular-intrebare .ac26-copy{font-size:9.4px!important;line-height:1.42!important;margin-bottom:9px!important;max-width:650px!important}
  body.ac29-r14.legal-question-page #formular-intrebare .legal-form-progress{margin:9px 0 12px!important}
  body.ac29-r14.legal-question-page #formular-intrebare .legal-form-progress button{padding:7px 5px 7px 0!important;font-size:9px!important;line-height:1.2!important}
  body.ac29-r14.legal-question-page #formular-intrebare .legal-form-progress button span{font-size:7px!important;margin-bottom:2px!important}
  body.ac29-r14.legal-question-page #formular-intrebare .legal-form-step.is-active{gap:8px 14px!important;align-items:start!important}
  body.ac29-r14.legal-question-page #formular-intrebare .legal-form-step legend{font-size:22px!important;line-height:1.03!important;margin:0 0 2px!important}
  body.ac29-r14.legal-question-page #formular-intrebare .legal-form-help{font-size:8.6px!important;line-height:1.38!important;margin:0 0 5px!important}
  body.ac29-r14.legal-question-page #formular-intrebare label{align-self:start!important;gap:4px!important;margin:0!important}
  body.ac29-r14.legal-question-page #formular-intrebare label>span{font-size:9px!important;line-height:1.3!important}
  body.ac29-r14.legal-question-page #formular-intrebare label>span small{font-size:7.7px!important}
  body.ac29-r14.legal-question-page #formular-intrebare input:not([type="checkbox"]):not([type="radio"]),
  body.ac29-r14.legal-question-page #formular-intrebare select{height:39px!important;min-height:39px!important;padding:7px 9px!important;font-size:10px!important}
  body.ac29-r14.legal-question-page #formular-intrebare textarea{min-height:100px!important;padding:9px!important;font-size:10px!important}
  body.ac29-r14.legal-question-page #formular-intrebare .field-note,
  body.ac29-r14.legal-question-page #formular-intrebare .field-meta{font-size:7.8px!important;line-height:1.35!important;margin-top:2px!important}
  body.ac29-r14.legal-question-page #formular-intrebare .urgent-form-note,
  body.ac29-r14.legal-question-page #formular-intrebare .no-documents-note,
  body.ac29-r14.legal-question-page #formular-intrebare .submission-boundary{padding:9px 11px!important;margin:1px 0!important;font-size:8.2px!important;line-height:1.35!important}
  body.ac29-r14.legal-question-page #formular-intrebare .urgent-form-note strong,
  body.ac29-r14.legal-question-page #formular-intrebare .no-documents-note strong{font-size:9px!important}
  body.ac29-r14.legal-question-page #formular-intrebare .urgent-form-note p,
  body.ac29-r14.legal-question-page #formular-intrebare .no-documents-note p,
  body.ac29-r14.legal-question-page #formular-intrebare .submission-boundary p{font-size:8.2px!important;line-height:1.38!important;margin-top:3px!important}
  body.ac29-r14.legal-question-page #formular-intrebare .legal-form-actions{margin-top:3px!important}
  body.ac29-r14.legal-question-page #formular-intrebare .legal-form-actions .btn{min-height:36px!important;padding:0 15px!important;font-size:9px!important}
  body.ac29-r14.legal-question-page #formular-intrebare .privacy-check{margin-top:8px!important;font-size:8.5px!important;line-height:1.4!important}
  body.ac29-r14.legal-question-page #formular-intrebare .legal-submit-note{font-size:8.2px!important;line-height:1.4!important;margin-top:6px!important}
  body.ac29-r14.legal-question-page #formular-intrebare .ac26-note-list{padding:18px 0 18px 24px!important}
  body.ac29-r14.legal-question-page #formular-intrebare .ac26-note-list p{padding:8px 0!important;font-size:8.4px!important;line-height:1.4!important}
}

@media (max-width:900px){
  /* Keep touch targets and proven mobile stacking. Only tighten excess section air. */
  body.ac29-r14.appointment-page #formular,
  body.ac29-r14.legal-question-page #formular-intrebare{padding-top:30px!important;padding-bottom:34px!important}
  body.ac29-r14.appointment-page #formular .p2-intake-nav [hidden]{display:none!important}
}
