/* ==========================================================================
   Contact page - supplemental styles
   Layered on top of style.css. Reuses existing tokens/components
   (--brand, --ink-*, .card, .icon-tile, .btn, .hero-badge, .hw-fs-*) and adds
   presentation only for the contact form: sectioned grouping, a step
   overview, optional-field tags, checked/focus/error states, and a sticky
   sidebar. No field names/types/required attributes are touched here -
   CSS only.
   ========================================================================== */

/* ---------- Form card shell ---------- */
.hw-contact-card {
  position: relative;
  overflow: hidden;
}
.hw-contact-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--brand-300));
}

.hw-fs-card-head {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.hw-fs-card-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* Decorative overview of what's ahead - reduces "how long is this" anxiety */
.hw-fs-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hw-fs-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-500);
}
.hw-fs-steps li:not(:last-child)::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--line);
  margin-left: 8px;
}
.hw-fs-steps-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .hw-fs-steps li:not(:last-child)::after { display: none; }
}

/* ---------- Field group sections ---------- */
.hw-fs-section {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.hw-fs-section + .hw-fs-section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hw-fs-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  margin: 0 0 20px;
}
.hw-fs-section-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink-900);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hw-fs-section-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hw-fs-section-icon svg { width: 18px; height: 18px; }
.hw-fs-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-900);
}

/* ---------- Required / optional hierarchy ---------- */
.hw-fs-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  margin-bottom: 7px;
}
.hw-fs-label-row label {
  margin-bottom: 0;
}
.hw-fs-optional-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-500);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
  flex-shrink: 0;
}
.hw-fs-hint {
  font-size: 0.78rem;
  color: var(--ink-500);
  margin-top: 6px;
  display: block;
}

/* ---------- Focus & validation polish ---------- */
.hw-fs-field:focus-within label {
  color: var(--brand-700);
}
.hw-fs-field:has(> [data-fs-error]:not(:empty)) input,
.hw-fs-field:has(> [data-fs-error]:not(:empty)) select,
.hw-fs-field:has(> [data-fs-error]:not(:empty)) textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(179, 65, 58, 0.12);
}

/* ---------- "What you need" selectable cards ---------- */
.hw-fs-radio-group label.hw-fs-radio {
  display: flex;
}
.hw-fs-radio-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--mist);
  color: var(--ink-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color .15s ease, color .15s ease;
}
.hw-fs-radio-icon svg { width: 18px; height: 18px; }
.hw-fs-radio-text { flex: 1; }
.hw-fs-radio-group label.hw-fs-radio:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-tint);
  box-shadow: 0 0 0 3px rgba(83, 126, 77, 0.12);
}
.hw-fs-radio-group label.hw-fs-radio:has(input:checked) .hw-fs-radio-icon {
  background: var(--brand);
  color: #fff;
}
.hw-fs-radio-group label.hw-fs-radio:has(input:focus-visible) {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---------- Submit ---------- */
.hw-fs-submit-row {
  margin-top: 10px;
}
.hw-fs-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hw-fs-submit-icon {
  display: inline-flex;
}
.hw-fs-submit-icon svg { width: 16px; height: 16px; }
@media (max-width: 600px) {
  .hw-fs-submit { width: 100%; justify-content: center; }
}

/* ---------- Sidebar ---------- */
@media (min-width: 901px) {
  .hw-side-sticky {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
  }
}
.hw-side-call-btn {
  margin-top: 18px;
}
.hw-side-call-btn svg { width: 18px; height: 18px; }
.hw-form-note {
  margin-top: 18px;
  padding: 10px 14px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
