/* Refer yourself or a loved one (/refer-yourself/, ENV-123). Only this page loads it (front matter pageStyle), on top
   of styles.css. Every class here is the page's own, so nothing reaches Make a referral or Contact us
   (test/css-scope.test.js). The notes under the cards (.refer-notes, .gp-note), the steps and the "Not you?" line are
   the shared ones in styles.css.
   GSAP raises the hero choices (data-rise-group) and fades the cards up (data-reveal), so the only transitions here are
   on colours. Sky is only ever used with navy text or icons; buttons stay the button blue. */

/* Hero: "For me" and "For someone I care for". White on the sky hero, side by side on wide screens and stacked on
   phones. The one chosen (aria-current, js/refer-yourself.js) turns navy. */
.voice-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 860px; padding-top: 6px; }
@media (max-width: 600px) { .voice-picks { grid-template-columns: minmax(0, 1fr); } }
.voice-pick { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 80px; padding: 14px 16px 14px 14px; border: 2px solid #fff; border-radius: 28px; background: #fff; color: var(--navy); font-size: 1.25rem; font-weight: 700; line-height: 1.25; text-align: left; text-decoration: none; box-shadow: var(--shadow-sm); transition: background-color .3s, border-color .3s, color .3s; }
.voice-pick:hover { color: var(--navy); border-color: var(--navy); }
.voice-pick:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.voice-pick-ico, .voice-pick-go { display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--tint); color: var(--blue); transition: background-color .3s, color .3s; }
.voice-pick-ico { width: 52px; height: 52px; }
.voice-pick-go { width: 44px; height: 44px; }
.voice-pick-go .icon { width: 1.25rem; height: 1.25rem; }
.voice-pick-text { flex: 1; min-width: 0; }
.voice-pick[aria-current="true"], .voice-pick[aria-current="true"]:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.voice-pick[aria-current="true"] .voice-pick-ico, .voice-pick[aria-current="true"] .voice-pick-go { background: var(--sky); color: var(--navy); }

/* "Which sounds like you?": the switch under the heading, in step with the hero's choice (JavaScript only) */
.voice-switch { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; padding-top: 6px; }
.voice-switch-q { margin: 0; font-size: 1.0625rem; font-weight: 600; color: var(--navy); }
.voice-switch-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 100%; padding: 6px; border-radius: 30px; background: var(--tint); }
.voice-switch-btn { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 20px; border: 0; border-radius: 24px; background: transparent; color: var(--navy); font-family: inherit; font-size: 1.0625rem; font-weight: 600; line-height: 1.25; text-align: center; cursor: pointer; transition: background-color .25s, color .25s; }
.voice-switch-btn .icon { width: 1.15rem; height: 1.15rem; color: var(--blue); transition: color .25s; }
.voice-switch-btn:hover { background: #fff; }
.voice-switch-btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.voice-switch-btn[aria-pressed="true"] { background: var(--navy); color: #fff; }
.voice-switch-btn[aria-pressed="true"] .icon { color: var(--sky); }

/* The funding cards: pale tint on the white section, three across with a centred last row, two on tablets, one on
   phones. Landing on one from a link (/refer-yourself/#funding-ndis) rings it in blue. */
.ask-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.ask-grid > * { flex: 1 1 340px; max-width: 400px; }
.ask-card { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 28px 26px 26px; border-radius: 28px; background: var(--tint); }
.ask-card:target { box-shadow: 0 0 0 4px rgba(27, 120, 194, .35); }
.ask-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ask-ico { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--sky); color: var(--navy); }
.ask-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px; border-radius: 999px; background: #fff; color: var(--navy); font-size: .9375rem; font-weight: 700; line-height: 1.25; text-align: center; }
.ask-title { margin: 0; font-family: var(--fd); font-size: 1.75rem; font-weight: 300; line-height: 1.12; letter-spacing: -.01em; color: var(--navy); text-wrap: balance; }
.ask-for { margin: 0; font-size: 1.0625rem; line-height: 1.55; color: var(--body); }
.ask-how { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 18px; background: #fff; }
.ask-label { font-size: .875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--eyebrow); }
.ask-how p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--body); }
/* Long button names wrap onto two lines rather than run out of the card (Larger text on a phone) */
.ask-card .btn { align-self: flex-start; max-width: 100%; margin-top: auto; white-space: normal; }
/* "Not sure yet?": white with a dashed sky edge, like the homepage's, with the free chat and a phone call */
.ask-unsure { background: #fff; border: 2px dashed var(--sky); }
.ask-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; }
.ask-actions .btn { margin-top: 0; }
