/* W-4 uses the established form shell with its own conditional sections. */
.w4-banner{background:linear-gradient(110deg,#143f61,#087fb7)}.w4-banner-paper{width:155px;height:180px;padding:20px;background:white;transform:rotate(7deg);border-radius:9px;box-shadow:0 10px 0 #ffffff22;color:#20556c;flex-shrink:0}.w4-banner-paper strong{font-size:31px}.w4-banner-paper span{font-size:6px;letter-spacing:.8px;display:block;line-height:1.5;margin-bottom:18px}.w4-banner-paper i{display:block;border-bottom:1px solid #cbdfe9;margin:12px 0}#w4-form input:not([type=checkbox]),#w4-form select{font-size:16px;font-weight:400}#w4-form input[aria-invalid=true],#w4-form select[aria-invalid=true]{border:1px solid #c23c53;background:#fff9fa;box-shadow:none}#w4-form input[aria-invalid=true]:focus,#w4-form select[aria-invalid=true]:focus{outline:2px solid #f0b7c2;outline-offset:0}.info-note,.calculated-output,#year-notice{padding:14px 16px;background:#edf6fc;border-left:3px solid #3988b6;border-radius:4px;color:#42677f;font-size:13px;line-height:1.8;margin:16px 0}.calculated-output strong{color:#214c67}.employer-details>summary{padding:0;font-size:21px}.employer-details>.details-body{padding:22px 0 0}.employer-details summary small{font-size:12px;font-weight:400;color:#72869a}#w4-form .section-heading>label{min-width:90px;max-width:130px}.w4-banner+.workspace .preview-sidebar{top:24px}.w4-banner li{white-space:nowrap}#w4-form input[type=checkbox]{margin-top:3px}.paper img[data-stale=true]{opacity:.72}#review-section .primary{width:100%}#preview-dialog{max-width:780px}#preview-dialog .dialog-header{font-size:16px}#w4-form .field-error{margin:8px 0 0;display:block}.preview-loader{pointer-events:none}#withholding-sections .optional>summary small{font-weight:400;font-size:12px}#calculation-notice{white-space:pre-line}.form-breadcrumb span{color:#7c91a3}
@media(max-width:760px){.w4-banner-paper{display:none}.w4-banner{padding:26px}.w4-banner h1{font-size:28px}.employer-details>summary{font-size:19px}#w4-form .section-heading h2{font-size:21px}.grid{grid-template-columns:minmax(0,1fr)}.address-row{grid-template-columns:1fr 1fr}.address-row>label:first-child{grid-column:1/-1}.preview-sidebar{position:static}#w4-form .grid .wide{grid-column:auto}.preview-header h2{font-size:20px}.w4-banner li{font-size:11px}.checkout-body .payment-actions{gap:12px 24px}}
/* A portrait certificate needs more height than the landscape W-2 preview. */
.preview-sidebar .paper img{max-height:none;height:auto}.preview-sidebar{scroll-margin-top:20px}#new-w4{margin-top:24px}

.skip-link{position:absolute;left:20px;top:-100px;padding:10px 15px;background:#fff;z-index:100}.skip-link:focus{top:12px}.form-breadcrumb{flex-wrap:wrap}
.preview-page-controls{margin:14px 0}.preview-page-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.preview-page-row .secondary{font-size:12px;padding:8px 12px;min-height:36px;white-space:nowrap}.preview-page-row>span{font-size:12px;white-space:nowrap;color:#5e778b}.preview-page-select{margin:9px 0 0}.preview-page-select select{font-size:14px;font-weight:400;margin-top:0}.preview-header h2{font-size:18px}.dialog-preview-paper{position:relative;min-height:200px}#preview-dialog>.preview-page-controls{padding:0 18px}.dialog-preview-paper[aria-busy=true] #large-preview{opacity:.55}.signature-pad-wrap{position:relative;border:1px solid #c6d8e5;border-radius:8px;overflow:hidden;background:white}.signature-pad-wrap:has(canvas[aria-invalid=true]){border-color:#c23c53}.signature-pad-wrap canvas{display:block;width:100%;height:auto;aspect-ratio:3/1;touch-action:none;cursor:crosshair}.signature-pad-hint{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;color:#8b9caa;font-size:14px}.signature-pad-actions{display:flex;gap:24px;align-items:center;margin:8px 0 18px}.signature-pad-actions button{min-height:36px}.signature-pad-wrap::after{content:'';position:absolute;left:6%;right:6%;bottom:20%;border-bottom:1px dashed #d6e2ea;pointer-events:none}#signature-status[data-error=true]{color:#a32943}#signature-date{max-width:260px}#signature-section .check{font-size:14px;font-weight:400}#signature-section .field-error{font-size:13px}.preview-header h2 span[data-year]{font-size:13px}@media(max-width:760px){.preview-page-row{gap:6px}.preview-page-row .secondary{font-size:11px;padding:8px 10px}.preview-page-row>span{font-size:11px}.signature-pad-hint{font-size:12px}.signature-pad-wrap canvas{aspect-ratio:3/1}.signature-pad-wrap{touch-action:none}#signature-section .check{font-size:13px}}
