
/* Wholistic Care Services — Referral Page */

.referral-new-hero {
  padding: clamp(75px, 9vw, 120px) 0;
  background: #092452;
  color: white;
}

.referral-new-hero h1 {
  color: white;
  max-width: 850px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.12;
  margin: 16px 0 25px;
}

.referral-new-hero > .section-wrap > p:not(.eyebrow) {
  color: #d7e4f3;
  max-width: 680px;
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.referral-new-hero .eyebrow {
  color: #57c9f3;
}

.referral-new-section {
  padding: 85px 0;
}

.referral-new-light {
  background: #f1f6fb;
}

.referral-new-heading {
  max-width: 760px;
  text-align: center;
  margin: 0 auto 40px;
}

.referral-new-heading h2 {
  color: #092452;
  font-size: clamp(30px, 3.5vw, 46px);
  margin: 12px 0 20px;
}

.referral-new-heading > p:last-child {
  color: #56677c;
  line-height: 1.8;
}

.referral-new-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.referral-new-card {
  background: white;
  border: 1px solid #e2ebf4;
  border-radius: 18px;
  padding: 35px 30px;
  box-shadow: 0 12px 35px rgba(9,36,82,.07);
}

.referral-new-card > span {
  display: block;
  color: #1684b5;
  font-weight: 700;
  margin-bottom: 20px;
}

.referral-new-card h3 {
  color: #092452;
  font-size: 23px;
  margin: 0 0 12px;
}

.referral-new-card p {
  color: #56677c;
  line-height: 1.8;
}

.referral-new-form-card {
  max-width: 850px;
  margin: 0 auto;
  background: white;
  border: 1px solid #e2ebf4;
  border-radius: 22px;
  padding: clamp(22px, 4vw, 45px);
  box-shadow: 0 16px 45px rgba(9,36,82,.08);
}

.referral-new-form-card form {
  display: grid;
  gap: 20px;
}

.referral-new-form-card .referral-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.referral-new-form-card .referral-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.referral-new-form-card label {
  color: #092452;
  font-weight: 600;
}

.referral-new-form-card input,
.referral-new-form-card select,
.referral-new-form-card textarea {
  width: 100%;
  max-width: 100%;
  padding: 13px 15px;
  background: #f8fbfe;
  border: 1px solid #cdd9e6;
  border-radius: 9px;
  color: #092452;
  font: inherit;
}

.referral-new-form-card input:focus,
.referral-new-form-card select:focus,
.referral-new-form-card textarea:focus {
  outline: 2px solid #1684b5;
  outline-offset: 2px;
}

.referral-new-form-card .referral-form-section-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid #e2ebf4;
}

.referral-new-form-card .referral-form-section-heading > span {
  color: #1684b5;
  font-weight: 700;
}

.referral-new-form-card .referral-form-section-heading > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.referral-new-form-card .referral-field-help,
.referral-new-form-card .referral-form-bottom p {
  color: #56677c;
  line-height: 1.6;
}

.referral-new-form-card .referral-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.referral-new-form-card .referral-form-bottom button {
  padding: 14px 25px;
  background: #092452;
  color: white;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.referral-new-form-card .referral-form-bottom button:hover {
  background: #1684b5;
}

.referral-new-contact {
  padding: 75px 0;
  background: #092452;
  color: white;
  text-align: center;
}

.referral-new-contact h2 {
  color: white;
  font-size: clamp(30px, 4vw, 46px);
}

.referral-new-contact p {
  max-width: 600px;
  margin: 18px auto 28px;
  color: #d7e4f3;
  line-height: 1.8;
}

.referral-new-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.referral-new-actions a {
  display: inline-block;
  padding: 14px 24px;
  border: 2px solid #57c9f3;
  border-radius: 9px;
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.referral-new-actions a:first-child {
  background: #57c9f3;
  color: #061936;
}

@media (max-width: 900px) {
  .referral-new-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .referral-new-section {
    padding: 60px 0;
  }

  .referral-new-form-card .referral-field-row {
    grid-template-columns: 1fr;
  }

  .referral-new-contact {
    padding: 60px 0;
  }
}

/* Referral submission messages */

.referral-new-form-card .referral-form-status[hidden] {
  display: none;
}

.referral-new-form-card .referral-form-status {
  padding: 18px 20px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
}

.referral-new-form-card .referral-form-status.is-success {
  background: #eaf8f0;
  color: #17653b;
  border: 1px solid #a9dfc0;
}

.referral-new-form-card .referral-form-status.is-error {
  background: #fff0f0;
  color: #9c2626;
  border: 1px solid #edb5b5;
}
