/* One form surface; dividers separate related groups without nesting more cards. */
.guided-form{padding:clamp(20px,3vw,32px);border:1px solid var(--line);border-radius:20px;background:var(--card);min-width:0}
.guided-form--embedded{padding:0!important;border:0;border-radius:0;background:transparent}
.guided-form__section{min-width:0;margin:0;padding:0}
.guided-form__section:not(fieldset):not([hidden])~.guided-form__section:not(fieldset):not([hidden]),.guided-form__more{border-top:1px solid var(--line);margin-top:24px;padding-top:24px}
/* Native legends separate their groups without a rule crossing the text. */
.guided-form fieldset:not([hidden])~fieldset:not([hidden]){margin-top:24px}
.guided-form__section>:first-child{margin-top:0}
.guided-form__section>:last-child{margin-bottom:0}
.guided-form__section>.fi-quick-guide{margin-top:20px}
.guided-form__title,.guided-form legend{font:500 var(--tool-section-size,1.25rem)/1.35 var(--font-heading);margin:0 0 16px;max-width:100%}
.guided-form fieldset{min-width:0;border:0;margin:0;padding:0}
.guided-form__section>fieldset:not(:first-child),.guided-form fieldset>fieldset:not(:first-child){margin-top:24px}
.guided-form label:not(.fi-option,.ca-check,.ham-check,.fi-check,.property-preview__check,.ra-check){display:block;margin-top:16px}
.guided-form .guided-form__section>label:first-child,.guided-form .guided-form__fields>label,.guided-form .guided-form__fields>div>label:first-child{margin-top:0}
.guided-form input:not([type=radio]):not([type=checkbox]),.guided-form select,.guided-form textarea{box-sizing:border-box;max-width:100%;width:100%;font-weight:400}
.guided-form select{padding:14px}
.guided-form__fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:18px;margin-top:18px;align-items:start}
.guided-form__fields>.guided-form__wide{grid-column:1/-1}
.guided-form__fields label{min-width:0}
.guided-form__fields .fi-input-prefix{max-width:none}
.guided-form .guided-form__choices{grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr))}
.guided-form__more>summary{cursor:pointer;font-size:1rem;font-weight:700;min-height:44px;padding:8px 0}
.guided-form__more[open]>.guided-form__section{margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}
.guided-form :focus-visible{outline:3px solid var(--accent);outline-offset:4px}
@media(max-width:760px){.guided-form{border-radius:14px}}
@media(max-width:560px){.guided-form{padding:20px 18px}}
