#dpReferralRegistration { margin: 16px 0; padding: 14px; border: 1px solid #d8e3ef; border-radius: 10px; background: #f8fbff; }
#dpReferralRegistration > label { display: block; }
#dpReferralRegistration input:not([type="checkbox"]) { width: 100%; box-sizing: border-box; }
#dpReferralRegistration details { margin: 8px 0 12px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
#dpReferralRegistration summary { padding: 10px 0; cursor: pointer; color: #075fa8; font-weight: 600; }
#dpReferralRegistration details p { margin: 10px 0; font-size: 14px; line-height: 1.5; }
#dpReferralRegistration .dp-referral-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.45; font-weight: 400; }
#dpReferralRegistration .dp-referral-consent input { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; }
#dpReferralRegistration details button { width: auto; min-height: 44px; padding: 8px 12px; margin: 0 0 8px; }

.dp-referral-card {margin:16px 0;padding:16px;border:1px solid #d8e3ef;border-radius:12px;background:#f8fbff;overflow-wrap:anywhere;}
.dp-referral-card label {display:block;margin:10px 0;}
.dp-referral-card input:not([type="checkbox"]) {display:block;max-width:100%;box-sizing:border-box;}
.dp-referral-card button,.dp-referral-card summary {margin:6px 8px 6px 0;min-height:44px;}
.dp-hospital-referral-code {display:block;font-size:1.15rem;font-weight:700;letter-spacing:.04em;overflow-wrap:anywhere;user-select:all;}
.dp-referral-card details p {font-size:.9rem;line-height:1.5;}

#referralsPage .dp-referral-tabs {display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px;}
#referralsPage .dp-referral-tabs button {max-width:100%;white-space:normal;overflow-wrap:anywhere;min-height:44px;}
#referralsPage .dp-referral-tabs [aria-selected="true"] {background:#e8f3ff;border-color:#0f6cbd;color:#075fa8;}
#referralsPage .dp-referral-card {margin-top:0;}

#dpReferralRegistration .dp-referral-help { margin: 6px 0; font-size: 14px; line-height: 1.5; color: #475569; }
#dpReferralRegistration .dp-referral-error { margin: 6px 0 10px; font-size: 14px; line-height: 1.5; color: #a12635; font-weight: 600; }
#dpReferralRegistration .dp-referral-error:empty { display: none; }
#dpReferralRegistration input[aria-invalid="true"] { border-color: #a12635 !important; outline-color: #a12635; }
