
/* ===== Navy + gold theme (matches Analyse Solutions branding) and in-field icons ===== */
.enq-modal{background:linear-gradient(160deg,#13355a 0%,#0b2038 60%,#081729 100%);color:#fff;border:1px solid rgba(227,161,58,.35)}
.enq-modal h3{color:#fff}
.enq-modal .enq-sub{color:#b9c6d6}
.enq-close{background:rgba(255,255,255,.12);color:#fff}
.enq-close:hover{background:rgba(227,161,58,.9);color:#0b2038}
.enq-field label{color:#e8eef5}
.enq-field label span{color:#e3a13a}
.enq-field label em{color:#9fb0c4}
.enq-field input,.enq-field textarea{background-color:rgba(255,255,255,.08);border:1.5px solid rgba(255,255,255,.22);color:#fff;background-repeat:no-repeat;background-size:18px 18px;background-position:12px center;padding-left:40px}
.enq-field textarea{background-position:12px 13px}
.enq-field input::placeholder,.enq-field textarea::placeholder{color:#8fa3ba}
.enq-field input:focus,.enq-field textarea:focus{background-color:rgba(255,255,255,.14);border-color:#e3a13a;box-shadow:0 0 0 3px rgba(227,161,58,.28)}
.enq-field input:-webkit-autofill{-webkit-text-fill-color:#fff;-webkit-box-shadow:0 0 0 40px #17406b inset;caret-color:#fff}
.enq-field.invalid input,.enq-field.invalid textarea{border-color:#ff6b61}
.enq-err{color:#ff8f87}
.enq-formerr{background:rgba(255,107,97,.15);color:#ffb4ae}

/* icons (gold, drawn inside the boxes) */
#enqName{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3a13a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E")}
#enqAddress{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3a13a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 6-9 12-9 12s-9-6-9-12a9 9 0 0118 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E")}
#enqPhone{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3a13a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5a2 2 0 012-2h3l2 5-2.5 1.5a11 11 0 005 5L14 12l5 2v3a2 2 0 01-2 2h-1C9.6 19 3 12.4 3 5z'/%3E%3C/svg%3E")}
#enqEmail{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3a13a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E")}
#enqCaptcha{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3a13a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 018 0v4'/%3E%3C/svg%3E")}

/* captcha + button on dark background */
.enq-captcha img{border-color:rgba(255,255,255,.25);background:#fff}
.enq-captcha-refresh{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.25);color:#e3a13a}
.enq-captcha-refresh:hover{background:rgba(227,161,58,.2)}
.enq-submit{background:#e3a13a;color:#0b2038}
.enq-submit:hover{background:#eab04f}
.enq-thanks-modal .enq-sub{color:#d3dde9}

/* Service dropdown */
.enq-field select{width:100%;box-sizing:border-box;padding:11px 38px 11px 40px;border:1.5px solid rgba(255,255,255,.22);border-radius:8px;font:400 14px 'Inter',sans-serif;color:#fff;background-color:rgba(255,255,255,.08);outline:none;cursor:pointer;-webkit-appearance:none;appearance:none;transition:border-color .2s,box-shadow .2s;background-repeat:no-repeat,no-repeat;background-size:18px 18px,16px 16px;background-position:12px center,right 12px center;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3a13a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 012-2h4a2 2 0 012 2v2M3 13h18'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3a13a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")}
.enq-field select:focus{background-color:rgba(255,255,255,.14);border-color:#e3a13a;box-shadow:0 0 0 3px rgba(227,161,58,.28)}
.enq-field select:invalid{color:#8fa3ba}
.enq-field select option{color:#0b2038;background:#fff}
.enq-field.invalid select,.enq-field select[aria-invalid="true"]{border-color:#ff6b61}

/* ===== Labels removed: text lives in the boxes as placeholders ===== */

/* Captcha: image + refresh button + input all on ONE row */
.enq-capfield{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.enq-capfield .enq-captcha{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.enq-capfield .enq-captcha img{display:block;width:130px;height:43px;border:1.5px solid rgba(255,255,255,.25);border-radius:8px;background:#fff}
.enq-capfield .enq-captcha-refresh{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border:1.5px solid rgba(255,255,255,.25);border-radius:8px;background:rgba(255,255,255,.1);color:#e3a13a;cursor:pointer}
.enq-capfield .enq-captcha-refresh svg{width:18px;height:18px}
.enq-capfield .enq-captcha-input{flex:1 1 90px;min-width:0;width:auto;background-size:16px 16px;background-position:10px center;padding-left:34px;padding-right:8px}
.enq-capfield .enq-err{flex:0 0 100%;margin-top:0}
@media (max-width:380px){.enq-capfield .enq-captcha img{width:110px;height:37px}}

/* ===== Roomy, responsive layout ===== */
.enq-overlay{padding:16px}
.enq-modal{max-width:560px;padding:34px 36px 30px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto}
.enq-modal h3{font-size:26px;margin:0 0 6px}
.enq-modal .enq-sub{font-size:14px;line-height:1.5;margin:0 0 24px}
.enq-close{top:14px;right:14px;width:36px;height:36px;font-size:22px}
.enq-field{margin-bottom:18px}
.enq-field input,.enq-field select{padding-top:13px;padding-bottom:13px;font-size:15px;line-height:1.3}
.enq-field textarea{padding-top:13px;padding-bottom:13px;font-size:15px;height:84px;min-height:0;resize:none;background-position:12px 14px}
.enq-err{margin-top:5px;font-size:12.5px;line-height:1.3}
.enq-formerr{display:none;margin:0 0 16px;padding:10px 12px;border-radius:8px;font-size:13.5px}
.enq-submit{padding:15px;font-size:16px;margin-top:4px}
.enq-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Captcha row */
.enq-capfield{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.enq-capfield .enq-captcha{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.enq-capfield .enq-captcha img{display:block;width:150px;height:49px;border:1.5px solid rgba(255,255,255,.25);border-radius:8px;background:#fff}
.enq-capfield .enq-captcha-refresh{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1.5px solid rgba(255,255,255,.25);border-radius:8px;background:rgba(255,255,255,.1);color:#e3a13a;cursor:pointer}
.enq-capfield .enq-captcha-refresh svg{width:20px;height:20px}
.enq-capfield .enq-captcha-input{flex:1 1 120px;min-width:0;width:auto;padding-left:40px;padding-right:10px}
.enq-capfield .enq-err{flex:0 0 100%;margin-top:0}

/* Tablet / desktop: Phone + Email share a row */
@media (min-width:601px){
  #enqForm{display:grid;grid-template-columns:1fr 1fr;column-gap:16px}
  #enqForm>*{grid-column:1/-1}
  #enqForm>.enq-field:has(#enqPhone),#enqForm>.enq-field:has(#enqEmail){grid-column:auto}
}
/* Mobile: everything stacked one below the other */
@media (max-width:600px){
  .enq-overlay{padding:10px;align-items:flex-start;overflow-y:auto}
  .enq-modal{max-width:100%;padding:26px 18px 22px;margin:auto 0;max-height:none}
  .enq-modal h3{font-size:22px;padding-right:36px}
  .enq-modal .enq-sub{font-size:13.5px;margin-bottom:20px}
  .enq-field{margin-bottom:16px}
  #enqForm{display:block}
}
@media (max-width:380px){
  .enq-capfield .enq-captcha img{width:120px;height:40px}
}

/* ===== Services dropdown hover: navy form colour + gold accents =====
   (high specificity + !important so extras.css / common-extras.css can't override it) */
header .dd-inner{gap:4px}
header .dd-inner a.dd-item{position:relative !important;overflow:hidden;border-radius:8px;padding-right:40px !important;
  transition:background .3s ease,transform .3s ease,box-shadow .3s ease !important}
header .dd-inner a.dd-item::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#e3a13a;
  transform:scaleY(0);transition:transform .3s ease}
header .dd-inner a.dd-item::after{content:"\2192";position:absolute;right:16px;top:50%;font-size:18px;font-weight:700;color:#e3a13a;
  opacity:0;transform:translate(-10px,-50%);transition:opacity .3s ease,transform .3s ease}
header .dd-inner a.dd-item:hover,header .dd-inner a.dd-item:focus-visible{
  background:linear-gradient(160deg,#13355a 0%,#0b2038 60%,#081729 100%) !important;
  box-shadow:0 10px 22px -10px rgba(11,32,56,.55);outline:none}
header .dd-inner a.dd-item:hover::before,header .dd-inner a.dd-item:focus-visible::before{transform:scaleY(1)}
header .dd-inner a.dd-item:hover::after,header .dd-inner a.dd-item:focus-visible::after{opacity:1;transform:translate(0,-50%)}
header .dd-inner .dd-icon{transition:background .3s ease,color .3s ease,transform .35s cubic-bezier(.34,1.56,.64,1)}
header .dd-inner a.dd-item:hover .dd-icon,header .dd-inner a.dd-item:focus-visible .dd-icon{background:#e3a13a !important;color:#0b2038 !important;transform:rotate(-8deg) scale(1.12)}
header .dd-inner .dd-text strong{transition:color .3s ease,letter-spacing .3s ease}
header .dd-inner a.dd-item:hover .dd-text strong,header .dd-inner a.dd-item:focus-visible .dd-text strong{color:#fff !important;font-weight:800 !important;letter-spacing:.015em}
header .dd-inner .dd-text span{transition:color .3s ease}
header .dd-inner a.dd-item:hover .dd-text span,header .dd-inner a.dd-item:focus-visible .dd-text span{color:#b9c6d6 !important}
@media (min-width:861px){
  header .dd-inner a.dd-item:hover,header .dd-inner a.dd-item:focus-visible{transform:translateX(4px)}
}

/* ===== Wider boxes + icons that always stay visible ===== */
.enq-modal{max-width:640px}
/* Phone and Email now get their own full-width row so long emails fit */
@media (min-width:601px){
  #enqForm>.enq-field:has(#enqPhone),#enqForm>.enq-field:has(#enqEmail){grid-column:1/-1}
}
/* keep icon pinned inside the box in every state (typing, focus, valid, autofill) */
.enq-field input,.enq-field textarea,.enq-field select{
  background-repeat:no-repeat !important;background-attachment:scroll !important;
  background-origin:padding-box !important;background-position:12px center !important;
  background-size:18px 18px !important;padding-left:42px !important;text-overflow:ellipsis}
.enq-field textarea{background-position:12px 14px !important}
.enq-field select{background-repeat:no-repeat,no-repeat !important;background-size:18px 18px,16px 16px !important;background-position:12px center,right 12px center !important}
#enqEmail,#enqEmail:focus,#enqEmail:valid,#enqEmail:invalid,#enqEmail:not(:placeholder-shown),#enqEmail:-webkit-autofill,#enqEmail:autofill{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3a13a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E") !important}
#enqName:focus,#enqName:valid,#enqName:-webkit-autofill{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3a13a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E") !important}
#enqPhone:focus,#enqPhone:valid,#enqPhone:-webkit-autofill{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3a13a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5a2 2 0 012-2h3l2 5-2.5 1.5a11 11 0 005 5L14 12l5 2v3a2 2 0 01-2 2h-1C9.6 19 3 12.4 3 5z'/%3E%3C/svg%3E") !important}
/* Browser autofill: the old rule used an inset box-shadow, which paints OVER the icon and hid it.
   Suppress the autofill colour with a transition instead, so the background (and icon) stays visible. */
.enq-field input:-webkit-autofill,.enq-field input:-webkit-autofill:hover,.enq-field input:-webkit-autofill:focus{
  -webkit-text-fill-color:#fff !important;-webkit-box-shadow:none !important;box-shadow:none !important;
  caret-color:#fff;transition:background-color 600000s 0s,color 600000s 0s !important}

/* ===== Phone + Email back on one line, slightly narrower popup ===== */
.enq-modal{max-width:600px;padding-left:32px;padding-right:32px}
@media (min-width:601px){
  #enqForm{grid-template-columns:5fr 6fr;column-gap:14px}      /* email gets a little more room than phone */
  #enqForm>.enq-field:has(#enqPhone),#enqForm>.enq-field:has(#enqEmail){grid-column:auto}
  #enqEmail,#enqPhone{padding-right:10px !important}
}
