/* Doctor referral page — extra styles only; does not change homepage rules */
.nav-links a[aria-current="page"]{color:var(--navy)}
.nav-links a[aria-current="page"]::after{transform:scaleX(1)}
.ref-page{background:linear-gradient(180deg,#fff,var(--ice2) 140px,#fff)}
.ref-hero{max-width:880px;margin:0 auto;padding:clamp(1.8rem,4.5vw,3.2rem) clamp(1.2rem,5vw,4rem) 1rem}
.ref-hero h1{margin:.15rem 0 .8rem}
.ref-hero p{color:var(--mute);max-width:62ch}
.ref-hero .pay{color:var(--navy);font-weight:600}
.ref-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.2rem}
.ref-wrap{max-width:880px;margin:0 auto;padding:0 clamp(1.2rem,5vw,4rem) 4.5rem}
.ref-card{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:clamp(1.15rem,3vw,2rem);box-shadow:var(--shadow)}
.ref-sec{margin:0 0 1.45rem;padding-bottom:1.35rem;border-bottom:1px solid var(--line)}
.ref-sec:last-of-type{border-bottom:0;margin-bottom:.4rem;padding-bottom:0}
.ref-sec h3{font-size:1.08rem;margin:0 0 .85rem}
.ref-grid{display:grid;grid-template-columns:1fr 1fr;gap:.9rem 1rem}
.ref-grid .full{grid-column:1/-1}
.fld{display:flex;flex-direction:column;gap:.35rem;font-weight:600;font-size:.88rem;color:var(--navy)}
.fld input,.fld textarea{
  font:inherit;font-weight:500;color:var(--ink);
  border:1.5px solid var(--line);border-radius:12px;
  padding:.78rem .85rem;background:#fff;min-height:48px;width:100%
}
.fld textarea{min-height:148px;resize:vertical}
.fld input:focus,.fld textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 4px rgba(28,79,176,.14)}
.req{color:#b42318}
.choices{display:grid;grid-template-columns:1fr 1fr;gap:.55rem .8rem}
.choice{display:flex;align-items:flex-start;gap:.6rem;font-weight:600;font-size:.92rem;color:var(--navy);padding:.75rem .85rem;border:1.5px solid var(--line);border-radius:14px;background:var(--ice2);cursor:pointer}
.choice input{width:18px;height:18px;margin-top:2px;accent-color:var(--navy);flex:none}
.choice:has(input:checked){border-color:var(--blue);background:#e8f0fc}
.filebox{border:1.5px dashed var(--blue);border-radius:16px;padding:1rem;background:var(--ice)}
.filebox input[type=file]{width:100%;margin-top:.55rem;font-weight:500}
.ref-note{font-size:.86rem;color:var(--mute);font-weight:500;margin:.35rem 0 0}
.ref-submit{margin-top:.4rem;display:flex;flex-wrap:wrap;align-items:center;gap:.9rem}
.ref-status{margin-top:1rem;padding:.95rem 1rem;border-radius:14px;font-weight:600;line-height:1.45}
.ref-status.ok{background:#e8f6ee;color:#0b5c32}
.ref-status.err{background:#fdecec;color:#8a1f1f}
.ref-status a{color:inherit;text-decoration:underline}
.hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.ref-success{display:none;text-align:center;padding:1.4rem .4rem 0}
.ref-success.show{display:block}
.ref-card.is-sent .ref-form{display:none}
@media (max-width:760px){
  .ref-grid,.choices{grid-template-columns:1fr}
  .ref-actions .btn{width:100%}
}
