/* One complete lead form, shared by the preview and WordPress. */
#ycom-studio-v4 .ys-lead{max-width:920px;margin-top:32px;padding:clamp(22px,3.2vw,40px);border:1px solid #d5dbd3;border-radius:16px;background:#fff;color:#202a27;scroll-margin-top:32px;box-shadow:0 18px 42px -35px #30403433}
#ycom-studio-v4 .ys-lead [hidden]{display:none!important}
#ycom-studio-v4 .ys-lead p{max-width:none}
#ycom-studio-v4 .ys-lead .ys-lead-preview-note{margin:0 0 25px;padding:13px 16px;border:1px solid #dfdacb;border-radius:8px;background:#f7f4ec;color:#5c584b;font-size:13px;line-height:1.65}
#ycom-studio-v4 .ys-lead .ys-lead-preview-note:empty{display:none}
#ycom-studio-v4 .ys-lead-progress{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px;list-style:none;margin:0 0 34px;padding:0}
#ycom-studio-v4 .ys-lead-progress li{display:flex;align-items:center;gap:11px;min-width:0;border-top:2px solid #d9dfd5;padding-top:14px;font-size:13px;line-height:1.5;font-weight:500;color:#667263}
#ycom-studio-v4 .ys-lead-step-number{display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:50%;background:#f0f2ed;color:#5b6857;font-size:11px;font-variant-numeric:tabular-nums}
#ycom-studio-v4 .ys-lead-progress li[aria-current=step]{border-top-color:#28533e;color:#28533e;font-weight:650}
#ycom-studio-v4 .ys-lead-progress li[aria-current=step] .ys-lead-step-number{background:#28533e;color:#fff}
#ycom-studio-v4 .ys-lead-progress li[data-state=done]{border-top-color:#8ca17e;color:#3f5a3c}
#ycom-studio-v4 .ys-lead-progress li[data-state=done] .ys-lead-step-number{background:#e9efe3;color:#31543d}
#ycom-studio-v4 .ys-lead-step-heading{margin-bottom:27px}
#ycom-studio-v4 .ys-lead-step-heading h3,#ycom-studio-v4 .ys-lead-success h3{font-size:26px;font-weight:500;line-height:1.2;letter-spacing:-.035em;color:#202a27}
#ycom-studio-v4 .ys-lead .ys-lead-step-heading p{font-size:14px;line-height:1.75;color:#53605a;max-width:640px;margin-top:11px}
#ycom-studio-v4 .ys-lead-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 25px;margin-bottom:24px}
#ycom-studio-v4 .ys-lead-form label{position:relative;display:flex;flex-direction:column;gap:9px;min-width:0;font-size:13px;font-weight:600;line-height:1.55;color:#34473a}
#ycom-studio-v4 .ys-lead-form .ys-lead-required,#ycom-studio-v4 .ys-lead-form .ys-lead-optional{position:absolute;top:0;right:0;line-height:1.55}
#ycom-studio-v4 .ys-lead-form .ys-lead-required{font-weight:500;font-size:14px;color:#53605a}
#ycom-studio-v4 .ys-lead-form .ys-lead-optional{font-weight:400;font-size:11px;color:#53605a}
#ycom-studio-v4 .ys-lead .ys-lead-form input:not([type=checkbox]):not([type=hidden]),#ycom-studio-v4 .ys-lead .ys-lead-form select,#ycom-studio-v4 .ys-lead .ys-lead-form textarea{display:block;width:100%;min-width:0;min-height:49px;padding:12px 14px;border:1px solid #a8b69d;border-radius:7px;background:#fff;color:#202a27;font-family:inherit;font-size:16px;font-weight:400;line-height:1.5}
#ycom-studio-v4 .ys-lead .ys-lead-form textarea{resize:vertical;min-height:153px;line-height:1.7}
#ycom-studio-v4 .ys-lead-form input::placeholder,#ycom-studio-v4 .ys-lead-form textarea::placeholder{color:#69766b;opacity:1}
#ycom-studio-v4 .ys-lead .ys-lead-help{font-size:12px;font-weight:400;line-height:1.75;color:#53605a;margin-top:10px;max-width:730px}
#ycom-studio-v4 .ys-lead-timing{width:calc(50% - 12.5px);margin-top:24px;min-width:0}
#ycom-studio-v4 .ys-lead-timing label{padding-right:0}
#ycom-studio-v4 .ys-lead-timing .ys-lead-optional{position:static;display:inline;margin-top:-4px;margin-bottom:-3px}
#ycom-studio-v4 .ys-lead-actions{display:flex;align-items:center;justify-content:space-between;gap:20px 28px;margin-top:30px}
#ycom-studio-v4 .ys-lead .ys-lead-actions p{font-size:12px;line-height:1.7;color:#53605a;max-width:310px;margin:0}
#ycom-studio-v4 .ys-lead .ys-button{min-height:48px;max-width:100%;padding:13px 20px;white-space:normal;line-height:1.5;font-size:13px;text-align:center;justify-content:center;gap:14px;flex:0 1 auto}
#ycom-studio-v4 .ys-lead .ys-button:disabled{background:#e4e8df;border-color:#d5dccf;color:#65715f;opacity:1;cursor:default;box-shadow:none;transform:none}
#ycom-studio-v4 .ys-lead-form[aria-busy=true] button{cursor:progress}
#ycom-studio-v4 .ys-lead-review{padding:17px 20px;margin-bottom:26px;background:#f5f6f1;border-left:2px solid #8ba180;border-radius:0 7px 7px 0;overflow-wrap:anywhere}
#ycom-studio-v4 .ys-lead-review-label{display:block;color:#53605a;font-size:11px;line-height:1.6;margin-bottom:4px}
#ycom-studio-v4 .ys-lead-review>strong{display:block;font-size:14px;line-height:1.6;font-weight:600;color:#2f4d36}
#ycom-studio-v4 .ys-lead-review-details{margin-top:6px}
#ycom-studio-v4 .ys-lead-review-details>summary{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:44px;font-size:12px;font-weight:500;line-height:1.6;list-style:none;color:#3b5540}
#ycom-studio-v4 .ys-lead-review-details>summary>span{font-size:20px;line-height:1;transition:transform .18s}
#ycom-studio-v4 .ys-lead-review-details[open]>summary>span{transform:rotate(45deg)}
#ycom-studio-v4 .ys-lead .ys-lead-review-details p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.75;color:#53605a;margin-top:2px;padding-bottom:4px}
#ycom-studio-v4 .ys-lead .ys-lead-consent{display:flex;flex-direction:row;align-items:flex-start;gap:12px;font-size:12px;line-height:1.75;font-weight:400;margin-top:8px;color:#34473a;max-width:750px}
#ycom-studio-v4 .ys-lead-consent input[type=checkbox]{width:20px;height:20px;min-width:20px;flex:none;margin:1px 0 0;accent-color:#28533e}
#ycom-studio-v4 .ys-lead-consent a{color:#28533e;text-decoration:underline;text-underline-offset:3px}
#ycom-studio-v4 .ys-lead .ys-lead-data-note{margin-top:14px;font-size:11px}
#ycom-studio-v4 .ys-lead-back{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;min-width:100px;max-width:100%;padding:10px 13px;background:transparent;border:1px solid #c1cabb;border-radius:25px;color:#34473a;font-size:13px;font-weight:500;line-height:1.5}
#ycom-studio-v4 .ys-lead-back:hover{background:#f1f4ec;border-color:#8b9f81}
#ycom-studio-v4 .ys-lead-back:disabled{color:#687262;cursor:default}
#ycom-studio-v4 .ys-lead .ys-lead-reassurance{font-size:12px;line-height:1.75;color:#53605a;margin-top:16px;max-width:720px}
#ycom-studio-v4 .ys-lead .ys-live-status{margin-top:24px;font-size:14px;line-height:1.7;max-width:none;overflow-wrap:anywhere}
#ycom-studio-v4 .ys-lead .ys-live-status:empty{display:none}
#ycom-studio-v4 .ys-lead .ys-live-status[data-state=error]{border:1px solid #d8aa98;border-radius:8px;padding:16px;background:#fbede6;color:#7c3524}
#ycom-studio-v4 .ys-lead .ys-live-status[data-state=success]{border:1px solid #9fb68e;border-radius:8px;padding:16px;background:#edf3e7;color:#31543d}
#ycom-studio-v4 .ys-lead-success{padding:10px 0 4px}
#ycom-studio-v4 .ys-lead-success-mark{display:grid;place-items:center;width:48px;height:48px;margin-bottom:20px;border-radius:50%;background:#e8f0e0;color:#31543d;font-size:24px}
#ycom-studio-v4 .ys-lead .ys-lead-success p{font-size:14px;line-height:1.8;margin-top:14px;color:#53605a;max-width:690px;white-space:pre-line}
#ycom-studio-v4 .ys-lead[data-mode=live] #ys-lead-submit-preview,#ycom-studio-v4 .ys-lead[data-mode=inactive] #ys-lead-submit-preview{display:none}
#ycom-studio-v4 .ys-lead .ys-lead-no-script{font-size:13px;line-height:1.75;color:#7c3524;background:#fbede6;border:1px solid #d8aa98;border-radius:8px;padding:16px;margin-top:20px}
#ycom-studio-v4 .ys-lead :is(input,select,textarea,button,summary,a):focus-visible{outline:3px solid #28533e;outline-offset:4px}
#ycom-studio-v4 .ys-lead :is(h3,section):focus-visible{outline:2px solid #8ca17e;outline-offset:6px}
@media(max-width:680px){
  #ycom-studio-v4 .ys-lead{margin-top:26px;padding:24px 22px;border-radius:12px}
  #ycom-studio-v4 .ys-lead-grid{grid-template-columns:minmax(0,1fr);gap:21px;margin-bottom:22px}
  #ycom-studio-v4 .ys-lead-timing{width:100%;margin-top:22px}
  #ycom-studio-v4 .ys-lead-timing .ys-lead-optional{position:absolute;margin:0}
  #ycom-studio-v4 .ys-lead-actions-first{display:flex;flex-direction:column;align-items:stretch;gap:14px}
  #ycom-studio-v4 .ys-lead .ys-lead-actions-first p{max-width:none}
  #ycom-studio-v4 .ys-lead .ys-lead-actions-first .ys-button{width:100%}
  #ycom-studio-v4 .ys-lead-actions-last{gap:13px;flex-wrap:wrap}
  #ycom-studio-v4 .ys-lead .ys-lead-actions-last .ys-button{flex:1 1 260px}
  #ycom-studio-v4 .ys-lead-back{flex:0 1 auto}
}
@media(max-width:440px){
  #ycom-studio-v4 .ys-lead{padding:22px 17px}
  #ycom-studio-v4 .ys-lead-progress{gap:17px;margin-bottom:28px}
  #ycom-studio-v4 .ys-lead-progress li{flex-direction:column;align-items:flex-start;gap:8px;font-size:12px;line-height:1.55}
  #ycom-studio-v4 .ys-lead-step-heading h3,#ycom-studio-v4 .ys-lead-success h3{font-size:23px}
  #ycom-studio-v4 .ys-lead .ys-lead-step-heading p{font-size:13px}
  #ycom-studio-v4 .ys-lead-review{padding:15px 14px}
  #ycom-studio-v4 .ys-lead .ys-button{font-size:12px;padding-inline:13px;gap:9px}
  #ycom-studio-v4 .ys-lead .ys-lead-actions-last .ys-button{flex-basis:100%}
  #ycom-studio-v4 .ys-lead-timing label{padding-top:0}
  #ycom-studio-v4 .ys-lead-timing .ys-lead-optional{position:static;display:inline;margin-top:-4px;margin-bottom:-3px}
}
@media(prefers-reduced-motion:reduce){
  #ycom-studio-v4 .ys-lead-review-details>summary>span{transition:none}
}
