/* Shared UI, scoped to the consultation and consent components. */
html.am-consult-open,html.am-case-open,html.am-case-image-open{overflow:hidden;}
#modal.am-ui-modal{box-sizing:border-box;position:fixed;inset:0;margin:auto;padding:0;width:min(480px,calc(100% - 24px));height:max-content;max-width:none;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);border:0;border-radius:20px;overflow:auto;overscroll-behavior:contain;background:#fff;color:#193753;box-shadow:0 24px 80px #102e4755;}
#modal.am-ui-modal:not([open]){display:none;}
#modal.am-ui-modal[open]{display:block;}
#modal.am-ui-modal::backdrop{background:#102b40a6;}
#modal.am-ui-modal .modal__content{width:100%;max-width:none;padding:0;border-radius:0;background:#fff;}
#modal .am-ui-modal-head{position:relative;isolation:isolate;padding:24px 28px 22px;background:linear-gradient(125deg,#174e63,#087f91);color:#fff;overflow:hidden;}
#modal .am-ui-modal-head::after{content:'';position:absolute;z-index:-1;pointer-events:none;right:-80px;bottom:-140px;width:330px;height:250px;border:1px solid #ffffff26;border-radius:50%;box-shadow:0 0 0 18px #ffffff0b,0 0 0 36px #ffffff0b,0 0 0 54px #ffffff0b;transform:rotate(-25deg);}
#modal .am-ui-brand{display:inline-block;font-size:13px;font-weight:600;color:#e2f5f7;margin-bottom:12px;}
#modal .modal__title{font-size:clamp(23px,3vw,28px);line-height:1.2;color:#fff;margin:0 28px 9px 0;font-weight:750;}
#modal .am-ui-modal-head p{font-size:14px;line-height:1.5;margin:0;color:#e8f6f7;}
#modal .modal__close{position:absolute;top:12px;right:12px;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:12px;color:#fff;background:#ffffff20;font-size:28px;line-height:1;cursor:pointer;}
#modal .modal__close:hover{background:#ffffff35;color:#fff;}
#modal #modalForm{display:grid;gap:12px;padding:22px 28px 26px;margin:0;}
#modal .am-ui-field{display:grid;gap:5px;font-size:13px;font-weight:600;color:#193753;}
#modal .am-ui-field input{box-sizing:border-box;min-width:0;width:100%;height:46px;margin:0;padding:0 12px;border:1px solid #ccdce2;border-radius:10px;background:#f7fafb;color:#193753;font-size:16px;font-weight:400;}
#modal .am-ui-consent{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.5;color:#435b70;margin:0;}
#modal .am-ui-consent input{appearance:auto;position:static;opacity:1;flex:none;width:18px;height:18px;margin:1px 0 0;accent-color:#087b8c;}
#modal .am-ui-consent a,.am-cookie a{color:#006d80;text-decoration:underline;text-underline-offset:2px;}
#modal #modalForm .btn{width:100%;min-height:46px;margin:0;border-radius:10px;}
#modal :focus-visible,#cookie-banner :focus-visible,.am-cookie-settings:focus-visible{outline:2px solid #00899d;outline-offset:3px;}
#modal .modal__close:focus-visible{outline-color:#fff;}
#cookie-banner.am-cookie{box-sizing:border-box;inset:auto auto max(16px,env(safe-area-inset-bottom)) 16px;width:min(440px,calc(100% - 32px));max-width:none;padding:20px;background:#fff;color:#435b70;border:1px solid #d5e5ea;border-radius:18px;box-shadow:0 12px 40px #173a5530;opacity:1;animation:none;backdrop-filter:none;font-size:14px;line-height:1.5;}
#cookie-banner.am-cookie[hidden]{display:none!important;}
#cookie-banner.am-cookie::before{display:none;}
#cookie-banner .am-cookie-head{display:flex;gap:12px;align-items:center;margin-bottom:12px;}
#cookie-banner .am-cookie-head svg{box-sizing:content-box;flex:none;padding:10px;background:#e1f3f5;border-radius:12px;color:#007b8c;}
#cookie-banner .am-cookie-head strong{display:block;color:#193753;font-size:18px;line-height:1.3;}
#cookie-banner .am-cookie-head small{display:block;color:#526879;font-size:12px;}
#cookie-banner p{margin:0 0 8px;}
#cookie-banner .cookie-actions{display:flex;gap:8px;margin-top:16px;flex-wrap:wrap;}
#cookie-banner .cookie-btn{flex:1 1 155px;min-height:44px;min-width:0;padding:8px 10px;border:1px solid #a6cbd3;border-radius:10px;font-size:13px;transform:none;}
#cookie-banner .cookie-btn.decline{background:#f2f8f9;color:#17596b;}
#cookie-banner .cookie-btn.accept{background:#087b8c;color:#fff;border-color:#087b8c;}
#cookie-banner .cookie-btn.decline:hover{background:#e2f1f3;}
#cookie-banner .cookie-btn.accept:hover{background:#075e70;}
.am-cookie-settings{background:none;border:0;color:#fff;font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px;margin:0 6px;padding:4px;}
@media(max-width:480px){#modal .am-ui-modal-head{padding:20px;}#modal #modalForm{padding:18px 20px;}}
@media(max-height:680px){#modal .am-ui-modal-head{padding-block:14px;}#modal .am-ui-brand{margin-bottom:6px;}#modal #modalForm{padding-block:14px;gap:8px;}}

#modal .am-ui-field input{padding-left:40px;background-repeat:no-repeat;background-position:12px center;background-size:18px 18px;}
#modal .am-ui-field input[name="name"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300788a' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-2a8 8 0 0 1 16 0v2'/%3E%3C/svg%3E");}
#modal .am-ui-field input[name="phone"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300788a' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M5 3h4l2 5-3 2c1 3 3 5 6 6l2-3 5 2v4c0 2-2 3-4 2C8 19 5 16 3 7 2 5 3 3 5 3Z'/%3E%3C/svg%3E");}
#modal .am-ui-field input[name="email"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300788a' stroke-width='1.7' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 7 9-7'/%3E%3C/svg%3E");}
