/* ==========================================================================
   itt-modal.css — Enquiry modal, Calendly consultation modal, the
   "Schedule a Consultation" CTA button and the floating Call button.

   Ported from the landing page at ittraders.gkdigital.in (assets/css/styles.css
   and itt-port.css). That page lays the modals out with Tailwind utilities;
   here the same values are written as plain rules and scoped under .itt-modal
   so nothing leaks into site.css components (which own .dot, .chip,
   .form-success and .hidden). Keyframes are prefixed ittm- for the same
   reason. site.css / app.js / forms.js stay byte-identical.
   ========================================================================== */

/* ---------- design tokens (the LP's :root, scoped) ---------- */
.itt-modal, .itt-float-call {
  --navy: #020617; --navy-2: #0b1120;
  --primary: #0ea5e9; --primary-600: #0284c7; --sky: #38bdf8; --sky-soft: #e0f2fe;
  --ink: #0f172a; --muted: #64748b; --line: rgba(14, 165, 233, .14);
  --grad: linear-gradient(135deg, #020617 0%, #0ea5e9 55%, #38bdf8 100%);
  --grad-soft: linear-gradient(135deg, #eef4ff 0%, #f7fbff 50%, #eaf1ff 100%);
  --shadow-sm: 0 2px 10px rgba(2, 6, 23, .06);
  --shadow-md: 0 12px 34px -14px rgba(2, 6, 23, .28);
  --shadow-lg: 0 26px 60px -22px rgba(2, 6, 23, .38);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --field-r: 16px;
}

/* ---------- preflight equivalents, scoped ---------- */
.itt-modal {
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem; line-height: 1.5; color: var(--ink); letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
.itt-modal *, .itt-modal *::before, .itt-modal *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.itt-modal h3, .itt-modal p, .itt-modal ul { margin: 0; padding: 0; }
.itt-modal ul { list-style: none; }
.itt-modal h3 { font-family: inherit; letter-spacing: 0; color: inherit; line-height: inherit; font-weight: inherit; }
.itt-modal button {
  background: transparent; border: 0; padding: 0; margin: 0; font: inherit; color: inherit;
  cursor: pointer; line-height: inherit; text-transform: none; width: auto; height: auto; border-radius: 0;
}
.itt-modal img, .itt-modal svg { display: block; max-width: 100%; }
.itt-modal a { text-decoration: none; color: inherit; }
.itt-modal input, .itt-modal textarea { font: inherit; color: inherit; margin: 0; -webkit-appearance: none; appearance: none; }
.itt-modal textarea { resize: none; }
.itt-modal a, .itt-modal button, .itt-modal [role="button"], .itt-modal .dot { cursor: pointer; }
.itt-modal input[type="text"], .itt-modal input[type="email"], .itt-modal input[type="tel"], .itt-modal textarea { cursor: text; }
body.itt-no-scroll { overflow: hidden; }

/* ---------- typography helpers ---------- */
.itt-modal .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.itt-modal .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); background: rgba(14, 165, 233, .07); border: 1px solid rgba(14, 165, 233, .16);
  padding: .4rem .85rem; border-radius: 999px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.itt-modal .eyebrow .pulse-dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--primary);
  box-shadow: 0 0 0 0 rgba(14, 165, 233, .55); animation: ittmPulseDot 2.2s infinite;
}
@keyframes ittmPulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(14, 165, 233, .5); }
  70%  { box-shadow: 0 0 0 8px rgba(14, 165, 233, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

/* ---------- buttons (the LP's .cta family, inside the modals only) ---------- */
.itt-modal .cta {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 700; font-size: .9rem; letter-spacing: .01em; line-height: 1;
  padding: .82rem 1.4rem; border-radius: 999px; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden; isolation: isolate; border: 1px solid transparent;
}
.itt-modal .cta .arw { transition: transform .4s var(--ease); flex: none; }
.itt-modal .cta:hover .arw { transform: translateX(5px); }
.itt-modal .cta:active { transform: translateY(0) scale(.98); }
.itt-modal .cta:focus-visible { outline: 3px solid rgba(14, 165, 233, .35); outline-offset: 2px; }
.itt-modal .cta-primary {
  color: #fff; background: var(--grad); background-size: 180% 180%; background-position: 0% 50%;
  box-shadow: 0 12px 26px -12px rgba(14, 165, 233, .75);
}
.itt-modal .cta-primary:hover { background-position: 100% 50%; transform: translateY(-3px); box-shadow: 0 20px 38px -14px rgba(14, 165, 233, .85); }
.itt-modal .cta-primary:disabled { opacity: .85; cursor: progress; transform: none; }
.itt-modal .cta-ghost {
  color: var(--navy); background: rgba(255, 255, 255, .7); border-color: rgba(14, 165, 233, .28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm);
}
.itt-modal .cta-ghost::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); transform: translateY(101%); transition: transform .45s var(--ease); }
.itt-modal .cta-ghost:hover { color: #fff; border-color: transparent; transform: translateY(-3px); box-shadow: var(--shadow-md); }
.itt-modal .cta-ghost:hover::before { transform: translateY(0); }
.itt-modal .spin {
  display: inline-block; width: 1rem; height: 1rem; border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: ittmSpin 1s linear infinite;
}
@keyframes ittmSpin { to { transform: rotate(360deg); } }

.itt-modal .link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .82rem; color: var(--primary);
  transition: color .3s var(--ease), gap .3s var(--ease);
}
.itt-modal .link-arrow .go-arrow { transition: transform .4s var(--ease); }
.itt-modal .link-arrow:hover { color: var(--navy); }
.itt-modal .link-arrow:hover .go-arrow { transform: translateX(5px); }
.itt-modal .ring-ico { transform-origin: 50% 60%; }
.itt-modal .link-arrow:hover .ring-ico { animation: ittmHandsetRing .7s var(--ease); }
@keyframes ittmHandsetRing {
  0%, 100% { transform: rotate(0); } 20% { transform: rotate(-13deg); } 40% { transform: rotate(11deg); } 60% { transform: rotate(-7deg); } 80% { transform: rotate(4deg); }
}

/* ---------- brand plate ---------- */
.itt-modal .brand-plate {
  position: relative; display: inline-flex; align-items: center;
  padding: .42rem .8rem; border-radius: 16px; overflow: hidden; isolation: isolate;
  background: #fff; border: 1px solid rgba(14, 165, 233, .12);
  box-shadow: 0 6px 20px -10px rgba(2, 6, 23, .34), inset 0 1px 0 #fff;
}
.itt-modal .brand-plate img { position: relative; z-index: 2; display: block; }
.itt-modal .brand-plate::before {
  content: ""; position: absolute; z-index: 1; inset: -60% -20%;
  background: linear-gradient(100deg, transparent 0%, rgba(56, 189, 248, .16) 32%, rgba(14, 165, 233, .22) 46%, rgba(56, 189, 248, .16) 60%, transparent 100%);
  transform: translateX(-60%); animation: ittmBrandWave 6.5s var(--ease) infinite;
}
.itt-modal .brand-plate::after {
  content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: -40%; width: 28%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .95), transparent);
  transform: skewX(-18deg); animation: ittmBrandSheen 6.5s var(--ease) infinite;
}
@keyframes ittmBrandWave { 0%, 8% { transform: translateX(-60%); } 55%, 100% { transform: translateX(60%); } }
@keyframes ittmBrandSheen { 0%, 14% { left: -40%; opacity: 0; } 22% { opacity: 1; } 58%, 100% { left: 130%; opacity: 0; } }
.itt-modal .brand-plate.on-dark { border-color: rgba(255, 255, 255, .5); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6), inset 0 1px 0 #fff; }

/* ---------- carousel controls ---------- */
.itt-modal .car-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 20;
  width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, 0); color: #fff; opacity: 0;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .4s var(--ease), background .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
}
.itt-modal .car-arrow.prev { left: 14px; }
.itt-modal .car-arrow.next { right: 14px; }
.itt-modal .car-wrap:hover .car-arrow { opacity: 1; }
.itt-modal .car-arrow:hover { background: rgba(255, 255, 255, .95); color: var(--navy); border-color: #fff; transform: translateY(-50%) scale(1.1); }
.itt-modal .car-arrow:focus-visible { opacity: 1; outline: 2px solid #fff; }
.itt-modal .dots { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.itt-modal .dot {
  width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; background: rgba(255, 255, 255, .38);
  transition: width .45s var(--ease), background .35s var(--ease), transform .3s var(--ease);
}
.itt-modal .dot:hover { transform: scale(1.25); }
.itt-modal .dot.active { width: 32px; background: #fff; }

/* ---------- modal shell ---------- */
.itt-modal {
  position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center;
  padding: 1rem; opacity: 0; pointer-events: none; transition: opacity .38s var(--ease);
}
.itt-modal.open { opacity: 1; pointer-events: auto; }
.itt-modal .modal-backdrop { position: absolute; inset: 0; background: rgba(6, 16, 38, .62); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
.itt-modal .modal-card {
  position: relative; width: 100%; border-radius: 24px; overflow: hidden;
  transform: translateY(26px) scale(.97); opacity: 0;
  transition: transform .5s var(--ease), opacity .45s var(--ease);
  box-shadow: 0 40px 90px -30px rgba(6, 16, 38, .7); background: #fff;
}
.itt-modal.open .modal-card { transform: none; opacity: 1; }
.itt-modal .modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 40;
  width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--navy); border: 1px solid rgba(14, 165, 233, .18);
  box-shadow: var(--shadow-md); transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.itt-modal .modal-close:hover { background: var(--navy); color: #fff; transform: rotate(90deg) scale(1.06); }

/* ---------- enquiry modal ---------- */
.itt-modal .enq-card { max-width: 1080px; max-height: 94vh; max-height: 94svh; display: grid; grid-template-columns: 1fr; }
.itt-modal .enq-left { position: relative; background: var(--navy); color: #fff; display: none; }
.itt-modal .enq-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.itt-modal .enq-slide.active { opacity: 1; }
.itt-modal .enq-slide img { width: 100%; height: 100%; object-fit: cover; }
.itt-modal .enq-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 6, 23, .45) 0%, rgba(2, 6, 23, .88) 62%, rgba(2, 6, 23, .96) 100%); }
.itt-modal .enq-left-inner { position: relative; z-index: 10; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 1.75rem; }
.itt-modal .enq-brand { display: flex; align-items: center; gap: .625rem; }
.itt-modal .enq-brand img { height: 2.5rem; width: auto; }
.itt-modal .enq-left .eyebrow { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); }
.itt-modal .enq-left .eyebrow .pulse-dot { background: #fff; }
.itt-modal .enq-title { margin-top: .75rem; font-size: 1.55rem; font-weight: 800; line-height: 1.25; color: #fff; }
.itt-modal .enq-usps { margin-top: 1rem; display: flex; flex-direction: column; gap: .625rem; }
.itt-modal .enq-usps li { display: flex; gap: .625rem; font-size: .86rem; color: #eff6ff; }
.itt-modal .enq-usps svg { margin-top: .125rem; flex-shrink: 0; color: #7dd3fc; }
.itt-modal .enq-stats { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.itt-modal .enq-stat { border-radius: .75rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); padding: .625rem; text-align: center; }
.itt-modal .enq-stat b { display: block; font-size: 1.125rem; line-height: 1.75rem; font-weight: 800; color: #fff; }
.itt-modal .enq-stat span { display: block; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #bfdbfe; }

.itt-modal .enq-body { padding: 1.25rem; display: flex; flex-direction: column; justify-content: center; background: #fff; min-width: 0; max-height: 94vh; max-height: 94svh; overflow-y: auto; }
.itt-modal .enq-body-brand { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.itt-modal .enq-body-brand img { height: 2.25rem; width: auto; }
.itt-modal .enq-heading { font-size: 1.25rem; font-weight: 800; line-height: 1.25; color: var(--ink); }
.itt-modal .enq-sub { margin-top: .25rem; font-size: .8rem; color: var(--muted); }
.itt-modal .enq-form { margin-top: 1rem; display: grid; grid-template-columns: 1fr; gap: .75rem; }
.itt-modal .enq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.itt-modal .enq-hurry { margin-top: -.25rem; display: flex; flex-wrap: wrap; align-items: center; column-gap: .5rem; row-gap: .25rem; font-size: .78rem; color: var(--muted); }
.itt-modal .enq-hurry .link-arrow { font-size: .8rem; }
.itt-modal .enq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 640px) {
  .itt-modal .enq-body { padding: 1.75rem; }
  .itt-modal .enq-heading { font-size: 1.4rem; }
  .itt-modal .enq-form { grid-template-columns: 1fr 1fr; }
  .itt-modal .span2 { grid-column: span 2 / span 2; }
}
@media (min-width: 1024px) {
  .itt-modal .enq-card { grid-template-columns: 1fr 1fr; }
  .itt-modal .enq-left { display: block; }
  .itt-modal .enq-body-brand { display: none; }
}

/* ---------- premium form fields ---------- */
.itt-modal .field, .itt-modal .cc-select, .itt-modal .ms { position: relative; }
.itt-modal .field .f-ico, .itt-modal .ms > .f-ico {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: #8fa2bd; pointer-events: none; z-index: 3;
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.itt-modal .field:focus-within .f-ico { color: var(--primary); transform: translateY(-50%) scale(1.06); }
.itt-modal .ms > .f-ico { top: 16px; transform: none; }
.itt-modal .ms.open > .f-ico, .itt-modal .ms:focus-within > .f-ico { color: var(--primary); }

.itt-modal input.gf, .itt-modal textarea.gf {
  width: 100%; border: 1px solid #e2e9f5; border-radius: var(--field-r);
  padding: .82rem .95rem; font-size: .88rem; font-weight: 500; line-height: 1.35; color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: inset 0 1px 2px rgba(2, 6, 23, .04);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
  outline: none; position: relative; z-index: 1;
}
.itt-modal .field input.gf, .itt-modal .field textarea.gf { padding-left: 2.5rem; }
.itt-modal .field textarea.gf { padding-top: .8rem; }
.itt-modal input.gf { min-height: 48px; }
.itt-modal .field input.gf { height: 48px; }
.itt-modal textarea.gf { min-height: 92px; }
.itt-modal .field-area .f-ico { top: 1.15rem; transform: none; }
.itt-modal .field-area:focus-within .f-ico { transform: scale(1.06); }
.itt-modal .gf::placeholder { color: #9bacc4; font-weight: 500; }
.itt-modal input.gf:hover, .itt-modal textarea.gf:hover { border-color: #c8d6ea; background: #fff; }
.itt-modal input.gf:focus, .itt-modal textarea.gf:focus {
  border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .12), 0 8px 20px -12px rgba(14, 165, 233, .55);
  transform: translateY(-1px); outline: none;
}
.itt-modal .f-tick {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%) scale(.5);
  width: 19px; height: 19px; border-radius: 999px; display: grid; place-items: center;
  background: #16a34a; color: #fff; opacity: 0; pointer-events: none; z-index: 3;
  transition: opacity .3s var(--ease), transform .35s var(--ease);
}
.itt-modal .field.ok .f-tick { opacity: 1; transform: translateY(-50%) scale(1); }
.itt-modal .field.ok .gf { border-color: rgba(22, 163, 74, .45); padding-right: 2.4rem; }
.itt-modal .field-area .f-tick { top: 1.05rem; transform: scale(.5); }
.itt-modal .field-area.ok .f-tick { transform: scale(1); }
.itt-modal input.gf.err, .itt-modal textarea.gf.err { border-color: #e0393e; background: #fffafa; }
.itt-modal input.gf.err:focus, .itt-modal textarea.gf.err:focus { box-shadow: 0 0 0 4px rgba(224, 57, 62, .13); }
.itt-modal .field.err-shake { animation: ittmFieldShake .4s var(--ease); }
@keyframes ittmFieldShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.itt-modal .err-msg { display: none; font-size: .7rem; color: #d92d33; margin-top: .25rem; font-weight: 600; }
.itt-modal .err-msg.show { display: block; animation: ittmShakeIn .35s var(--ease); }
@keyframes ittmShakeIn { 0% { transform: translateX(-4px); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* animated highlight ring while a control is focused */
.itt-modal .field::before, .itt-modal .cc-select::before, .itt-modal .ms::before {
  content: ""; position: absolute; inset: -1.5px; border-radius: calc(var(--field-r) + 1px); z-index: 0;
  padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ring-angle, 0deg), rgba(14, 165, 233, 0) 0deg, var(--primary) 70deg, var(--sky) 130deg, rgba(14, 165, 233, 0) 200deg, rgba(14, 165, 233, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s var(--ease);
}
.itt-modal .field:focus-within::before, .itt-modal .cc-select.open::before, .itt-modal .cc-select:focus-within::before,
.itt-modal .ms.open::before, .itt-modal .ms:focus-within::before { opacity: 1; animation: ittmRingSpin 2.6s linear infinite; }
@property --ring-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes ittmRingSpin { to { --ring-angle: 360deg; } }
.itt-modal .cc-select > .cc-btn, .itt-modal .ms > .ms-control { position: relative; z-index: 1; }
.itt-modal .cc-select > .cc-menu, .itt-modal .ms > .ms-menu { z-index: 40; }
@supports not (background: conic-gradient(from var(--a, 0deg), red, blue)) {
  .itt-modal .field:focus-within::before, .itt-modal .cc-select.open::before, .itt-modal .ms.open::before {
    background: linear-gradient(120deg, var(--primary), var(--sky), var(--primary)); animation: none;
  }
}

/* ---------- multiselect (services interested in) ---------- */
.itt-modal .ms-control {
  min-height: 48px; width: 100%; border: 1px solid #e2e9f5; border-radius: var(--field-r);
  padding: .38rem .8rem .38rem 2.5rem; display: flex; align-items: center; gap: .35rem; flex-wrap: wrap;
  background: linear-gradient(180deg, #fff, #fbfdff); box-shadow: inset 0 1px 2px rgba(2, 6, 23, .04);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease); outline: none; cursor: pointer;
}
.itt-modal .ms.open .ms-control, .itt-modal .ms-control:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14, 165, 233, .12); }
.itt-modal .ms-control.err { border-color: #e0393e; background: #fff7f7; }
.itt-modal .ms-chips { display: contents; }
.itt-modal .ms-ph { color: #9bacc4; font-size: .87rem; font-weight: 500; }
.itt-modal .ms-caret { margin-left: auto; transition: transform .35s var(--ease); color: #7d8ca5; flex: none; }
.itt-modal .ms.open .ms-caret { transform: rotate(180deg); }
.itt-modal .ms-menu {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid #e2e9f5; border-radius: 18px;
  box-shadow: 0 24px 48px -18px rgba(2, 6, 23, .38);
  padding: .35rem; max-height: 190px; overflow-y: auto;
  opacity: 0; transform: translateY(-8px) scale(.985); pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.itt-modal .ms.open .ms-menu { opacity: 1; transform: none; pointer-events: auto; }
.itt-modal .ms-opts { display: grid; grid-template-columns: 1fr; gap: 1px; }
@media (min-width: 520px) { .itt-modal .ms-opts { grid-template-columns: 1fr 1fr; } }
.itt-modal .ms-opt {
  display: flex; align-items: center; gap: .55rem; width: 100%;
  padding: .5rem .6rem; border-radius: 9px; font-size: .82rem; font-weight: 600; color: #2b3c5c;
  transition: background .22s var(--ease), color .22s var(--ease); text-align: left;
}
.itt-modal .ms-opt:hover { background: #f0f9ff; color: var(--primary); }
.itt-modal .ms-box {
  width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #c2cee0; flex: none;
  display: grid; place-items: center; transition: all .25s var(--ease); color: transparent;
}
.itt-modal .ms-opt[aria-selected="true"] .ms-box { background: var(--primary); border-color: var(--primary); color: #fff; }
.itt-modal .ms-done {
  position: sticky; bottom: -.35rem; margin: .3rem -.35rem -.35rem; padding: .45rem .6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .6), #fff 40%);
  border-top: 1px solid #eef2f9; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.itt-modal .ms-count { font-size: .7rem; font-weight: 700; color: var(--muted); }
.itt-modal .ms-done-btn {
  font-size: .72rem; font-weight: 800; color: #fff; background: var(--grad);
  padding: .35rem .8rem; border-radius: 999px; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.itt-modal .ms-done-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(14, 165, 233, .9); }
.itt-modal .ms-menu::-webkit-scrollbar { width: 8px; }
.itt-modal .ms-menu::-webkit-scrollbar-thumb { background: rgba(14, 165, 233, .28); border-radius: 8px; }
.itt-modal .ms-menu::-webkit-scrollbar-track { background: transparent; }
.itt-modal .chip {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700;
  padding: .22rem .5rem .22rem .6rem; border-radius: 999px;
  background: rgba(14, 165, 233, .1); color: var(--primary-600); border: 1px solid rgba(14, 165, 233, .2);
  animation: ittmPanelIn .3s var(--ease) both;
}
.itt-modal .chip button { display: grid; place-items: center; opacity: .7; transition: opacity .2s, transform .2s; }
.itt-modal .chip button:hover { opacity: 1; transform: scale(1.2); }
@keyframes ittmPanelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- unified phone field + country picker ---------- */
.itt-modal .field-phone {
  display: flex; align-items: stretch; width: 100%; min-height: 48px;
  border: 1px solid #e2e9f5; border-radius: var(--field-r);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: inset 0 1px 2px rgba(2, 6, 23, .04);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
  overflow: visible;
}
.itt-modal .field-phone:hover { border-color: #c8d6ea; background: #fff; }
.itt-modal .field-phone:focus-within {
  border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .12), 0 8px 20px -12px rgba(14, 165, 233, .55);
  transform: translateY(-1px);
}
.itt-modal .field-phone:focus-within, .itt-modal .field-phone.open-cc { z-index: 50; }
.itt-modal .field-phone.ok { border-color: rgba(22, 163, 74, .45); }
.itt-modal .field-phone.err-inside { border-color: #e0393e; background: #fffafa; }
.itt-modal .field-phone .cc-select { flex: none; }
.itt-modal .field-phone .cc-select::before { display: none; }
.itt-modal .cc-btn {
  height: 100%; min-height: 46px; display: flex; align-items: center; gap: .4rem;
  padding: 0 .65rem 0 .8rem; border-radius: var(--field-r) 0 0 var(--field-r);
  border: 0; background: transparent; box-shadow: none; position: relative;
  font-size: .85rem; font-weight: 700; color: var(--navy); white-space: nowrap;
  transition: background .3s var(--ease);
}
.itt-modal .cc-btn::after { content: ""; position: absolute; right: 0; top: 22%; bottom: 22%; width: 1px; background: #e2e9f5; }
.itt-modal .field-phone:focus-within .cc-btn::after { background: rgba(14, 165, 233, .28); }
.itt-modal .cc-btn:hover { background: rgba(14, 165, 233, .04); }
.itt-modal .field-phone.open-cc .cc-btn { background: rgba(14, 165, 233, .06); }
.itt-modal .cc-btn:focus-visible { outline: none; }
.itt-modal .cc-flag { font-size: 1.15rem; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif; }
.itt-modal .cc-caret { color: #8fa2bd; transition: transform .35s var(--ease); }
.itt-modal .cc-select.open .cc-caret { transform: rotate(180deg); }
.itt-modal .cc-menu {
  position: absolute; z-index: 40; left: -1px; top: calc(100% + 6px); min-width: 246px;
  background: #fff; border: 1px solid #e2e9f5; border-radius: 18px;
  box-shadow: 0 24px 48px -18px rgba(2, 6, 23, .4);
  padding: .35rem; max-height: 210px; overflow-y: auto;
  opacity: 0; transform: translateY(-8px) scale(.985); pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.itt-modal .cc-select.open .cc-menu { opacity: 1; transform: none; pointer-events: auto; }
.itt-modal .cc-opt {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  padding: .52rem .6rem; border-radius: 10px; text-align: left;
  font-size: .83rem; font-weight: 600; color: #2b3c5c; transition: background .22s var(--ease), color .22s var(--ease);
}
.itt-modal .cc-opt:hover { background: #f0f9ff; color: var(--primary); }
.itt-modal .cc-opt[aria-selected="true"] { background: rgba(14, 165, 233, .08); color: var(--primary-600); }
.itt-modal .cc-name { flex: 1 1 auto; }
.itt-modal .cc-opt .cc-code { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; }
.itt-modal .cc-opt[aria-selected="true"] .cc-code { color: var(--primary-600); }
.itt-modal .cc-menu::-webkit-scrollbar { width: 8px; }
.itt-modal .cc-menu::-webkit-scrollbar-thumb { background: rgba(14, 165, 233, .26); border-radius: 8px; }
.itt-modal .field-phone input.gf {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent; box-shadow: none;
  border-radius: 0 var(--field-r) var(--field-r) 0; padding-left: .85rem; padding-right: 2.4rem;
  min-height: 46px; height: 46px;
}
.itt-modal .field-phone input.gf:hover, .itt-modal .field-phone input.gf:focus { box-shadow: none; transform: none; background: transparent; }
.itt-modal .field-phone input.gf.err { background: transparent; border: 0; }
.itt-modal .field-phone .f-tick { right: 12px; }
@media (max-width: 420px) {
  .itt-modal .field-phone .cc-btn { padding: 0 .5rem 0 .6rem; }
  .itt-modal .field-phone .cc-btn .cc-code { font-size: .8rem; }
  .itt-modal .field-phone .cc-menu { min-width: min(280px, calc(100vw - 4rem)); }
}
@media (max-width: 767px) {
  .itt-modal .gf { font-size: 16px; }           /* stops iOS zooming into the field */
  .itt-modal .gf::placeholder { font-size: 15px; }
}

/* ---------- success state ---------- */
.itt-modal .enq-success { display: none; flex-direction: column; align-items: center; text-align: center; padding: 1.5rem 0; }
.itt-modal .enq-success.show { display: flex; animation: ittmPanelIn .5s var(--ease) both; }
.itt-modal .enq-success h3 { margin-top: 1rem; font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.itt-modal .enq-success p { margin-top: .375rem; font-size: .86rem; color: var(--muted); }
.itt-modal .tick-circle {
  width: 66px; height: 66px; border-radius: 999px; display: grid; place-items: center;
  background: var(--grad); color: #fff; box-shadow: 0 18px 34px -16px rgba(14, 165, 233, .9);
  animation: ittmPopIn .55s var(--ease) both;
}
@keyframes ittmPopIn { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.itt-modal .form-note { display: none; margin-top: .5rem; font-size: .78rem; font-weight: 600; color: #d92d33; }
.itt-modal .form-note.show { display: block; }

/* ---------- Calendly modal ---------- */
#calendlyModal { padding: .75rem; }
.itt-modal .cal-card {
  display: flex; flex-direction: column; max-width: 1120px;
  height: min(94vh, 940px); height: min(94svh, 940px); max-height: 94vh; max-height: 94svh;
}
.itt-modal .cal-head {
  flex: none; padding: .875rem 1.25rem; border-bottom: 1px solid rgba(2, 132, 199, .1);
  display: flex; align-items: center; gap: .75rem; background: var(--grad-soft);
}
.itt-modal .cal-head .brand-plate img { height: 2.25rem; width: auto; }
.itt-modal .cal-title { font-size: .98rem; font-weight: 800; line-height: 1.25; color: var(--ink); }
.itt-modal .cal-sub { font-size: .74rem; color: var(--muted); }
#calendlyFrame { flex: 1 1 auto; min-height: 0; width: 100%; }
#calendlyFrame iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) {
  #calendlyModal { padding: .35rem; }
  .itt-modal .cal-card { height: 97vh; height: 97svh; max-height: 97vh; max-height: 97svh; border-radius: 18px; }
  .itt-modal .cal-head { padding: .55rem .75rem; }
  .itt-modal .cal-head .brand-plate { display: none; }
  .itt-modal .cal-sub { display: none; }
  #calendlyModal .modal-close { top: 8px; right: 8px; width: 32px; height: 32px; }
}

/* ---------- Brochure modal (gated company profile PDF) ---------- */
.itt-modal .bro-card { max-width: 520px; max-height: 94vh; max-height: 94svh; display: flex; flex-direction: column; }
.itt-modal .bro-sub { font-size: .8rem; color: var(--muted); }
.itt-modal .bro-body { padding: 1.25rem; overflow-y: auto; }
.itt-modal .bro-form { display: grid; gap: .875rem; }
.itt-modal .cta.w-full { width: 100%; }
.itt-modal .bro-note { font-size: .75rem; color: var(--muted); text-align: center; }
@media (min-width: 640px) { .itt-modal .bro-body { padding: 1.5rem; } }

/* footer buttons: "Get a Consultation" + "Download Brochure", stacked in the Get Started column */
.footer-cta { display: flex; flex-direction: column; gap: .6rem; margin: 1.25rem 0 1.5rem; max-width: 280px; }
.footer-cta .btn { width: 100%; justify-content: center; font-size: .9rem; padding: .7rem 1.1rem; gap: .5rem; }
.footer-cta .btn svg { width: 1em; height: 1em; flex: none; }

@media (prefers-reduced-motion: reduce) {
  .itt-modal *, .itt-modal *::before, .itt-modal *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   "Schedule a Consultation" CTA — sits beside every quote CTA. Styled in the
   site's own .btn vocabulary (glass outline on the dark hero / CTA bands, like
   .cta-whatsapp-btn) rather than the LP's pill, so it belongs to this design.
   ========================================================================== */
/* One solid, brand-navy "Schedule Appointment" button everywhere — the glass
   outline was unreadable against several backgrounds (light sections, photo
   banners). A solid navy fill (the logo's own ink colour) reads clearly on
   light and dark/photo backgrounds alike, so no per-section variant is
   needed any more. */
.btn.btn-consult {
  background: linear-gradient(135deg, #14356e 0%, #0b2450 100%); border: 1px solid rgba(255, 255, 255, .18); color: #fff;
  font-weight: 800; box-shadow: 0 12px 26px -12px rgba(11, 36, 80, .8), inset 0 1px 0 rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.btn.btn-consult:hover {
  background: linear-gradient(135deg, #1c4a94 0%, #123166 100%); border-color: rgba(255, 255, 255, .35); color: #fff; transform: translateY(-3px);
  box-shadow: 0 18px 34px -14px rgba(11, 36, 80, .9), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn.btn-consult svg { width: 1em; height: 1em; flex: none; }
.itt-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

/* ==========================================================================
   Floating Call button, stacked above the WhatsApp bubble (as on the LP).
   Same 22px inset as .wa-bubble; the 92px offset clears the 58px bubble.
   ========================================================================== */
.itt-float-call {
  position: fixed; right: 22px; bottom: 92px; z-index: 1000;
  width: 50px; height: 50px; border-radius: 999px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, #0b7a3e, #16a34a);
  box-shadow: var(--shadow-lg);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.itt-float-call:hover, .itt-float-call:focus-visible { color: #fff; transform: translateY(-4px) scale(1.07); }
.itt-float-call::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px; z-index: -1;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); animation: ittmCallPulse 2.4s ease-out infinite;
}
@keyframes ittmCallPulse {
  0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); }
  70%  { box-shadow: 0 0 0 16px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
.itt-float-call svg { display: block; transform-origin: 50% 60%; }
.itt-float-call:hover svg { animation: ittmHandsetRing .7s var(--ease); }
.itt-float-call .float-label {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%) translateX(6px);
  white-space: nowrap; font-size: .78rem; font-weight: 800; letter-spacing: .01em;
  padding: .42rem .75rem; border-radius: 999px; color: #fff;
  background: rgba(2, 6, 23, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}
@media (hover: hover) and (min-width: 768px) {
  .itt-float-call:hover .float-label, .itt-float-call:focus-visible .float-label { opacity: 1; transform: translateY(-50%) translateX(0); }
}
@media (max-width: 640px) {
  .itt-float-call { right: 16px; bottom: 78px; width: 46px; height: 46px; }
  .itt-float-call svg { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .itt-float-call::after, .itt-float-call:hover svg { animation: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   MODALS: NO LOGO, TIGHTER ON PHONES (2026-10-09, client request)
   The IT Traders logo is removed from every popup, and on phones the
   padding/gaps shrink so the enquiry and brochure forms fit without an
   inner scrollbar (they overflowed by up to 109px / 72px before).
   ══════════════════════════════════════════════════════════════════════ */
.itt-modal .brand-plate,
.itt-modal .enq-body-brand,
.itt-modal .enq-brand{ display:none !important }
/* Closed dropdowns were only faded out, so they still stretched the form
   and caused a phantom scrollbar under it. Take them out of layout. */
.itt-modal .cc-select:not(.open) > .cc-menu,
.itt-modal .ms:not(.open) > .ms-menu{ display:none }
@media (max-width:767px){
  .itt-modal .enq-body,
  .itt-modal .bro-body{ padding:.9rem .9rem 1rem }
  .itt-modal .enq-heading{ font-size:1.12rem }
  .itt-modal .enq-form{ margin-top:.65rem; gap:.5rem }
  .itt-modal .bro-form{ gap:.5rem }
  .itt-modal input.gf,
  .itt-modal .field input.gf{ height:44px; min-height:44px }
  .itt-modal .field-phone{ min-height:44px }
  .itt-modal .field-phone input.gf{ height:42px; min-height:42px }
  .itt-modal .field textarea.gf{ min-height:60px; height:60px }
  .itt-modal .cal-head{ padding:.55rem .75rem }
}
/* Very short phones (iPhone SE 1st gen, 320x568): last 32px. */
@media (max-width:767px) and (max-height:600px){
  .itt-modal .enq-form{ gap:.4rem }
  .itt-modal .field textarea.gf{ min-height:48px; height:48px }
  .itt-modal .enq-sub{ display:none }
}

/* Dark-blue 1px border on every popup field (client request 2026-10-09).
   Validation colours keep winning; the phone input sits inside .field-phone,
   which carries the border, so it stays borderless. */
.itt-modal input.gf,
.itt-modal textarea.gf,
.itt-modal select,
.itt-modal .ms-control,
.itt-modal .field-phone{ border:1px solid #1e3a8a }
.itt-modal .field-phone input.gf{ border:0 }
.itt-modal .field.ok .gf{ border-color:rgba(22,163,74,.6) }
.itt-modal input.gf.err,
.itt-modal textarea.gf.err{ border-color:#e0393e }

/* IT Traders logo under "Call now" in the enquiry popup (client request
   2026-10-10). New class only; nothing existing is restyled. */
.itt-modal .itt-enq-footlogo{ display:flex; justify-content:center; margin:.35rem 0 0; padding:0 }
.itt-modal .itt-enq-footlogo img{ display:block; height:34px; width:auto; max-width:160px }
@media (max-width:767px){ .itt-modal .itt-enq-footlogo img{ height:28px } }

/* ══════════════════════════════════════════════════════════════════════
   ENQUIRY POPUP LOGO ON TOP (2026-10-14, client request)
   All screen sizes: logo shows above the heading, bottom logo hidden.
   ══════════════════════════════════════════════════════════════════════ */
@media all{
  .itt-modal .enq-body .enq-body-brand{ display:flex !important; justify-content:center; margin:0 0 .6rem }
  .itt-modal .enq-body .enq-body-brand .brand-plate{ display:inline-flex !important }
  .itt-modal .enq-body .enq-body-brand .brand-plate img{ height:34px; width:auto; max-width:160px }
  .itt-modal .itt-enq-footlogo{ display:none }
}
@media (max-width:767px){ .itt-modal .enq-body .enq-body-brand .brand-plate img{ height:28px } .itt-modal .enq-body .enq-body-brand{ margin:0 0 .4rem } }

/* Desktop (≥768px): bigger logo, pulled up into the top padding, no plate border/shadow (2026-10-14) */
@media (min-width:768px){
  .itt-modal .enq-body .enq-body-brand{ margin:-.9rem 0 .7rem }
  .itt-modal .enq-body .enq-body-brand .brand-plate{ padding:0; border:0; box-shadow:none; background:transparent; border-radius:0 }
  .itt-modal .enq-body .enq-body-brand .brand-plate::before,
  .itt-modal .enq-body .enq-body-brand .brand-plate::after{ display:none }
  .itt-modal .enq-body .enq-body-brand .brand-plate img{ height:56px; max-width:240px }
}

/* Phones (≤767px): logo a little bigger, no plate border/shadow (2026-10-14) */
@media (max-width:767px){
  .itt-modal .enq-body .enq-body-brand .brand-plate{ padding:0; border:0; box-shadow:none; background:transparent; border-radius:0 }
  .itt-modal .enq-body .enq-body-brand .brand-plate::before,
  .itt-modal .enq-body .enq-body-brand .brand-plate::after{ display:none }
  .itt-modal .enq-body .enq-body-brand .brand-plate img{ height:40px; max-width:200px }
}
