/*
  Styling for the "Type of care needed" / "Who will be funding care?" /
  dementia fields added to the enquiry forms (per-home, Book a Visit,
  general contact). Kept in its own file, separate from the main bundle,
  so it's easy to find and adjust independently.
*/

.carehq-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: #f4f9f8;
  border: 1px solid #d9ece8;
  border-left: 4px solid #2f9c8f;
  border-radius: 10px;
}

.carehq-fields__heading {
  flex-basis: 100%;
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2f9c8f;
}

.carehq-fields__field {
  flex: 1 1 220px;
  min-width: 200px;
}

.carehq-fields__field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #23453f;
}

.carehq-fields__field select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232f9c8f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 8 10 13 15 8'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  background-size: 14px;
  padding: 0.6rem 2.25rem 0.6rem 0.85rem;
  border: 1px solid #c7ded9;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1c2e2a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.carehq-fields__field select:focus {
  outline: none;
  border-color: #2f9c8f;
  box-shadow: 0 0 0 3px rgba(47, 156, 143, 0.18);
}

.carehq-fields__checkbox {
  flex: 1 1 220px;
  min-width: 200px;
  display: flex;
  align-items: center;
  padding-top: 1.6rem;
}

.carehq-fields__checkbox label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #23453f;
  cursor: pointer;
}

.carehq-fields__checkbox input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #2f9c8f;
  cursor: pointer;
}

@media (max-width: 640px) {
  .carehq-fields {
    padding: 1rem;
    gap: 1rem;
  }
}
