/* Scoped Formulario alignment only. Existing Consultar compact cards remain the reference. */
.wm-form-aligned .wm-address-reveal { display:contents; }
.wm-form-aligned .wm-address-reveal > .grid { display:contents!important; }
.wm-form-aligned .wm-address-reveal > * {grid-column:1/-1;min-width:0;}
.wm-form-aligned .wm-address-reveal > .grid > * {grid-column:auto;min-width:0;}
.wm-form-aligned .wm-address-reveal > .grid > .sm\:col-span-3 {grid-column:1/-1;}
.wm-form-aligned .wm-flow-screen .wm-plan-card .flex-1 > .flex.items-center > span {width:auto;}
.wm-form-aligned .wm-flow-screen .sticky {position:sticky;bottom:0;z-index:10;padding-bottom:max(8px,env(safe-area-inset-bottom));background:#faf4e8;}
.wm-form-aligned .wm-flow-screen .sticky > button {min-height:46px;}
.wm-form-aligned .wm-address-reveal input:not([type="checkbox"]),.wm-form-aligned input[placeholder="000.000.000-00"],.wm-form-aligned input[placeholder="00000-000"],.wm-form-aligned input[placeholder="Ex: Davilys Cunha"] {font-size:16px!important;}
.wm-form-aligned .wm-flow-screen > div > .rounded-2xl:has(.grid-cols-2) > .grid-cols-2 {display:grid!important;grid-template-columns:1fr 1fr!important;gap:0;}
.wm-form-aligned .wm-flow-screen > div > .rounded-2xl:has(.grid-cols-2) .grid-cols-2 > div {min-width:0;overflow-wrap:anywhere;}
.wm-form-aligned .wm-flow-screen > div > .rounded-2xl:has(.grid-cols-2) .grid-cols-2 p {white-space:normal;overflow-wrap:anywhere;word-break:break-word;}

/* Personal title participates in normal document flow, including long names and enlarged fonts. */
.wm-entry.wm-flow.wm-formulario.wm-form-aligned .wm-flow-screen form:has(input[placeholder="000.000.000-00"]) {margin-top:0!important;}
.wm-entry.wm-flow.wm-formulario.wm-form-aligned .wm-flow-screen form:has(input[placeholder="000.000.000-00"]) > div:first-child {position:static!important;inset:auto!important;top:auto!important;height:auto!important;padding:0 0 10px!important;display:block!important;grid-column:1/-1;}

/* Contract chrome only. Document, acceptance and signing handlers unchanged. */
.wm-form-aligned .wm-contract-compact {gap:0!important;}
.wm-form-aligned .wm-contract-compact > * + * {margin-top:10px!important;}
.wm-form-aligned .wm-contract-compact .wm-contract-intro {text-align:left!important;padding:0!important;margin:0!important;}
.wm-form-aligned .wm-contract-compact .wm-contract-intro > div,
.wm-form-aligned .wm-contract-compact .wm-contract-intro > p {display:none!important;}
.wm-form-aligned .wm-contract-compact .wm-contract-intro h2 {font-size:20px!important;line-height:1.2!important;margin:0!important;}
.wm-form-aligned .wm-contract-compact .wm-contract-summary {border-radius:10px!important;}
.wm-form-aligned .wm-contract-compact .wm-contract-summary > div:first-child {display:none!important;}
.wm-form-aligned .wm-contract-compact .wm-contract-summary .grid > div {padding:6px 9px!important;}
.wm-form-aligned .wm-contract-compact .wm-contract-summary .grid p {margin:0!important;line-height:1.25!important;}
.wm-form-aligned .wm-contract-compact .wm-contract-summary .grid p:first-child {font-size:11px!important;}
.wm-form-aligned .wm-contract-compact .wm-contract-summary .grid p:last-child {font-size:13px!important;}
.wm-form-aligned .wm-contract-compact .wm-contract-tools {justify-content:flex-end!important;gap:14px!important;margin-top:4px!important;}
.wm-form-aligned .wm-contract-compact .wm-contract-tools button {flex:0 1 auto!important;width:auto!important;min-height:36px!important;height:36px!important;padding:0 4px!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:12px!important;}
.wm-form-aligned .wm-contract-compact .wm-contract-document-label {display:none!important;}

/* Promotion reference: vertical expansion .45s and fade .3s, no horizontal slide. */
.wm-form-aligned .wm-promo-transition {display:grid;grid-template-rows:1fr;animation:wm-form-reveal .45s cubic-bezier(.2,.7,.2,1),wm-form-fade .3s cubic-bezier(.2,.7,.2,1);}
.wm-form-aligned .wm-promo-transition > * {min-height:0;}
@keyframes wm-form-reveal {from {grid-template-rows:0fr;}to {grid-template-rows:1fr;}}
@keyframes wm-form-fade {from {opacity:0;}to {opacity:1;}}
/* Consistent functional icon geometry, only within this form. */
.wm-form-aligned .wm-contract-tools button {display:inline-flex;align-items:center;justify-content:center;gap:6px;}
.wm-form-aligned .wm-contract-tools button svg {width:16px;height:16px;margin:0!important;}
@media(prefers-reduced-motion:reduce){.wm-form-aligned .wm-promo-transition,.wm-form-aligned .wm-promo-transition-inner {animation:none!important;transition:none!important;}}
.wm-form-aligned .wm-flow-screen .wm-plan-card > div > div:first-child {display:grid!important;place-items:center!important;width:40px!important;height:40px!important;min-width:40px!important;padding:0!important;border-radius:12px!important;}
.wm-form-aligned .wm-flow-screen .wm-plan-card > div > div:first-child svg {width:20px!important;height:20px!important;margin:0!important;stroke-width:1.75;}
.wm-entry.wm-flow.wm-formulario.wm-form-aligned .wm-flow-screen button.wm-plan-card > div > div:first-child svg {display:block!important;position:static!important;transform:none!important;justify-self:center!important;align-self:center!important;}
.wm-entry.wm-flow.wm-formulario.wm-form-aligned .wm-flow-screen form button[type=button].wm-plan-card > div > div:first-child {display:flex!important;justify-content:center!important;align-items:center!important;padding:0!important;}

.wm-form-aligned .wm-promo-transition-inner {min-height:0;animation:wm-form-clip .45s step-end;}
.wm-form-aligned .wm-promo-transition-inner > * {transform:none!important;}
.wm-form-aligned {overflow-anchor:none;}
.wm-form-aligned .wm-contract-compact .wm-contract-summary > .grid {display:grid!important;grid-template-columns:1fr 1fr!important;gap:0!important;}
.wm-form-aligned .wm-contract-compact .wm-contract-summary > .grid > div {min-width:0;overflow-wrap:anywhere;}
.wm-form-aligned .wm-contract-compact .wm-contract-summary > .grid p {white-space:normal!important;overflow-wrap:anywhere;word-break:break-word;}
.wm-form-aligned .wm-promo-transition-inner {overflow:visible!important;}
@keyframes wm-form-clip {from {clip-path:inset(0 -100vw);}to {clip-path:inset(0 -100vw);}}
