/* ============================================================
   62-referral — Refer a Friend form (#refer) on /refer-a-friend/.
   Field, error and success styles reuse the benefits-check form
   vocabulary in 11-insurance.css; this file adds the panel and
   the textarea.
   ============================================================ */

.sec-62-referral {
  padding-top: 0;
  /* Continues the bone prose section above it */
  background: var(--bone);
}

.sec-62-referral__panel {
  max-width: 44rem;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow-wrap: anywhere;
}

.sec-62-referral__panel h2 {
  font-size: var(--fs-h4);
  margin-bottom: 0.5rem;
}

.sec-62-referral__lead {
  color: var(--text-on-bone-dim);
  margin-bottom: 1.4rem;
}

.sec-62-referral .sec-11-insurance__field small.sec-11-insurance__field-error {
  color: #b03a3a;
  font-size: 0.8rem;
}
.sec-62-referral .sec-11-insurance__field small.sec-11-insurance__field-error:empty {
  display: none;
}

.sec-62-referral textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--line-bone);
  border-radius: 12px;
  background: var(--bone);
  color: var(--text-on-bone);
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.sec-62-referral textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}
