/* ============================================================
   Phone field + WhatsApp opt-in on the contact forms
   (contact.html and uae/contact.html only). Loaded after the
   vendored intl-tel-input stylesheet. Bump ?v= on any change:
   /assets/css/* is cached as immutable.
   ============================================================ */

/* The picker wraps the input in an inline-block .iti; fill the field. */
.iti { display: block; width: 100%; }
.iti .iti__tel-input { width: 100%; }

/* Country picker colours, matched to the site tokens. */
.iti {
  --iti-border-color: var(--line);
  --iti-country-selector-bg: var(--white);
  --iti-icon-color: var(--charcoal-3);
  --iti-hover-color: var(--tango-soft);
}
.iti__country-list,
.iti__search-input { font-family: var(--font-sans); font-size: 14px; color: var(--black); }

/* The picker's own search box sits inside .form__field, so undo the
   site's text-input rule for it and restore the picker's spacing. */
.form__field .iti__search-input {
  padding: 10px calc(var(--iti-spacer-horizontal) * 2 + var(--iti-clear-icon-size)) 10px calc(var(--iti-spacer-horizontal) * 2 + var(--iti-globe-icon-size));
  border: 0;
  border-radius: 0;
  background: transparent;
}
.form__field .iti__search-input:focus { outline: 0; }

/* WhatsApp opt-in row (main contact form). */
.form__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--charcoal);
  cursor: pointer;
}
.form__check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--tango);
  cursor: pointer;
}
.form__check input:focus-visible { outline: 2px solid var(--tango); outline-offset: 2px; }
