/* =========================================================
   TalAIot contact / demo form — used by every page that has
   <div data-contact-form></div>. Colours: /brand/brand.css tokens.
   ========================================================= */
.cf { text-align: left; max-width: 640px; margin: 36px auto 0; }
.cf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf__full { grid-column: 1 / -1; }
@media (max-width: 600px) { .cf__grid { grid-template-columns: 1fr; } }

.cf__field { display: flex; flex-direction: column; gap: 6px; }
.cf__label { font-size: 13.5px; font-weight: 600; color: var(--tl-ink); }
.cf__label em { font-style: normal; font-weight: 500; color: var(--tl-muted); }
.cf__input {
  font: inherit; font-size: 15.5px; color: var(--tl-ink);
  background: var(--tl-white); border: 1px solid rgb(var(--tl-ink-rgb) / .16); border-radius: 12px;
  padding: 12px 14px; width: 100%; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.cf__input::placeholder { color: rgb(var(--tl-ink-rgb) / .38); }
.cf__input:focus { outline: none; border-color: var(--tl-accent); box-shadow: 0 0 0 4px rgb(var(--tl-accent-rgb) / .14); }
textarea.cf__input { min-height: 110px; resize: vertical; line-height: 1.5; }
select.cf__input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236A7180' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.cf__field.is-bad .cf__input { border-color: var(--tl-alert); box-shadow: 0 0 0 4px rgb(var(--tl-alert-rgb) / .10); }
.cf__err { font-size: 12.5px; color: var(--tl-alert); min-height: 0; }

.cf__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--tl-ink-2); cursor: pointer; }
.cf__consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--tl-accent); }
.cf__consent.is-bad { color: var(--tl-alert); }

.cf__hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.cf__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 6px; }
.cf__note { font-size: 13px; color: var(--tl-muted); }
.cf__note a { color: var(--tl-accent-text); }
.cf__submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 15.5px; font-weight: 600; color: var(--tl-white); background: var(--tl-ink);
  box-shadow: 0 10px 30px -12px rgb(var(--tl-ink-rgb) / .6);
  transition: transform .25s, box-shadow .25s, opacity .2s;
}
.cf__submit:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgb(var(--tl-accent-rgb) / .7); }
.cf__submit[disabled] { opacity: .65; cursor: progress; transform: none; }
.cf__spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .35); border-top-color: var(--tl-white); animation: cfspin .8s linear infinite; display: none; }
.cf__submit[disabled] .cf__spin { display: inline-block; }
@keyframes cfspin { to { transform: rotate(360deg); } }
@media (max-width: 600px) { .cf__submit { width: 100%; } }

.cf__alert { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; background: rgb(var(--tl-alert-rgb) / .08); color: var(--tl-alert); }
.cf__alert.is-on { display: block; }

.cf__done { display: none; text-align: center; padding: 30px 10px 6px; }
.cf.is-done form { display: none; }
.cf.is-done .cf__done { display: block; }
.cf__check { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; background: var(--tl-accent-soft); display: grid; place-items: center; color: var(--tl-accent-text); }
.cf__done h3 { font-family: var(--tl-font-brand); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--tl-ink); }
.cf__done p { color: var(--tl-ink-2); margin: 0 0 18px; }
.cf__again { background: none; border: 0; font: inherit; font-size: 14px; color: var(--tl-accent-text); text-decoration: underline; cursor: pointer; }

.cf__alt { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgb(var(--tl-ink-rgb) / .08); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; font-size: 14.5px; color: var(--tl-muted); }
/* WhatsApp click-to-chat: WhatsApp's own green, so people recognise it at a glance */
.cf__wa {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; text-decoration: none; color: #fff; background: #25D366;
  box-shadow: 0 8px 22px -12px rgb(37 211 102 / .9); transition: transform .2s, background .2s, box-shadow .2s;
}
.cf__wa:hover { background: #1EBE5A; transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgb(37 211 102 / 1); }
.cf__wa:focus-visible { outline: 3px solid rgb(37 211 102 / .45); outline-offset: 2px; }
.cf__waicon { flex: none; }
