/* Accountant referral landing page. Builds on /index_style.css and the shared header/footer. */

.referral-page section {
    padding: 76px 0;
}

.referral-hero {
    background: linear-gradient(180deg, #fff 0%, var(--surface-blue, #eaf1f8) 100%);
    padding-top: 56px;
}

.referral-hero__copy {
    max-width: 880px;
    margin-bottom: 38px;
}

.referral-hero h1 {
    margin-bottom: 20px;
    font-size: clamp(36px, 5vw, 60px);
    letter-spacing: -.035em;
}

.referral-hero__image,
.referral-pricing__image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 22px 50px rgba(16, 24, 40, .16);
}

.referral-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 28px;
    padding: 0;
    list-style: none;
}

.referral-pills li {
    padding: 8px 14px;
    border: 1px solid var(--border, #e4e7ec);
    border-radius: 999px;
    background: #fff;
    color: var(--navy, #101828);
    font-weight: 700;
    font-size: 15px;
}

.referral-cta {
    text-transform: uppercase;
    letter-spacing: .03em;
}

.referral-benefits {
    background: #fff;
}

.referral-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.referral-card {
    padding: 28px;
    border: 1px solid var(--border, #e4e7ec);
    border-radius: 14px;
    background: var(--surface, #f8fafc);
}

.referral-card h3 {
    margin: 16px 0 12px;
    font-size: 23px;
}

.referral-card p:last-child {
    margin-bottom: 0;
}

.referral-card__number {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--navy, #101828);
    color: #fff;
    font-weight: 800;
}

.referral-protection {
    background: var(--navy, #101828);
    color: #d0d5dd;
}

.referral-protection h2 {
    margin-bottom: 16px;
    color: #fff;
    font-size: clamp(30px, 3.6vw, 44px);
}

.referral-protection__grid,
.referral-pricing__grid,
.referral-form-section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.referral-ticks {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.referral-ticks li {
    position: relative;
    margin: 12px 0;
    padding-left: 36px;
}

.referral-ticks li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 1px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--red, #d92d20);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.referral-ticks strong {
    color: #fff;
}

.referral-protection__panel {
    padding: 32px;
    border-radius: 14px;
    background: #fff;
    color: var(--text, #475467);
}

.referral-protection__panel h3 {
    font-size: 26px;
}

.referral-pricing {
    background: var(--surface-warm, #fbf5ec);
}

.referral-pricing h2,
.referral-form-section h2 {
    margin-bottom: 16px;
    font-size: clamp(30px, 3.6vw, 44px);
}

.referral-note {
    padding: 14px 16px;
    border: 1px solid #fedf89;
    border-radius: 10px;
    background: #fffaeb;
    color: #93370d;
    font-size: 15px;
}

.referral-form-section {
    background: var(--surface-blue, #eaf1f8);
    scroll-margin-top: 80px;
}

.referral-form-section__grid {
    align-items: start;
}

.referral-tagline {
    color: var(--navy, #101828);
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: 22px;
    font-weight: 700;
}

.referral-form-card {
    padding: 30px;
    border: 1px solid var(--border, #e4e7ec);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(16, 24, 40, .08);
}

.referral-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.referral-form__field {
    margin-bottom: 16px;
}

.referral-form__field label {
    display: block;
    margin-bottom: 6px;
    color: var(--navy, #101828);
    font-weight: 700;
}

.referral-form input[type="text"],
.referral-form input[type="email"],
.referral-form input[type="tel"],
.referral-form select,
.referral-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #98a2b3;
    border-radius: 8px;
    background: #fff;
    color: var(--navy, #101828);
    font-size: 16px;
}

.referral-form textarea {
    resize: vertical;
}

.referral-form [aria-invalid="true"] {
    border-color: var(--red-dark, #b42318);
}

.referral-form__error {
    display: block;
    margin-top: 5px;
    color: var(--red-dark, #b42318);
    font-size: 14px;
    font-weight: 600;
}

.referral-form__note {
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

.referral-form__consent label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 400;
    color: var(--text, #475467);
}

.referral-form__consent input {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    flex: 0 0 20px;
}

.referral-form__submit {
    width: 100%;
    cursor: pointer;
}

.referral-form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.referral-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 700;
}

.referral-alert--success {
    border: 1px solid #abefc6;
    background: #ecfdf3;
    color: #067647;
}

.referral-alert--error {
    border: 1px solid #fecdca;
    background: #fef3f2;
    color: #b42318;
}

@media (max-width: 900px) {
    .referral-page section {
        padding: 56px 0;
    }

    .referral-cards,
    .referral-protection__grid,
    .referral-pricing__grid,
    .referral-form-section__grid,
    .referral-form__row {
        grid-template-columns: 1fr;
    }

    .referral-protection__grid,
    .referral-pricing__grid,
    .referral-form-section__grid {
        gap: 32px;
    }

    .referral-form-card {
        padding: 22px;
    }
}
