.integration-dialog{width:min(860px,calc(100vw - 32px));max-height:92dvh;padding:0;border:1px solid #b9e3eb;border-radius:24px;box-shadow:0 30px 100px #02091b66;color:#071b3b;background:white;overflow:hidden}.integration-dialog::backdrop{background:#020b24b8;backdrop-filter:blur(5px)}.integration-dialog-head{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:22px 28px;background:linear-gradient(110deg,#eefaff,#e8faf7);border-bottom:1px solid #d8e9ef}.integration-dialog-head h2{font-size:24px;line-height:1.25;margin:0;color:#071b3b}.integration-dialog-close{border:1px solid #b8d9e1;background:white;border-radius:50%;width:36px;height:36px;flex-shrink:0;font-size:24px;color:#17304d}.integration-dialog iframe{display:block;width:100%;height:min(690px,72dvh);border:0;background:white}.quote-popup-body{padding:24px 28px;background:white}.quote-popup-body .form-grid{gap:18px}.quote-popup-body textarea{min-height:120px}.quote-popup-body label{font-size:13px}.quote-popup-body .readtime{font-size:12px}.quote-popup-body input,.quote-popup-body select{padding:11px}.quote-popup-body #form-status{margin-top:16px}@media(max-width:600px){.integration-dialog-head{padding:18px}.integration-dialog-head h2{font-size:20px}.quote-popup-body{padding:20px}.quote-popup-body .form-grid{grid-template-columns:1fr}}

/* Compact quote form: keep every field and submit action visible. */
.integration-dialog{width:min(960px,calc(100vw - 32px));max-height:96dvh}.integration-dialog-head{padding:16px 24px}.integration-dialog-head h2{font-size:22px}.integration-dialog iframe{height:min(620px,calc(96dvh - 70px))}.quote-popup-body{padding:14px 24px}.quote-popup-body .readtime{margin:0 0 10px;font-size:11px;line-height:1.4}.quote-popup-body .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px}.quote-popup-body .form-grid label{font-size:12px;line-height:1.4;margin-bottom:4px}.quote-popup-body input,.quote-popup-body select{height:38px;padding:7px 10px;font-size:13px}.quote-popup-body textarea{height:64px;min-height:64px;padding:8px 10px;font-size:13px}.quote-popup-body .form-grid .full{grid-column:1/-1}.quote-popup-body .form-grid .full:last-child{display:flex;align-items:center;justify-content:space-between;gap:12px}.quote-popup-body .form-grid .full:last-child .readtime{margin:0;max-width:65%}.quote-popup-body .button{padding:10px 18px;white-space:nowrap;font-size:12px}.quote-popup-body #form-status{margin-top:8px;font-size:12px;line-height:1.4}@media(max-height:700px) and (min-width:601px){.quote-popup-body{padding:10px 20px}.quote-popup-body .form-grid{gap:7px 16px}.quote-popup-body input,.quote-popup-body select{height:34px;padding:5px 9px}.quote-popup-body textarea{height:48px;min-height:48px}.integration-dialog-head{padding:10px 20px}.integration-dialog iframe{height:calc(96dvh - 60px)}}@media(max-width:600px){.integration-dialog{width:calc(100vw - 16px)}.integration-dialog-head{padding:12px 16px}.integration-dialog-head h2{font-size:19px}.quote-popup-body{padding:12px}.quote-popup-body .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.quote-popup-body .form-grid label{font-size:11px}.quote-popup-body .form-grid .full:last-child{display:block}.quote-popup-body .form-grid .full:last-child .readtime{max-width:none;margin-bottom:10px}.quote-popup-body .button{width:100%}.integration-dialog iframe{height:calc(96dvh - 64px)}}

/* Balanced dialog sizing with comfortable fields and no empty lower panel. */
.integration-dialog{width:min(800px,calc(100vw - 32px));border-radius:22px}.integration-dialog-head{padding:18px 24px}.integration-dialog-head h2{font-size:23px}.integration-dialog iframe{height:min(574px,calc(96dvh - 76px))}.quote-popup-body{padding:18px 24px}.quote-popup-body .form-grid{gap:14px 20px}.quote-popup-body .form-grid label{font-size:12px;margin-bottom:6px}.quote-popup-body input,.quote-popup-body select{height:42px;padding:9px 12px;font-size:14px;border-radius:9px}.quote-popup-body textarea{height:74px;min-height:74px;padding:10px 12px;font-size:13px;border-radius:9px}.quote-popup-body .readtime{margin-bottom:14px;font-size:11px}.quote-popup-body .button{padding:12px 20px;font-size:13px}.quote-popup-body .form-grid .full:last-child{padding-top:2px}@media(max-height:760px) and (min-width:601px){.integration-dialog-head{padding:14px 22px}.integration-dialog iframe{height:min(548px,calc(96dvh - 68px))}.quote-popup-body{padding:14px 22px}.quote-popup-body .form-grid{gap:11px 18px}.quote-popup-body input,.quote-popup-body select{height:39px}.quote-popup-body textarea{height:64px;min-height:64px}.quote-popup-body .readtime{margin-bottom:10px}}@media(max-width:600px){.integration-dialog{width:calc(100vw - 20px)}.integration-dialog-head{padding:14px 16px}.integration-dialog-head h2{font-size:19px}.quote-popup-body{padding:14px}.quote-popup-body .form-grid{gap:12px}.quote-popup-body .form-grid label{font-size:11px}.quote-popup-body input,.quote-popup-body select{font-size:13px}.integration-dialog iframe{height:min(620px,calc(96dvh - 68px))}}

.integration-dialog-close{display:grid;place-items:center;padding:0;line-height:1;font-family:Arial,sans-serif;font-weight:400;text-indent:0}.integration-dialog-close svg{display:block;width:18px;height:18px}

/* Mobile viewport, including browser chrome and the on-screen keyboard. */
@media(max-width:600px),(max-width:900px) and (max-height:500px){
 .integration-dialog[open]{display:flex;flex-direction:column;width:calc(100% - 16px);max-width:none;height:min(500px,calc(100dvh - 16px));height:min(500px,calc(var(--enquiry-viewport-height,100dvh) - 16px));max-height:calc(var(--enquiry-viewport-height,100dvh) - 16px);border-radius:20px;top:calc(var(--enquiry-viewport-top,0px) + max(8px,(var(--enquiry-viewport-height,100dvh) - 500px)/2))!important;bottom:auto!important;margin:0 auto!important}
 .integration-dialog-head{flex:none;gap:12px;padding:14px 16px}
 .integration-dialog-head h2{min-width:0;font-size:clamp(17px,4.6vw,20px);line-height:1.25;letter-spacing:-.5px}
 .integration-dialog-close{width:40px;height:40px}
 .integration-dialog iframe{flex:1 1 0;min-height:0;height:0;max-height:none;width:100%}
}
