/* =====================================================================
   AutoHive estate enquiry form
   Tint per division with --ah-form-accent on :root.
   ===================================================================== */

.ahf {
  background: #FFFFFF;
  border: 1px solid #E3E8F0;
  border-top: 4px solid var(--ah-form-accent, #009688);
  border-radius: 14px;
  padding: 26px 28px 24px;
  max-width: 820px;
}
.ahf__title { margin: 0; font-size: 1.25rem; font-weight: 900; color: #0A1F44; line-height: 1.3; }
.ahf__lede  { margin: 7px 0 0; color: #33415E; font-size: .95rem; max-width: 60ch; }

.ahf__row {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.ahf__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ahf__field--wide { grid-column: 1 / -1; margin-top: 16px; }
.ahf__row .ahf__field--wide { margin-top: 0; }
.ahf__field label { font-weight: 700; font-size: .92rem; color: #0A1F44; }
.ahf__opt { font-weight: 400; color: #5A6A85; font-size: .86rem; }

.ahf input, .ahf select, .ahf textarea {
  width: 100%; max-width: 100%;
  padding: 11px 13px;
  font: inherit; font-size: 1rem; color: #0A1F44;
  background: #FFFFFF; border: 1px solid #E3E8F0; border-radius: 10px;
}
.ahf textarea { resize: vertical; min-height: 80px; }
.ahf input:focus-visible, .ahf select:focus-visible, .ahf textarea:focus-visible {
  outline: 3px solid var(--ah-form-accent, #009688);
  outline-offset: 1px;
  border-color: var(--ah-form-accent, #009688);
}

.ahf__consent { margin-top: 20px; display: grid; gap: 12px; }
.ahf__check {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px;
  align-items: start; font-size: .88rem; color: #33415E; cursor: pointer;
}
.ahf__check input { width: 19px; height: 19px; margin-top: 2px; flex: none; }

.ahf__actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ahf__btn {
  font: inherit; font-weight: 900; font-size: 1rem;
  padding: 13px 30px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ah-form-accent, #009688); color: #FFFFFF;
}
.ahf__btn:hover { filter: brightness(.93); }
.ahf__btn[disabled] { opacity: .55; cursor: progress; }
.ahf__btn:focus-visible { outline: 3px solid #0A1F44; outline-offset: 2px; }

.ahf__note { margin: 0; font-size: .9rem; color: #33415E; flex: 1 1 240px; }
.ahf__note.is-ok  { color: #1B7A54; }
.ahf__note.is-bad { color: #C62828; }
.ahf__note a { color: inherit; }

@media (max-width: 560px) {
  .ahf { padding: 20px 18px 18px; border-radius: 12px; }
  .ahf__row { gap: 13px; margin-top: 18px; }
  .ahf__btn { width: 100%; }
}
