/* Shared inquiry form (home popup + contact.html). Script: assets/inquiry-form.js. Direction A: dark. */
.if {
  --if-ink: var(--L-ink, #f4f6ff); --if-mist: var(--L-mist, #a7b0cc); --if-dim: var(--L-dim, #7f89a6); --if-gold: #ffbe0b; --if-ease: cubic-bezier(.2, .75, .2, 1);
  container-type: inline-size; display: grid; gap: 1.1rem; min-width: 0;
}
.if[hidden] { display: none; }
.if-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; inset-inline-start: -100vw; }
.if-services { display: grid; gap: .5rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.if-services legend { float: left; width: 100%; padding: 0; color: var(--if-ink); font-size: .9rem; font-weight: 800; }
html[dir="rtl"] .if-services legend { float: right; }
.if-help { color: var(--if-dim); font-size: .8rem; }
.if-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin-top: .25rem; }
@container (min-width: 40rem) { .if-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.if-chip { position: relative; display: block; min-width: 0; cursor: pointer; perspective: 600px; }
.if-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.if-chip-face {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .65rem; height: 100%;
  padding: .75rem 2rem .75rem .75rem; border-radius: 1rem; background: var(--L-surface, #0a0e18); border: 1px solid rgb(var(--L-ink-rgb, 255 255 255) / .1);
  transition: border-color .25s, background .25s, transform .3s var(--if-ease), box-shadow .3s; pointer-events: none;
}
html[dir="rtl"] .if-chip-face { padding: .75rem .75rem .75rem 2rem; }
.if-chip-ico { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: .75rem; color: var(--L-indigo, #8e9bff);
  background: rgb(59 77 255 / .12); border: 1px solid rgb(142 155 255 / .25); transition: color .25s, background .25s, border-color .25s; }
.if-chip-ico svg { width: 1.25rem; height: 1.25rem; }
.if-chip-txt { display: grid; min-width: 0; gap: .1rem; }
.if-chip-txt b { color: var(--if-ink); font-size: .88rem; font-weight: 800; line-height: 1.45; }
.if-chip-txt small { color: var(--if-dim); font-size: .72rem; line-height: 1.5; }
.if-chip-tick { position: absolute; top: .6rem; inset-inline-end: .6rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1.5px solid rgb(var(--L-ink-rgb, 255 255 255) / .22); transition: background .2s, border-color .2s; }
.if-chip-tick::after { content: ""; position: absolute; left: 50%; top: 45%; width: .28rem; height: .5rem; border: solid #120f02; border-width: 0 2px 2px 0; transform: translate(-50%, -50%) rotate(45deg) scale(0); transition: transform .25s var(--if-ease); }
.if-chip:hover .if-chip-face { border-color: rgb(142 155 255 / .35); transform: translateY(-2px); }
.if-chip input:checked + .if-chip-face { border-color: #5b6bff; background: linear-gradient(160deg, rgb(59 77 255 / .24), rgb(59 77 255 / .08)); box-shadow: inset 0 0 0 1px rgb(91 107 255 / .45), 0 14px 30px -18px #3b4dff; }
.if-chip input:checked + .if-chip-face .if-chip-ico { color: var(--L-gold-ink, var(--if-gold)); background: rgb(255 190 11 / .12); border-color: rgb(255 190 11 / .35); }
.if-chip input:checked + .if-chip-face .if-chip-tick { background: var(--if-gold); border-color: var(--if-gold); }
.if-chip input:checked + .if-chip-face .if-chip-tick::after { transform: translate(-50%, -50%) rotate(45deg) scale(1); }
.if-chip input:focus-visible + .if-chip-face { outline: 2px solid var(--if-gold); outline-offset: 2px; }
.if-chip--alone .if-chip-face { border-style: dashed; }
.if-services.is-invalid .if-chip-face { border-color: rgb(255 190 11 / .55); }
@container (max-width: 21rem) {
  .if-chip-face, html[dir="rtl"] .if-chip-face { grid-template-columns: minmax(0, 1fr); align-content: start; gap: .5rem; padding: .7rem; }
  .if-chip-ico { width: 2.1rem; height: 2.1rem; }
}
.if-row { display: grid; gap: 1.1rem; }
@container (min-width: 30rem) { .if-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.if-field { display: grid; gap: .5rem; min-width: 0; }
.if-field label { color: var(--if-ink); font-size: .85rem; font-weight: 800; }
.if-field label small { color: var(--if-dim); font-weight: 600; font-size: .78rem; }
.if-field input, .if-field textarea {
  width: 100%; min-width: 0; padding: .85rem 1rem; border-radius: 1rem; background: var(--L-surface, #0a0e18); border: 1px solid rgb(var(--L-ink-rgb, 255 255 255) / .1);
  color: var(--if-ink); font: inherit; font-size: 1rem; line-height: 1.6; transition: border-color .25s, box-shadow .25s;
}
.if-field input[dir="ltr"] { text-align: left; }
.if-field textarea { resize: vertical; min-height: 7rem; }
.if-field :is(input, textarea)::placeholder { color: rgb(var(--L-mist-rgb, 167 176 204) / .5); }
.if-field :is(input, textarea):focus { outline: none; border-color: #5b6bff; box-shadow: 0 0 0 4px rgb(59 77 255 / .18); }
.if-field [aria-invalid="true"] { border-color: var(--if-gold); }
.if-error { color: var(--L-gold-ink, var(--if-gold)); font-size: .9rem; font-weight: 700; line-height: 1.8; }
.if-error[hidden] { display: none; }
.if-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.4rem; padding: 0 2rem; border-radius: 99px;
  background: linear-gradient(120deg, #2d40f0, #4f5fff); color: #fff; font-weight: 900; font-size: 1rem;
  box-shadow: 0 18px 50px -16px rgb(59 77 255 / .9); transition: transform .25s var(--if-ease), box-shadow .3s;
}
.if-submit svg { width: 1.2rem; height: 1.2rem; }
html[dir="rtl"] .if-submit svg { transform: scaleX(-1); }
.if-submit:hover { transform: translateY(-2px); box-shadow: 0 0 0 8px rgb(59 77 255 / .14), 0 22px 60px -14px rgb(59 77 255 / 1); }
.if-submit:disabled { opacity: .7; cursor: progress; transform: none; }
@container (min-width: 30rem) { .if-submit { justify-self: start; } }
.if-privacy { color: var(--if-dim); font-size: .8rem; line-height: 1.7; }
@media (prefers-reduced-motion: reduce) { .if-chip-face, .if-chip-tick::after, .if-submit { transition: none; } }
