/* ============================================================
   CONTALIA — Forms
   ============================================================ */
.form { position: relative; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--f-head); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-300); }
.field label .req { color: var(--violet-soft); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--white);
  background: rgba(8,12,28,0.6);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  padding: 14px 16px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  min-height: 52px;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-600); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet-soft);
  background: rgba(12,18,42,0.85);
  box-shadow: 0 0 0 3px rgba(124,77,255,0.16);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%239aa3c7' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.field.invalid input,
.field.invalid select { border-color: #ff6b81; box-shadow: 0 0 0 3px rgba(255,107,129,0.14); }
.field .err-msg { font-size: 0.78rem; color: #ff8a9b; display: none; }
.field.invalid .err-msg { display: block; }

/* Phone (intl-tel-input) */
.iti { width: 100%; }
.iti__tel-input,
input.iti-phone { width: 100%; }
.iti--separate-dial-code .iti__selected-flag { background: rgba(8,12,28,0.6); border-radius: 13px 0 0 13px; }
.iti__country-list { background: var(--bg-850); color: var(--ink-100); border: 1px solid var(--line-strong); }
.iti__country.iti__highlight { background: rgba(124,77,255,0.2); }
.iti__dial-code { color: var(--ink-400); }

/* Consent + honeypot */
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.82rem; color: var(--ink-400); line-height: 1.5; cursor: pointer; }
.consent input[type="checkbox"] {
  appearance: none;
  flex: none;
  width: 22px; height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(8,12,28,0.6);
  margin-top: 1px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  position: relative;
}
.consent input[type="checkbox"]:checked { background: var(--grad); border-color: transparent; }
.consent input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.consent input[type="checkbox"]:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 2px; }
.consent a { color: var(--violet-soft); border-bottom: 1px solid currentColor; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.form .btn { margin-top: 6px; width: 100%; justify-content: center; }
.form-status { font-size: 0.9rem; padding: 12px 16px; border-radius: 12px; display: none; }
.form-status.show { display: block; }
.form-status.error { background: rgba(255,107,129,0.12); border: 1px solid rgba(255,107,129,0.3); color: #ffb3bf; }
.form-status.ok { background: rgba(70,227,160,0.1); border: 1px solid rgba(70,227,160,0.3); color: #8ff0c4; }
.form .fineprint { font-size: 0.78rem; color: var(--ink-600); text-align: center; }

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}
