/* ================================================
   NDIS REFERRALS — ndis-referrals.html
   ================================================ */

/* INTRO SECTION */
.referral-intro-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.referral-intro-text h2 { font-size: clamp(1.8rem, 2.5vw, 2.4rem); margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.referral-intro-text p { color: var(--text-mid); font-weight: 300; line-height: 1.85; margin-bottom: 1rem; }
.referral-promise-list {
  list-style: none; display: flex; flex-direction: column; gap: 0.65rem; margin-top: 1.5rem;
}
.referral-promise-list li {
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 0.9rem; color: var(--text-dark); font-weight: 400;
}
.referral-promise-list li svg { width: 16px; height: 16px; stroke-width: 2.5; color: var(--sage); flex-shrink: 0; }
.referral-intro-image { position: relative; border-radius: 24px; overflow: visible; }
.referral-intro-image img { width: 100%; height: 420px; object-fit: cover; border-radius: 24px; display: block; box-shadow: 0 16px 40px rgba(123,63,173,0.12); }
.referral-badge {
  position: absolute; bottom: -1rem; left: 50%; transform: translateX(-50%);
  background: white; border-radius: 14px; padding: 0.75rem 1.25rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
@media (max-width: 900px) {
  .referral-intro-grid { grid-template-columns: 1fr; gap: 3rem; }
  .referral-badge { position: static; transform: none; display: inline-block; margin-top: 1.5rem; }
}

/* WHO CAN REFER */
.referrer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem;
}
.referrer-card {
  background: white; border-radius: var(--radius); padding: 1.75rem;
  border: 1px solid rgba(123,63,173,0.1); transition: transform 0.2s, box-shadow 0.2s;
}
.referrer-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(123,63,173,0.1); }
.referrer-icon {
  width: 48px; height: 48px; background: var(--sage-light); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; color: var(--sage-dark);
  margin-bottom: 1rem;
}
.referrer-icon svg { width: 22px; height: 22px; stroke-width: 1.75; }
.referrer-card h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--text-dark); }
.referrer-card p { font-size: 0.88rem; color: var(--text-mid); font-weight: 300; line-height: 1.75; margin: 0; }

/* HOW TO REFER STEPS */
.referral-steps {
  display: flex; flex-direction: column; gap: 0; max-width: 720px; margin: 0 auto;
}
.referral-step {
  display: flex; gap: 1.5rem; align-items: flex-start; padding-bottom: 2.5rem; position: relative;
}
.referral-step-num {
  width: 48px; height: 48px; background: var(--sage); color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Lora', serif; font-weight: 600; font-size: 1.1rem; flex-shrink: 0; position: relative; z-index: 1;
}
.referral-step-connector {
  position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px;
  background: var(--sage-light);
}
.referral-step-connector--last { display: none; }
.referral-step-body { padding-top: 0.5rem; }
.referral-step-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text-dark); }
.referral-step-body p { font-size: 0.92rem; color: var(--text-mid); font-weight: 300; line-height: 1.8; margin: 0; }
.referral-step-body strong { color: var(--sage-dark); font-weight: 500; }


/* ─── ONLINE REFERRAL FORM ─── */
.ref-form-wrap { max-width: 820px; margin: 0 auto; }

.ref-emergency {
  display: flex; align-items: flex-start; gap: 1rem;
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px;
  padding: 1rem 1.25rem; margin-bottom: 2.5rem;
  font-size: 0.88rem; line-height: 1.6; color: #9a3412;
}
.ref-emergency svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; stroke-width: 2; color: #ea580c; }
.ref-emergency strong { display: block; font-weight: 600; margin-bottom: 0.2rem; }

.ref-form-section {
  border: 1px solid #EDE6F5;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  background: #fdfbff;
}
.ref-section-label { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 1.5rem; }
.ref-section-num {
  width: 32px; height: 32px; background: var(--sage); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.ref-section-label h3 {
  font-family: 'DM Sans', sans-serif; font-size: 1.05rem;
  font-weight: 600; color: var(--text-dark); margin: 0;
}
.ref-section-hint { font-size: 0.85rem; color: var(--text-light); margin-bottom: 1rem; }

.ref-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.ref-field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.ref-field label {
  font-size: 0.82rem; font-weight: 600; color: #374151;
  font-family: 'DM Sans', sans-serif;
}
.ref-field input,
.ref-field select,
.ref-field textarea {
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  padding: 10px 14px; font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif; color: var(--text-dark);
  background: white; transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.ref-field input:focus,
.ref-field select:focus,
.ref-field textarea:focus {
  border-color: var(--sage); box-shadow: 0 0 0 3px rgba(123,63,173,0.1);
}
.ref-field textarea { resize: vertical; min-height: 90px; }

.ref-checkgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
.ref-checkgrid--col1 { grid-template-columns: 1fr; }
.ref-acc-type-label {
  margin: 1.1rem 0 0.6rem;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--text-light);
  font-family: 'DM Sans', sans-serif;
}
.ref-check {
  display: flex; align-items: flex-start; gap: 0.6rem; cursor: pointer;
  font-size: 0.88rem; color: #374151;
  font-family: 'DM Sans', sans-serif; line-height: 1.4;
}
.ref-check input[type="checkbox"] {
  accent-color: var(--sage); width: 16px; height: 16px;
  flex-shrink: 0; margin-top: 2px; cursor: pointer;
}

.ref-radio-group { display: flex; gap: 1.5rem; align-items: center; height: 44px; }
.ref-radio {
  display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
  font-size: 0.9rem; color: #374151; font-family: 'DM Sans', sans-serif;
}
.ref-radio input[type="radio"] { accent-color: var(--sage); width: 16px; height: 16px; cursor: pointer; }

.ref-consent {
  background: #EDE6F5; border-radius: 12px;
  padding: 1.25rem 1.5rem; margin-bottom: 1.75rem;
}
.ref-check--consent { font-size: 0.88rem; color: var(--sage-dark); }

.ref-submit-row { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.ref-submit-btn {
  background: var(--sage); color: white;
  padding: 14px 40px; border-radius: 50px;
  border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.ref-submit-btn:hover { background: var(--sage-dark); transform: translateY(-1px); }
.ref-note { font-size: 0.8rem; color: var(--text-light); margin: 0; }
.ref-note a { color: var(--sage); text-decoration: none; }
.ref-note a:hover { text-decoration: underline; }

/* ─── SUPPORTING DOCUMENTS / FILE DROPBOXES ─── */
.ref-optional {
  font-family: 'DM Sans', sans-serif; font-size: 0.75rem;
  font-weight: 400; color: var(--text-light); margin-left: 0.3rem;
}
.ref-doc-note {
  display: flex; align-items: flex-start; gap: 0.7rem;
  background: #EDE6F5; border-radius: 10px;
  padding: 0.85rem 1rem; margin-bottom: 1.5rem;
  font-size: 0.83rem; color: var(--sage-dark); line-height: 1.6;
  font-family: 'DM Sans', sans-serif;
}
.ref-doc-note svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; stroke-width: 2; }
.ref-doc-note strong { font-weight: 600; }

.ref-field-label {
  font-size: 0.82rem; font-weight: 600; color: #374151;
  font-family: 'DM Sans', sans-serif; margin-bottom: 0.4rem; display: block;
}
.ref-dropbox-grid { margin-top: 0; }

.ref-dropbox {
  display: flex; align-items: center; gap: 1rem;
  border: 2px dashed #c4b0e0; border-radius: 12px;
  padding: 1.1rem 1rem; background: white; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  min-height: 76px;
}
.ref-dropbox:hover,
.ref-dropbox.dragover {
  border-color: var(--sage); background: #f5f0fd;
}
.ref-dropbox input[type="file"] { display: none; }

.ref-dropbox-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: #EDE6F5; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--sage); transition: background 0.2s;
}
.ref-dropbox-icon svg { width: 18px; height: 18px; stroke-width: 1.75; }

.ref-dropbox-text { display: flex; flex-direction: column; gap: 0.15rem; }
.ref-dropbox-main {
  font-size: 0.875rem; font-weight: 500; color: var(--text-dark);
  font-family: 'DM Sans', sans-serif;
}
.ref-dropbox-main u { color: var(--sage); text-decoration-thickness: 1px; }
.ref-dropbox-sub {
  font-size: 0.77rem; color: var(--text-light);
  font-family: 'DM Sans', sans-serif;
}

.ref-dropbox.has-file { border-style: solid; border-color: #16a34a; background: #f0fdf4; }
.ref-dropbox.has-file .ref-dropbox-icon { background: #dcfce7; color: #16a34a; }
.ref-dropbox.has-file .ref-dropbox-sub { color: #16a34a; font-weight: 500; }
.ref-dropbox.has-file .ref-dropbox-main u { color: #16a34a; }
.ref-dropbox--max { cursor: default; opacity: 0.72; }

/* ─── ATTACHED FILE LIST (Allied Health Reports) ─── */
.ref-file-list {
  list-style: none; margin: 0.55rem 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.ref-file-item {
  display: flex; align-items: center; gap: 0.55rem;
  background: white; border: 1px solid #d1fae5;
  border-radius: 8px; padding: 0.45rem 0.6rem;
  font-family: 'DM Sans', sans-serif;
  min-width: 0; overflow: hidden;
}
.ref-file-item > svg { flex-shrink: 0; color: #16a34a; }
.ref-file-name {
  flex: 1; min-width: 0; font-size: 0.82rem; color: var(--text-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ref-file-remove {
  flex-shrink: 0; background: none; border: none; cursor: pointer;
  color: var(--text-light); font-size: 1.1rem; line-height: 1;
  padding: 0 2px; border-radius: 4px; transition: color 0.15s, background 0.15s;
}
.ref-file-remove:hover { color: #dc2626; background: #fee2e2; }

/* ─── PLAN MANAGER CONDITIONAL FIELDS ─── */
.ref-plan-manager {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.25rem 1.25rem;
  background: #f5f0fd;
  border: 1px dashed #c4b0e0;
  border-radius: 12px;
}
.ref-plan-manager-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  color: var(--sage-dark);
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 0.875rem;
}


@media (max-width: 700px) {
  .ref-grid-2 { grid-template-columns: 1fr; }
  .ref-checkgrid { grid-template-columns: 1fr; }
  .ref-form-section { padding: 1.25rem; }
}
