/* Popup Tư vấn giải pháp: hai khung, bên trái thông tin liên hệ, bên phải form */
html.of-lead-lock{overflow:hidden}
.of-lead{width:min(1040px,calc(100% - 32px));max-height:calc(100vh - 32px);padding:0;border:0;border-radius:24px;background:#fff;color:#0a1224;overflow:hidden;box-shadow:0 40px 120px -20px rgba(3,12,40,.7);font-family:"Montserrat",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.of-lead::backdrop{background:rgba(6,18,48,.68);backdrop-filter:blur(6px)}
.of-lead[open]{animation:of-lead-in .35s cubic-bezier(.2,.8,.2,1)}
@keyframes of-lead-in{from{opacity:0;transform:translateY(24px) scale(.97)}to{opacity:1;transform:none}}
.of-lead-box{position:relative;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);max-height:calc(100vh - 32px)}
.of-lead-x{position:absolute;z-index:3;top:14px;right:14px;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:#eef2fa;color:#0b2d72;cursor:pointer;transition:background .2s,color .2s,transform .2s}
.of-lead-x:hover{background:#f7941d;color:#fff;transform:rotate(90deg)}

/* Khung trái */
.of-lead-side{position:relative;display:flex;flex-direction:column;gap:20px;padding:48px 40px;color:#fff;background:radial-gradient(420px 300px at 100% 0%,rgba(80,130,255,.38),transparent 65%),radial-gradient(360px 260px at 0% 100%,rgba(247,148,29,.22),transparent 65%),linear-gradient(165deg,#0b2d72,#071a46);overflow:hidden}
.of-lead-side::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:40px 40px;-webkit-mask-image:linear-gradient(160deg,#000,transparent 70%);mask-image:linear-gradient(160deg,#000,transparent 70%);pointer-events:none}
.of-lead-side>*{position:relative}
.of-lead-h{margin:0;font:800 clamp(26px,2.6vw,34px)/1.15 "Montserrat",system-ui,sans-serif;letter-spacing:-.03em;color:#fff}
.of-lead-p{margin:0;font:500 16px/1.65 "Montserrat",system-ui,sans-serif;color:#cfdcf7}
.of-lead-tel{display:flex;align-items:center;gap:16px;margin-top:8px;padding:18px 20px;border:1px solid rgba(255,255,255,.2);border-radius:16px;background:rgba(255,255,255,.08);color:#fff;text-decoration:none;transition:background .25s,border-color .25s,transform .25s}
.of-lead-tel:hover{background:rgba(255,255,255,.14);border-color:#f7941d;transform:translateY(-2px)}
.of-lead-tel-ico{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:14px;background:#f7941d;color:#fff;box-shadow:0 0 0 6px rgba(247,148,29,.2)}
.of-lead-tel small{display:block;font:600 12px/1 "Montserrat",system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#9db7ea}
.of-lead-tel b{display:block;margin-top:6px;font:800 24px/1 "Montserrat",system-ui,sans-serif;letter-spacing:-.01em;color:#fff;white-space:nowrap}
.of-lead-list{display:grid;gap:0;margin:auto 0 0;padding:0;list-style:none;border-top:1px solid rgba(255,255,255,.18)}
.of-lead-list li{display:flex;gap:16px;padding:14px 0;border-bottom:1px solid rgba(255,255,255,.12);font:500 15px/1.4 "Montserrat",system-ui,sans-serif}
.of-lead-list span{flex:0 0 76px;color:#9db7ea}
.of-lead-list a{color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.3)}
.of-lead-list a:hover{border-color:#f7941d}

/* Khung phải */
.of-lead-main{display:flex;flex-direction:column;gap:20px;padding:40px 40px 32px;overflow-y:auto;max-height:calc(100vh - 32px)}
.of-lead-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-right:48px;padding:4px;border-radius:14px;background:#eef2fa}
.of-lead-switch button{padding:13px 12px;border:0;border-radius:10px;background:transparent;font:600 14px/1.3 "Montserrat",system-ui,sans-serif;color:#2f3a4f;cursor:pointer;transition:background .2s,color .2s,box-shadow .2s}
.of-lead-switch button[aria-pressed="true"]{background:#0b2d72;color:#fff;box-shadow:0 8px 18px -8px rgba(11,45,114,.6)}
.of-lead-form[hidden]{display:none}
.of-lead-form .wpcf7{margin:0}
.of-lead-form .wpcf7 p{margin:0 0 14px}
.of-lead-form .row{display:block;margin:0}
.of-lead-form [class*=col-]{width:100%;padding:0;margin:0 0 14px}
.of-lead-form label{display:block;margin:0 0 6px;font:600 13px/1.4 "Montserrat",system-ui,sans-serif;letter-spacing:0;text-transform:none;color:#2f3a4f}
.of-lead-form br{display:none}
.of-lead-form input[type=text],.of-lead-form input[type=email],.of-lead-form input[type=tel],.of-lead-form select,.of-lead-form textarea{width:100%;height:50px;padding:0 16px;border:1.5px solid #dbe2ef;border-radius:12px;background:#f8fafd;font:500 15px/1.4 "Montserrat",system-ui,sans-serif;color:#0a1224;box-shadow:none;transition:border-color .2s,box-shadow .2s,background .2s}
.of-lead-form textarea{height:auto;min-height:92px;padding:12px 16px;resize:vertical}
.of-lead-form input:focus,.of-lead-form select:focus,.of-lead-form textarea:focus{outline:0;border-color:#f7941d;background:#fff;box-shadow:0 0 0 4px rgba(247,148,29,.18)}
.of-lead-form ::placeholder{color:#8a94a8}
.of-lead-form .wpcf7-radio,.of-lead-form .wpcf7-checkbox{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.of-lead-form .wpcf7-list-item{margin:0}
.of-lead-form .wpcf7-list-item label{display:flex;align-items:center;gap:10px;margin:0;padding:12px 14px;border:1.5px solid #dbe2ef;border-radius:12px;background:#f8fafd;font:600 13.5px/1.35 "Montserrat",system-ui,sans-serif;color:#2f3a4f;cursor:pointer;transition:border-color .2s,background .2s,color .2s}
.of-lead-form .wpcf7-list-item label:hover{border-color:#a9b8d8}
.of-lead-form .wpcf7-list-item label:has(input:checked){border-color:#f7941d;background:#fff6e9;color:#0a1224}
.of-lead-form .wpcf7-list-item input{flex:none;width:18px;height:18px;margin:0;accent-color:#f7941d}
.of-lead-form input[type=submit],.of-lead-form button[type=submit]{width:100%;height:56px;margin-top:6px;border:0;border-radius:12px;background:#f7941d;color:#fff;font:700 16px/1 "Montserrat",system-ui,sans-serif;letter-spacing:.02em;cursor:pointer;box-shadow:0 14px 28px -12px rgba(247,148,29,.8);transition:background .2s,transform .2s,box-shadow .2s}
.of-lead-form input[type=submit]:hover{background:#e5850f;transform:translateY(-1px)}
.of-lead-form .wpcf7-spinner{display:none}
.of-lead-form .wpcf7-not-valid-tip{margin-top:6px;font:600 12.5px/1.4 "Montserrat",system-ui,sans-serif;color:#b3261e}
.of-lead-form .wpcf7-response-output{margin:14px 0 0;padding:12px 14px;border:0;border-radius:12px;background:#eef2fa;font:600 14px/1.5 "Montserrat",system-ui,sans-serif;color:#0b2d72}
.of-lead-form .wpcf7 form.sent .wpcf7-response-output{background:#e6f5ec;color:#1b7a43}
.of-lead-form .wpcf7 form.invalid .wpcf7-response-output,.of-lead-form .wpcf7 form.failed .wpcf7-response-output{background:#fdeceb;color:#b3261e}

@media(max-width:900px){
  .of-lead{width:calc(100% - 20px);border-radius:20px}
  .of-lead-box{grid-template-columns:1fr;overflow-y:auto}
  .of-lead-side{gap:14px;padding:28px 24px 22px}
  .of-lead-h{font-size:24px;margin-right:44px}
  .of-lead-p{font-size:14.5px}
  .of-lead-tel{padding:14px 16px;margin-top:4px}
  .of-lead-tel b{font-size:21px}
  .of-lead-list{display:none}
  .of-lead-main{padding:22px 20px 24px;max-height:none;overflow:visible}
  .of-lead-switch{margin-right:0}
  .of-lead-form .wpcf7-radio,.of-lead-form .wpcf7-checkbox{grid-template-columns:1fr}
  .of-lead-x{top:10px;right:10px;background:rgba(255,255,255,.16);color:#fff}
}
@media(prefers-reduced-motion:reduce){.of-lead[open]{animation:none}}
.of-lead-form input[type=radio],.of-lead-form input[type=checkbox]{-webkit-appearance:auto;appearance:auto;width:18px;height:18px;padding:0;border-radius:50%}
.of-lead-form input[type=checkbox]{border-radius:4px}
.of-lead-form input[type=text],.of-lead-form input[type=email],.of-lead-form input[type=tel],.of-lead-form select{height:46px}
.of-lead-form [class*=col-]{margin-bottom:12px}
.of-lead-switch button{font-size:13px;padding:12px 8px}
/* Nút gửi luôn nằm sát đáy khung cuộn */
@media(min-width:901px){
  .of-lead-form p:has(> input[type=submit]),.of-lead-form p:has(> button[type=submit]){position:sticky;bottom:-32px;z-index:2;margin:0 -40px -4px;padding:16px 40px 20px;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 28%)}
}
