/* LeoFolio v1.7.x — Independent Contractor Agreement generator-family alignment */
.agreement-page{background:var(--bg,#f5f3ee);color:var(--text,#152a3b);font-family:'DM Sans',system-ui,sans-serif;}
.agreement-page .agreement-generator-header{margin:0;}
.agreement-page .generator-title-group{max-width:880px;}
.agreement-page .generator-subtitle{max-width:820px;line-height:1.5;}
.agreement-page .agreement-profile-context{margin-top:10px;margin-bottom:0;}
.agreement-page .agreement-app-shell{width:100%;}
.agreement-page .agreement-generator-body{grid-template-columns:1fr 1fr;gap:40px;padding-top:32px;padding-bottom:34px;}
.agreement-page .ag-form-panel,.agreement-page .ag-review{min-width:0;}
.agreement-page :focus-visible{outline:3px solid rgba(152,113,61,.42);outline-offset:3px;}

.ag-status{min-height:17px;margin:0 2px 9px;color:#56606b;font-size:11.5px;line-height:1.4;}
.ag-status:empty{display:none;}
#agreement-storage{margin:0 0 12px;}

/* Form uses the same progress/section/navigation shell as current generators. */
.ag-progress{margin-bottom:28px;}
.ag-form{margin:0;}
.ag-form fieldset{min-width:0;margin:0;padding:0;border:0;}
.ag-form-section{margin-bottom:0;}
.ag-section-lede{margin:-4px 0 18px;color:#62666b;font-size:13px;line-height:1.55;}
.ag-subheading{margin:22px 0 12px;color:#3d4854;font:800 14px/1.2 'Bricolage Grotesque','DM Sans',sans-serif;letter-spacing:-.01em;}
.ag-field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:0 0 6px;}
.ag-wide{grid-column:1/-1;}
.ag-field-help{margin-top:-1px;color:#6b7279;font-size:11px;line-height:1.4;}
.ag-form textarea.form-input{min-height:92px;resize:vertical;line-height:1.5;}
.ag-form .form-select-wrap,.ag-form select{max-width:100%;}
.ag-form input[type=checkbox]{width:18px;height:18px;flex:0 0 auto;accent-color:var(--green,#c8a568);}
.ag-checkbox{display:flex;align-items:flex-start;gap:10px;margin:18px 0 10px;padding:13px 14px;border:1px solid var(--border,#d9d4c8);border-radius:10px;background:#f9f7f2;color:#3d4854;font-size:13px;font-weight:650;line-height:1.45;cursor:pointer;}
.ag-included-note{margin:10px 0 0;color:#62666b;font-size:12px;line-height:1.55;}
.ag-step-nav{margin-top:24px;}
.ag-step-nav>span{flex:1;}
.ag-form-boundary{margin:13px 2px 0;color:#65707a;font-size:11px;line-height:1.5;}

/* Related products stay directly beneath the left form column, matching the tax/pay document pages. */
#agreement-related-anchor{width:100%;}
.agreement-page #agreement-related-anchor .psc-mdo{width:100%;margin:22px 0 0;}

/* Live preview window: same app-window shell, hover overlay, and zoom affordance as the other generators. */
.ag-preview-wrapper{box-shadow:var(--shadow-lg);}
.ag-preview{min-height:500px;padding:12px;background:#e9e6df;position:relative;}
.agreement-page #preview-body.ag-preview{max-height:none!important;height:auto!important;overflow:hidden!important;scrollbar-width:none;-ms-overflow-style:none;}
.agreement-page #preview-body.ag-preview::-webkit-scrollbar{display:none;width:0;height:0;}
.ag-preview>.preview-zoom-hint{z-index:80;}
.ag-preview>.preview-zoom-hint svg{width:34px;height:34px;}

/* Premium agreement paper — browser rendering mirrors the upgraded PDF design. */
.ag-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;}
.ag-paper{position:relative;min-height:920px;padding:0 38px 52px;overflow:hidden;background:#fff;color:#27333f;font:12.2px/1.62 Georgia,'Times New Roman',serif;box-shadow:0 4px 18px rgba(23,41,57,.12);}
.ag-paper::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:50;background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='130'%3E%3Ctext x='0' y='75' font-family='Helvetica,Arial,sans-serif' font-size='13' fill='rgba(14, 30, 51, 0.10)' transform='rotate(-26 130 65)'%3EPREVIEW%20%C2%B7%20LEOFOLIO.COM%3C/text%3E%3C/svg%3E");background-repeat:repeat;background-position:0 0;}
.ag-doc-brandbar{position:relative;z-index:2;margin:0 -38px 30px;padding:18px 38px 16px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:#0E1E33;color:#fff;border-bottom:4px solid #C8A568;}
.ag-doc-brandbar>div{display:flex;align-items:baseline;gap:10px;}
.ag-doc-brand{font:800 15px/1 'Bricolage Grotesque','DM Sans',sans-serif;letter-spacing:.04em;}
.ag-doc-brand-sub{color:#D9C28F;font:700 7px/1.2 'DM Sans',sans-serif;letter-spacing:.13em;}
.ag-doc-edition{padding:5px 8px;border:1px solid rgba(255,255,255,.22);border-radius:999px;color:#E8DFC8;font:700 7px/1 'DM Sans',sans-serif;letter-spacing:.11em;white-space:nowrap;}
.ag-doc-hero{position:relative;z-index:2;display:grid;grid-template-columns:1fr auto;gap:22px;align-items:start;margin-bottom:18px;}
.ag-doc-eyebrow{display:block;margin-bottom:7px;color:#9A763E;font:800 7px/1.2 'DM Sans',sans-serif;letter-spacing:.13em;text-transform:uppercase;}
.ag-paper .ag-doc-hero h2{margin:0 0 6px;color:#0E1E33;font:800 24px/1.08 'Bricolage Grotesque','DM Sans',sans-serif;letter-spacing:-.025em;}
.ag-doc-hero p{margin:0;color:#66717c;font:500 9px/1.45 'DM Sans',sans-serif;}
.ag-doc-mark{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:14px;background:#F1E8D8;color:#806331;font:800 16px/1 'Bricolage Grotesque','DM Sans',sans-serif;box-shadow:inset 0 0 0 1px #D9C28F;}
.ag-preview-stamp{position:relative;z-index:2;margin:0 0 16px;padding:7px 10px;border:1px solid #DDD3C3;border-radius:7px;background:#FBF7F1;color:#806331;text-align:center;font:800 7px/1.35 'DM Sans',sans-serif;letter-spacing:.08em;text-transform:uppercase;}
.ag-doc-summary{position:relative;z-index:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin-bottom:18px;border:1px solid #DDD3C3;border-radius:12px;overflow:hidden;background:#FBFAF7;}
.ag-doc-summary>div{padding:10px 12px;border-bottom:1px solid #E8E1D6;}
.ag-doc-summary>div:nth-child(odd){border-right:1px solid #E8E1D6;}
.ag-doc-summary>div:nth-last-child(-n+2){border-bottom:0;}
.ag-doc-summary span{display:block;margin-bottom:3px;color:#7B8086;font:700 6.5px/1.2 'DM Sans',sans-serif;letter-spacing:.09em;text-transform:uppercase;}
.ag-doc-summary strong{display:block;color:#0E1E33;font:700 9px/1.35 'DM Sans',sans-serif;overflow-wrap:anywhere;}
.ag-doc-intro{position:relative;z-index:2;margin:0 0 20px;padding:11px 13px;border-left:3px solid #C8A568;background:#F7F2E9;color:#4D5660;font:500 8.5px/1.5 'DM Sans',sans-serif;}
.ag-doc-sections,.ag-doc-signature-section{position:relative;z-index:2;}
.ag-doc-section{margin:0 0 18px;break-inside:avoid;}
.ag-doc-section-title{display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:center;margin:0 0 7px;padding-bottom:6px;border-bottom:1px solid #E5DED2;}
.ag-doc-section-title span{width:28px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:6px;background:#0E1E33;color:#D9C28F;font:800 7px/1 'DM Sans',sans-serif;letter-spacing:.06em;}
.ag-doc-section-title strong{color:#0E1E33;font:800 11px/1.2 'Bricolage Grotesque','DM Sans',sans-serif;letter-spacing:-.01em;}
.ag-doc-section p{margin:0 0 7px;color:#313C47;white-space:pre-line;overflow-wrap:anywhere;}
.ag-doc-signature-section{margin-top:28px;padding-top:3px;}
.ag-doc-signature-copy{margin:0 0 13px;color:#59636d;font:500 8.5px/1.5 'DM Sans',sans-serif;}
.ag-signatures{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:8px;}
.ag-signature-card{padding:14px;border:1px solid #D8D0C2;border-radius:10px;background:#FCFBF8;}
.ag-signature-card strong{display:block;min-height:32px;color:#0E1E33;font:800 10px/1.35 'DM Sans',sans-serif;overflow-wrap:anywhere;}
.ag-signature-card p{margin:6px 0 0;color:#48535e;font-size:9px;line-height:1.45;}
.ag-signature-card span{color:#7A8188;font:700 6px/1 'DM Sans',sans-serif;letter-spacing:.08em;text-transform:uppercase;}
.ag-sign-line{height:28px;margin-top:12px;border-bottom:1px solid #4A535C;}
.ag-date-line{height:22px;margin-top:11px;}
.ag-doc-note{position:relative;z-index:2;margin:24px 0 0;padding:11px 13px;border:1px solid #DDD3C3;border-radius:9px;background:#FBF7F1;color:#5C6670;font:500 8px/1.48 'DM Sans',sans-serif;}
.ag-pdf-footer{position:absolute;z-index:2;left:38px;right:38px;bottom:20px;display:flex;justify-content:space-between;gap:12px;padding-top:8px;border-top:1px solid #E4DED4;color:#7A8188;font:700 6.5px/1.2 'DM Sans',sans-serif;letter-spacing:.07em;}

/* Checkout follows the same receive/review/CTA structure as current generator pages. */
.ag-checkout-panel{margin-top:0;}
.ag-included{color:var(--green-dark,#806331);}
.ag-checkout-panel .email-input-section{background:#F1E8D8;border:1px solid #D9C28F;border-radius:12px;padding:14px 16px;margin-bottom:16px;}
.ag-checkout-panel .email-input-label{display:block;margin-bottom:8px;color:#1B3554;font-size:12px;font-weight:700;}
.ag-checkout-panel .email-privacy-note{margin:7px 0 0;color:#3D4854;font-size:11.5px;line-height:1.45;}
.ag-checkout-panel #email-error{margin-top:6px;color:#b42318;font-size:11px;}
.ag-accuracy-disclaimer{margin:12px 0 16px;}
.ag-accuracy-disclaimer .accuracy-disclaimer-label{display:flex;align-items:flex-start;gap:10px;color:#0E1E33;font-size:13px;line-height:1.52;cursor:pointer;}
.ag-accuracy-disclaimer input{width:17px;height:17px;margin-top:2px;accent-color:var(--green,#C8A568);flex:0 0 auto;}
.ag-checkout-button{margin-bottom:0;}
.ag-checkout-button:disabled{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none;}
.ag-purchased-delivery{display:flex;flex-direction:column;gap:3px;margin:0 0 16px;padding:13px 14px;border:1px solid #D9C28F;border-radius:11px;background:#F6F1E9;color:#3D4854;}
.ag-purchased-delivery strong{color:#0E1E33;font-size:12px;}
.ag-purchased-delivery span{font-size:11px;line-height:1.4;overflow-wrap:anywhere;}
.ag-boundary{margin:12px 0 0;color:#66717c;font-size:10px;line-height:1.48;}
.ag-privacy{max-width:var(--max-width);margin:0 auto 18px;padding:0 5%;line-height:1.5;}
.agreement-page .agreement-info{margin-top:18px;}

/* Expanded preview: wide, centered, and completely visible horizontally. */
.agreement-page .gen-lightbox-panel{width:min(1480px,98vw);max-height:96vh;}
.agreement-page .gen-lightbox-body{display:flex;justify-content:center;align-items:flex-start;padding:22px;background:#ECE8E0;overflow:auto;}
.agreement-page .gen-lightbox-body .ag-paper{width:min(900px,calc(98vw - 70px));min-width:min(900px,calc(98vw - 70px));max-width:none;min-height:1160px;margin:0 auto;padding:0 58px 72px;font-size:14px;box-shadow:0 18px 52px rgba(14,30,51,.24);}
.agreement-page .gen-lightbox-body .ag-doc-brandbar{margin-left:-58px;margin-right:-58px;padding-left:58px;padding-right:58px;}
.agreement-page .gen-lightbox-body .ag-pdf-footer{left:58px;right:58px;bottom:34px;}
.agreement-page .gen-lightbox-body .ag-paper .ag-doc-hero h2{font-size:31px;}
.agreement-page .gen-lightbox-body .ag-doc-section-title strong{font-size:13px;}
.agreement-page .gen-lightbox-body .ag-doc-section p{font-size:13px;line-height:1.65;}

@media(max-width:1024px){
  .agreement-page .agreement-generator-body{grid-template-columns:1fr;gap:28px;}
  .ag-preview{min-height:460px;max-height:560px;}
  .ag-paper{min-height:860px;}
}

@media(max-width:767px){
  .ag-field-grid{grid-template-columns:1fr;}
  .ag-wide{grid-column:auto;}
  .ag-preview{min-height:410px;max-height:500px;padding:8px;}
  .ag-paper{min-height:780px;padding:0 22px 48px;font-size:11.5px;}
  .ag-doc-brandbar{margin-left:-22px;margin-right:-22px;padding-left:22px;padding-right:22px;}
  .ag-paper .ag-doc-hero h2{font-size:21px;}
  .ag-doc-summary{grid-template-columns:1fr;}
  .ag-doc-summary>div,.ag-doc-summary>div:nth-child(odd){border-right:0;border-bottom:1px solid #E8E1D6;}
  .ag-doc-summary>div:last-child{border-bottom:0;}
  .ag-signatures{grid-template-columns:1fr;}
  .ag-pdf-footer{left:22px;right:22px;bottom:16px;}
  .agreement-page .gen-lightbox-body{padding:12px;justify-content:flex-start;}
  .agreement-page .gen-lightbox-body .ag-paper{width:820px;min-width:820px;min-height:1060px;padding:0 48px 64px;}
  .agreement-page .gen-lightbox-body .ag-doc-brandbar{margin-left:-48px;margin-right:-48px;padding-left:48px;padding-right:48px;}
  .agreement-page .gen-lightbox-body .ag-pdf-footer{left:48px;right:48px;}
}

@media(max-width:520px){
  .ag-step-nav{gap:8px;}
  .ag-step-nav .btn-step-prev,.ag-step-nav .btn-step-next{padding-left:13px;padding-right:13px;}
  .preview-toolbar-title{font-size:10.5px;}
}
