/* Referral Program page. Form internals reuse contact-page.css. */

.referral-page {
    --ref-bg: #f6f7fb;
    --ref-ink: #14161a;
    --ref-muted: #5d6472;
    --ref-accent: #fdd700;
    --ref-card: #fff;
    --ref-line: #e3e6ee;
    background: var(--ref-bg);
    color: var(--ref-ink);
}

/* ---- Hero ---------------------------------------------------------------- */
.ref-hero {
    padding: 3.5rem 0 3rem;
    background: linear-gradient(180deg, #fff9d6 0%, var(--ref-bg) 70%);
}

.ref-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--ref-accent);
    font-size: 0.8rem;
    font-weight: 700;
}

.ref-hero__title {
    margin: 1rem 0 0.9rem;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
}

.ref-hero__mark {
    display: inline-block;
    padding: 0 0.6rem;
    border-radius: 8px;
    background: var(--ref-ink);
    color: var(--ref-accent);
}

.ref-hero__lead {
    max-width: 34rem;
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--ref-muted);
}

.ref-hero__cta {
    padding: 0.8rem 1.6rem;
    font-weight: 800;
}

.ref-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 2rem;
}

.ref-fact {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: var(--ref-card);
    box-shadow: 0 2px 10px rgba(20, 22, 26, 0.06);
}
.ref-fact strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}
.ref-fact span {
    display: block;
    line-height: 1.35;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ref-muted);
}

/* Reward card */
.ref-reward {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.75rem;
    border-radius: 16px;
    background: var(--ref-card);
    box-shadow: 0 12px 40px rgba(20, 22, 26, 0.12);
}
.ref-reward__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ref-muted);
}
.ref-reward__amount {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
}
.ref-reward__sub {
    color: var(--ref-muted);
}
.ref-reward__list {
    margin: 1.1rem 0 0;
    padding: 1.1rem 0 0;
    border-top: 1px solid var(--ref-line);
    list-style: none;
    display: grid;
    gap: 0.6rem;
    font-weight: 600;
}
.ref-reward__list i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: var(--ref-accent);
    font-size: 0.7rem;
}

/* ---- Sections ------------------------------------------------------------ */
.ref-how,
.ref-faq {
    padding: 3.5rem 0;
}

.ref-section-head {
    margin-bottom: 2rem;
}
.ref-section-head h2 {
    margin: 0.3rem 0 0;
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    font-weight: 800;
}
.ref-section-head--center {
    text-align: center;
}
.ref-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ref-muted);
}

.ref-step {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.4rem;
    border-radius: 14px;
    background: var(--ref-card);
    box-shadow: 0 2px 10px rgba(20, 22, 26, 0.06);
}
.ref-step__num {
    align-self: flex-start;
    margin-bottom: 1rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    background: #eef0f7;
    font-weight: 700;
    font-size: 0.9rem;
}
.ref-step--accent .ref-step__num {
    background: var(--ref-accent);
}
.ref-step__title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}
.ref-step__text {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--ref-muted);
}
.ref-step__tag {
    margin-top: auto;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ref-muted);
}
.ref-step--accent .ref-step__tag {
    color: #0a7a4a;
}

/* ---- Form ---------------------------------------------------------------- */
.ref-form-section {
    padding: 1rem 0 3.5rem;
}
.ref-form-card {
    max-width: 52rem;
    margin: 0 auto;
    padding: 2.25rem;
    border-radius: 16px;
    background: var(--ref-card);
    box-shadow: 0 8px 30px rgba(20, 22, 26, 0.08);
    scroll-margin-top: 6rem;
}
.ref-form-card__title {
    margin: 0 0 0.4rem;
    font-size: 1.9rem;
    font-weight: 800;
}
.ref-form-card__lead {
    margin: 0 0 1.5rem;
    color: var(--ref-muted);
}
.ref-form__group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}
.ref-form__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: #eef0f7;
    font-size: 0.75rem;
}
.ref-form__badge--accent {
    background: var(--ref-accent);
}
.ref-form__field {
    margin-bottom: 1rem;
}
.ref-form__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.ref-form__privacy {
    font-size: 0.78rem;
    color: var(--ref-muted);
}

/* ---- FAQ ----------------------------------------------------------------- */
.ref-accordion {
    max-width: 46rem;
    margin: 0 auto;
    display: grid;
    gap: 0.75rem;
}
.ref-accordion .accordion-item {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--ref-card);
    box-shadow: 0 2px 10px rgba(20, 22, 26, 0.06);
}
.ref-accordion .accordion-button {
    padding: 1.1rem 1.25rem;
    background: var(--ref-card);
    font-weight: 700;
    color: var(--ref-ink);
    box-shadow: none;
}
.ref-accordion .accordion-button:not(.collapsed) {
    background: #fff9d6;
}
.ref-accordion .accordion-body {
    color: var(--ref-muted);
    line-height: 1.6;
}

.ref-help {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 46rem;
    margin: 1.75rem auto 0;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: var(--ref-card);
    box-shadow: 0 2px 10px rgba(20, 22, 26, 0.06);
}
.ref-help__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 10px;
    background: var(--ref-accent);
}
.ref-help__text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    color: var(--ref-muted);
}
.ref-help__text strong {
    font-size: 1rem;
    color: var(--ref-ink);
}
.ref-help__btn {
    flex: 0 0 auto;
    background: #eef0f7;
    font-weight: 700;
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 991.98px) {
    .ref-hero { padding: 2.25rem 0 2rem; }
    .ref-how, .ref-faq { padding: 2.5rem 0; }
}

@media (max-width: 575.98px) {
    .ref-facts { grid-template-columns: 1fr; }
    .ref-fact { display: flex; align-items: baseline; gap: 0.6rem; }
    .ref-fact strong { white-space: nowrap; }
    .ref-hero__cta { width: 100%; }
    .ref-form-card { padding: 1.4rem 1.1rem; }
    .ref-form-card__title { font-size: 1.5rem; }
    .ref-form__footer { flex-direction: column; align-items: stretch; }
    .ref-form__footer .btn { width: 100%; }
    .ref-help { flex-wrap: wrap; }
    .ref-help__btn { width: 100%; }
}
