/* Contact form: required-field markers, country-code phone picker, "I'm not a robot" box.
   Loaded as contact-form.css?v=N (assets are cached as immutable) — bump N when this file changes. */

.req { color: inherit; margin-left: 2px; font-weight: 700; }

/* ── Phone field with country code ── */
.phone-field {
  position: relative;
  display: flex;
  align-items: stretch;
  border: 1.5px solid #dde5f8;
  border-radius: 10px;
  background: #fff;
  transition: border-color .2s;
}
.phone-field:focus-within,
.phone-field.is-open { border-color: var(--blue); } /* same focus colour as the other inputs */

.form-group .phone-field input#fmobile {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  border-radius: 0 10px 10px 0;
  background: transparent;
}

.phone-cc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0 12px 0 14px;
  border: 0;
  border-right: 1.5px solid #dde5f8;
  border-radius: 9px 0 0 9px;
  background: #fff;
  color: var(--navy);
  font: 700 .86rem 'DM Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.phone-cc:hover { background: #f6f7fa; }
.phone-cc:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.phone-cc-iso { font-size: .72rem; letter-spacing: .04em; color: #64748b; }
.phone-cc i { font-size: .62rem; color: #94a3b8; transition: transform .2s; }
.phone-field.is-open .phone-cc i { transform: rotate(180deg); }

.phone-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: -1.5px;
  z-index: 1001;
  width: max(100%, 300px);
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(10, 30, 78, .16);
  overflow: hidden;
}
.phone-panel[hidden] { display: none; }

.form-group .phone-panel .phone-search {
  display: block;
  width: calc(100% - 20px);
  margin: 10px;
  padding: 10px 12px;
  border: 1.5px solid #dde5f8;
  border-radius: 8px;
  font-size: .86rem;
}
.form-group .phone-panel .phone-search:focus { border-color: var(--blue); }

.phone-list { list-style: none; margin: 0; padding: 2px 0 6px; max-height: 236px; overflow-y: auto; }
.phone-opt {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: .88rem;
  color: var(--navy);
  cursor: pointer;
}
.phone-opt-iso { font-size: .74rem; font-weight: 700; color: #475569; letter-spacing: .03em; }
.phone-opt-dial { font-size: .8rem; color: #94a3b8; }
.phone-opt.is-active,
.phone-opt:hover { background: #f3f5f9; }
.phone-opt[aria-selected="true"] { font-weight: 700; }
.phone-opt[aria-selected="true"] .phone-opt-iso { color: var(--navy); }
.phone-empty { padding: 10px 14px; font-size: .82rem; color: #64748b; }

.phone-note {
  margin: 0;
  padding: 10px 14px 12px;
  border-top: 1px solid #eef2f7;
  background: #fafbfe;
  font-size: .74rem;
  line-height: 1.45;
  color: #64748b;
}

/* Floating buttons would sit on top of the open country list */
.phone-panel-open .whatsapp-float,
.phone-panel-open .scroll-top { visibility: hidden; }

/* ── "I'm not a robot" box ── */
.human-check {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 300px;
  margin: 2px 0 18px;
  padding: 12px 14px;
  border: 1.5px solid #dde5f8;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  user-select: none;
}
.human-box {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 2px solid #94a3b8;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
.human-box:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.human-box.is-checking {
  border: 2.5px solid #dde5f8;
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: human-spin .7s linear infinite;
}
.human-box.is-checked { border-color: var(--green); background: var(--green); }
.human-box.is-checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 1px;
  width: 7px;
  height: 13px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.human-label { font-size: .9rem; font-weight: 500; color: var(--navy); }
@keyframes human-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .human-box.is-checking { animation: none; } }

/* Send stays disabled until the box is ticked */
.contact-form .form-submit.is-locked,
.contact-form .form-submit.is-locked:hover {
  background: var(--navy);
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
