/* Contact popup (#contact-form): brand panel with icon cards + clean form card. Loaded last so it wins over the
   older contact styles. Plus Jakarta Sans inherited; sizes follow the shared scale (16px inputs, 14px labels). */
html body #contact-form{width:min(1040px,calc(100vw - 24px))!important;max-width:1040px!important;padding:0!important;border:0!important;border-radius:28px!important;overflow:hidden;background:#fff!important;box-shadow:0 40px 100px rgba(5,15,50,.5)!important;color:#0c1f4f}
html body #contact-form::backdrop{background:rgba(4,12,38,.7)!important;backdrop-filter:blur(8px)}
html body #contact-form[open]{animation:cm-in .3s cubic-bezier(.2,.9,.3,1.05)}
@keyframes cm-in{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
html body #contact-form *{box-sizing:border-box}
html body #contact-form .contact-layout{display:grid!important;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;gap:0!important;padding:0!important;min-height:620px}
html body #contact-form .contact-close{position:absolute;top:14px;right:14px;z-index:5;width:40px;height:40px;border:0;border-radius:50%;background:rgba(12,31,79,.08);color:#0c1f4f;font-size:24px;line-height:1;cursor:pointer;display:grid;place-items:center;transition:background .15s ease}
html body #contact-form .contact-close:hover{background:rgba(12,31,79,.16)}

/* Brand panel */
html body #contact-form .contact-details{position:relative;overflow:hidden;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:0!important;padding:38px 34px!important;border-radius:0!important;color:#fff;
  background:radial-gradient(90% 70% at 0 0,rgba(255,255,255,.16) 0,transparent 60%),radial-gradient(70% 60% at 100% 100%,rgba(0,10,120,.45) 0,transparent 60%),#0032FE!important}
html body #contact-form .contact-details::after{content:"";position:absolute;right:-90px;bottom:-90px;width:300px;height:300px;border-radius:50%;border:2px solid rgba(255,255,255,.09);box-shadow:0 0 0 40px rgba(255,255,255,.04),0 0 0 80px rgba(255,255,255,.03);inset:auto -90px -90px auto;height:300px;background:none}
html body #contact-form .contact-details>img{width:150px;height:auto;margin:0 0 30px}
html body #contact-form .contact-details>.eyebrow{display:block!important;margin:0 0 8px;font-size:12px;font-weight:700;letter-spacing:.16em;color:#8fd8ff}
html body #contact-form .contact-details h2{margin:0!important;font-size:34px!important;line-height:1.1!important;font-weight:800;letter-spacing:-.03em;color:#fff!important}
html body #contact-form .contact-details p#contact-description{max-width:340px;margin:12px 0 26px;font-size:15px;line-height:1.6;color:#cfdcff;font-weight:400}
html body #contact-form .cd-list{position:relative;z-index:1;list-style:none;margin:0;padding:0;display:grid;gap:10px;width:100%}
html body #contact-form .cd-list a,html body #contact-form .cd-hours{display:flex;align-items:center;gap:14px;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);color:#fff;text-decoration:none;transition:background .15s ease,transform .15s ease}
html body #contact-form .cd-list a:hover{background:rgba(255,255,255,.16);transform:translateX(3px)}
html body #contact-form .cd-list i{flex:none;width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:rgba(255,255,255,.14);color:#fff}
html body #contact-form .cd-list li:nth-child(2) i{background:#1fb25a}
html body #contact-form .cd-list svg{fill:none;stroke:white;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
html body #contact-form .cd-list li:nth-child(2) svg{fill:currentColor;stroke:none}
html body #contact-form .cd-list span{display:flex;flex-direction:column;min-width:0}
html body #contact-form .cd-list small{font-size:12px;color:#a9bff0;font-weight:600;letter-spacing:.04em}
html body #contact-form .cd-list b{font-size:16px;font-weight:700;overflow-wrap:anywhere}
html body #contact-form .cd-list em{font-style:normal;font-size:13px;color:#8fd8ff;font-weight:600;margin-top:1px}
html body #contact-form .contact-chat-now{margin:0!important;background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.14)!important}

/* Form card */
html body #contact-form .contact-entry{padding:46px 38px 34px!important;border-radius:0!important;background:#fff!important;display:flex;flex-direction:column;justify-content:center}
html body #contact-form #contact-message-form{display:grid;grid-template-columns:1fr 1fr;gap:16px 14px!important}
html body #contact-form #contact-message-form[hidden]{display:none}
html body #contact-form .contact-name-row{display:contents}
html body #contact-form #contact-message-form>label:not(.contact-field-wide):not(.form-trap){grid-column:auto}
html body #contact-form .contact-field-wide,html body #contact-form #contact-message-form>small,html body #contact-form #contact-feedback,html body #contact-form #contact-message-form>.button,html body #contact-form #contact-message-form>label:nth-of-type(3),html body #contact-form #contact-message-form>label:nth-of-type(4){grid-column:1/-1}
html body #contact-form #contact-message-form label{display:flex;flex-direction:column;gap:7px;margin:0;font-size:14px!important;font-weight:700;color:#14264f!important}
html body #contact-form #contact-message-form input,html body #contact-form #contact-message-form select,html body #contact-form #contact-message-form textarea{width:100%;height:52px;padding:0 16px;border:1.5px solid #dbe5f7;border-radius:14px;background:#f6f9ff;color:#0c1f4f;font-family:inherit;font-size:16px!important;font-weight:500;outline:0;box-shadow:none;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
html body #contact-form #contact-message-form textarea{height:auto;min-height:116px;padding:14px 16px;resize:vertical;line-height:1.5}
html body #contact-form #contact-message-form select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b5be6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:18px;padding-right:42px}
html body #contact-form #contact-message-form input::placeholder,html body #contact-form #contact-message-form textarea::placeholder{color:#8792ab;font-weight:400}
html body #contact-form #contact-message-form input:focus,html body #contact-form #contact-message-form select:focus,html body #contact-form #contact-message-form textarea:focus{border-color:#1b5be6;background:#fff;box-shadow:0 0 0 4px rgba(27,91,230,.14)}
html body #contact-form #contact-message-form input:user-invalid,html body #contact-form #contact-message-form textarea:user-invalid{border-color:#d92d4a}
html body #contact-form .form-trap{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
html body #contact-form #contact-message-form>small{font-size:13px!important;line-height:1.5;color:#64739a}
html body #contact-form #contact-message-form>small a{color:#1b5be6;font-weight:700}
html body #contact-form #contact-feedback{min-height:0;margin:0;font-size:14px;font-weight:600;color:#d92d4a}
html body #contact-form #contact-feedback:empty{display:none}
html body #contact-form #contact-message-form>.button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:56px;padding:0 24px;border:0;border-radius:16px;background:#0032FE;color:#fff!important;font-family:inherit;font-size:17px!important;font-weight:700;box-shadow:0 14px 30px rgba(27,91,230,.38);cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}
html body #contact-form #contact-message-form>.button:hover{transform:translateY(-2px);box-shadow:0 18px 36px rgba(0,50,254,.5)}
html body #contact-form #contact-message-form>.button:disabled{opacity:.7;cursor:wait;transform:none}
html body #contact-form #contact-message-form>.button .ar{width:1.1em;height:1.1em}

/* Success */
html body #contact-form #contact-success{text-align:center;padding:30px 10px}
html body #contact-form #contact-success[hidden]{display:none}
html body #contact-form .cs-ico{display:grid;place-items:center;width:84px;height:84px;margin:0 auto 18px;border-radius:50%;background:#e3f7ec;color:#12a150;box-shadow:0 0 0 12px #f0fbf5;animation:cm-pop .5s cubic-bezier(.2,1.4,.4,1) both}
html body #contact-form .cs-ico svg{width:42px;height:42px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
@keyframes cm-pop{from{transform:scale(.4);opacity:0}to{transform:none;opacity:1}}
html body #contact-form #contact-success h3{margin:0 0 8px;font-size:26px;font-weight:800;letter-spacing:-.02em}
html body #contact-form #contact-success p{max-width:360px;margin:0 auto 22px;font-size:16px;line-height:1.6;color:#4b5a7c}
html body #contact-form .contact-done{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 26px;border:0;border-radius:14px;background:linear-gradient(120deg,#1b5be6,#2f7bff);color:#fff;font-family:inherit;font-size:16px;font-weight:700;cursor:pointer}

/* Dark scheme */
html[data-scheme=dark] body #contact-form,html[data-scheme=dark] body #contact-form .contact-entry{background:#0f1a36!important;color:#eef3ff}
html[data-scheme=dark] body #contact-form .contact-close{background:rgba(255,255,255,.1);color:#fff}
html[data-scheme=dark] body #contact-form #contact-message-form label{color:#e1e9ff!important}
html[data-scheme=dark] body #contact-form #contact-message-form input,html[data-scheme=dark] body #contact-form #contact-message-form select,html[data-scheme=dark] body #contact-form #contact-message-form textarea{background:#0b1530;border-color:#27396b;color:#eef3ff}
html[data-scheme=dark] body #contact-form #contact-message-form input:focus,html[data-scheme=dark] body #contact-form #contact-message-form select:focus,html[data-scheme=dark] body #contact-form #contact-message-form textarea:focus{background:#101d3d;border-color:#4d86ff}
html[data-scheme=dark] body #contact-form #contact-message-form>small,html[data-scheme=dark] body #contact-form #contact-success p{color:#a3b2d4}
html[data-scheme=dark] body #contact-form .cs-ico{background:#123524;box-shadow:0 0 0 12px #0e2a1d}

/* Tablet and phone */
@media (max-width:860px){
  html body #contact-form .contact-layout{grid-template-columns:minmax(0,1fr)!important;min-height:0}
  html body #contact-form .contact-details{padding:26px 22px!important}
  html body #contact-form .contact-details>img{width:120px;margin-bottom:18px}
  html body #contact-form .contact-details h2{font-size:28px!important}
  html body #contact-form .contact-details p#contact-description{margin-bottom:16px}
  html body #contact-form .cd-list{grid-template-columns:1fr 1fr}
  html body #contact-form .cd-list a,html body #contact-form .cd-hours{padding:10px 12px}
  html body #contact-form .contact-entry{padding:26px 22px 24px!important}
}
@media (max-width:560px){
  html body #contact-form{width:calc(100vw - 12px)!important;border-radius:22px!important;max-height:calc(100dvh - 12px)}
  html body #contact-form .cd-list{display:none}
  html body #contact-form .contact-details{padding:22px 20px 14px!important}
  html body #contact-form #contact-message-form{grid-template-columns:1fr}
  html body #contact-form #contact-message-form>label:not(.form-trap){grid-column:1/-1}
}
@media (prefers-reduced-motion:reduce){html body #contact-form[open],html body #contact-form .cs-ico{animation:none}}

/* Legacy overrides: fixed dialog height and absolutely positioned footer icons */
html body #contact-form{height:fit-content!important;max-height:calc(100dvh - 24px)!important;overflow:auto}
html body #contact-form .contact-layout{align-items:stretch!important}
html body #contact-form .cd-list i{position:relative}
html body #contact-form .cd-list svg{position:static!important;width:20px!important;height:20px!important;left:auto!important;top:auto!important}
html body #contact-form .cd-list a,html body #contact-form .cd-hours{padding-left:14px!important;position:relative!important}
html body #contact-form .cd-list a span,html body #contact-form .cd-hours span{position:static!important;padding:0!important}
html body #contact-form .contact-details>.eyebrow{display:inline-flex!important;padding:5px 12px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);letter-spacing:.14em}
html body #contact-form .cd-list .contact-chat-now{display:flex!important;flex-direction:row!important;align-items:center!important;width:auto!important;margin:0!important;padding:12px 14px!important;position:relative!important;left:auto!important;top:auto!important;right:auto!important;bottom:auto!important;transform:none!important;float:none!important}
html body #contact-form #contact-success h3{font-size:26px!important;font-weight:800!important}
html body #contact-form #contact-success p{font-size:16px!important;color:#4b5a7c}
html body #contact-form #contact-success .contact-done{width:auto;max-width:100%;margin:0 auto}
@media (max-width:860px){html body #contact-form .contact-close{background:rgba(255,255,255,.18);color:#fff}}
