/* /about/independent-tutors: the "Brainy signal" page for independent tutors.
   The page is a Page document (tools/pages/independent-tutors-page.mjs) that lists this file in
   `stylesheets`. Everything is scoped by the anchor ids its sections carry: #signal-hero (Hero
   Split), #paths (Icon Grid), #confidence (CTA Panel) and #inquire (the form's Rich HTML).
   Unlayered on purpose: these rules adjust shared fp-components.css rules, which sit in
   @layer custom, for this one page. */

/* ── Night-sky hero ──
   The shared split hero with a night palette. Its photo slot holds the signal art
   (public/images/branding/independent-tutors-signal.svg) instead of a photograph. */
#signal-hero {
    --fp-hero-accent: #1b2a4a;
    --fp-hero-accent-light: rgba(255, 226, 122, 0.12);
    --fp-hero-glow: rgba(255, 214, 102, 0.16);
    --fp-hero-gradient: linear-gradient(165deg, #050916 0%, #0c1633 52%, #1b2a4a 100%);
    /* The art is flush with the bottom of the hero, so the skyline is the hero's bottom edge */
    padding-bottom: 0;
}

#signal-hero .fp-hero-split-inner {
    align-items: center;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

/* Two questions, one per line: the <br> in the heading is the only break */
#signal-hero .fp-page-heading {
    max-width: 24ch;
    text-wrap: normal;
}

#signal-hero .fp-page-heading em {
    color: #ffe27a;
    font-style: normal;
}

#signal-hero .fp-hero-sub {
    max-width: 520px;
}

/* Taller than the tallest building at the widest the art gets, so text never overlaps the skyline */
#signal-hero .fp-hero-split-main {
    padding-bottom: 5.5rem;
}

#signal-hero .fp-hero-photo {
    align-self: end;
    container-type: inline-size;
    margin-top: -0.5rem;
}

/* Undo the photo treatment: this is a drawing with its own shape, not a 4:3 photograph */
#signal-hero .fp-hero-photo img {
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
    height: auto;
    object-fit: fill;
    position: relative;
}

/* Skyline across the whole hero. One tile is exactly as wide as the art (100cqw = the figure's
   width) and one tile is centered on it, so the buildings are drawn at the art's own scale on
   every screen and the searchlight in the art always stands on the same roof (the tile's
   building at x=48-100). The tile is 520 x 70 units, the art's viewBox is 520 wide. */
#signal-hero .fp-hero-photo::before {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 70'%3E%3Cg fill='%23050916'%3E%3Crect x='-1' y='50' width='522' height='20'/%3E%3Crect x='14' y='22' width='34' height='48'/%3E%3Crect x='48' y='32' width='52' height='38'/%3E%3Crect x='108' y='30' width='30' height='40'/%3E%3Crect x='146' y='8' width='44' height='62'/%3E%3Crect x='198' y='34' width='38' height='36'/%3E%3Crect x='244' y='18' width='26' height='52'/%3E%3Crect x='278' y='28' width='52' height='42'/%3E%3Crect x='338' y='0' width='36' height='70'/%3E%3Crect x='382' y='24' width='46' height='46'/%3E%3Crect x='436' y='12' width='30' height='58'/%3E%3Crect x='474' y='32' width='40' height='38'/%3E%3C/g%3E%3Cg fill='%23ffe27a' opacity='.6'%3E%3Crect x='154' y='20' width='4' height='5'/%3E%3Crect x='170' y='36' width='4' height='5'/%3E%3Crect x='346' y='12' width='4' height='5'/%3E%3Crect x='358' y='30' width='4' height='5'/%3E%3Crect x='444' y='24' width='4' height='5'/%3E%3Crect x='288' y='40' width='4' height='5'/%3E%3Crect x='22' y='34' width='4' height='5'/%3E%3Crect x='392' y='38' width='4' height='5'/%3E%3Crect x='254' y='30' width='4' height='5'/%3E%3Crect x='120' y='42' width='4' height='5'/%3E%3C/g%3E%3C/svg%3E") center bottom / 100cqw auto repeat-x,
        linear-gradient(#050916, #050916) center bottom / 100% 28% no-repeat;
    bottom: 0;
    content: "";
    height: calc(100cqw * 70 / 520);
    left: 50%;
    pointer-events: none;
    position: absolute;
    transform: translateX(-50%);
    width: 300vw;
}

@media (max-width: 991.98px) {
    /* The two-column rule above is by id, so it outranks the shared rule that stacks the hero */
    #signal-hero .fp-hero-split-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    #signal-hero .fp-page-heading,
    #signal-hero .fp-hero-sub {
        max-width: none;
    }

    /* Art first on small screens: it is the hook, and it keeps the buttons near the copy */
    #signal-hero .fp-hero-photo {
        margin: -0.5rem auto 0;
        max-width: 380px;
        order: -1;
        width: 100%;
    }

    /* Stacked, the skyline runs between the art and the copy. Everything below it becomes the
       dark foreground of the city, so the copy sits on solid ground, not on a floating band. */
    #signal-hero .fp-hero-photo::after {
        background: #050916;
        content: "";
        height: 300vh;
        left: 50%;
        pointer-events: none;
        position: absolute;
        top: 100%;
        transform: translateX(-50%);
        width: 300vw;
    }

    #signal-hero .fp-hero-split-main {
        padding: 0.75rem 0 2.25rem;
        position: relative;
    }
}

/* ── Three paths: the link row sits at the foot of each card, however long the copy ── */
#paths .fp-benefit {
    display: flex;
    flex-direction: column;
}

#paths .fp-benefit p {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.signal-path-links {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.85rem;
}

.signal-path-links .fp-link {
    font-size: 0.88rem;
    font-weight: 600;
}

/* The Scorgi card's second link, to the product's own site: quieter than the inquiry link */
.signal-path-site {
    align-items: center;
    color: #64748b;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 600;
    gap: 0.3rem;
    text-decoration: none;
}

.signal-path-site:hover {
    color: #1b2a4a;
    text-decoration: underline;
}

.signal-path-site i {
    display: flex;
    font-size: 0.72rem;
}

/* ── Confidence panel: the step cards are left-aligned inside the centered navy panel ── */
#confidence .fp-steps {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    #confidence .fp-steps {
        grid-template-columns: 1fr;
    }
}

/* ── Inquiry form (same card treatment as the employment application) ── */
.signal-form-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 30px rgba(16, 24, 40, 0.06);
    margin: 0 auto;
    max-width: 780px;
    padding: clamp(1.25rem, 3vw, 2.5rem);
}

.signal-form-private {
    align-items: center;
    color: #475569;
    display: flex;
    font-size: 0.85rem;
    font-weight: 600;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.signal-form-private i {
    color: var(--fp-accent, var(--brand-primary));
    display: flex;
}

/* The input group ships a gray .dataContainer fill; the card is the surface here */
#independentTutorFormArea .dataContainer {
    background-color: transparent;
}

#independentTutorFormArea .row {
    align-items: flex-start;
}

#independentTutorFormArea [class*="col-"] {
    margin-bottom: 1rem;
}

#independentTutorFormArea label,
#independentTutorFormArea .form-label {
    align-items: center;
    color: #475569;
    display: flex;
    font-size: 0.82rem;
    font-weight: 600;
    gap: 0.3rem;
    margin-bottom: 0.35rem;
}

#independentTutorFormArea .required-asterisk {
    align-self: flex-start;
    color: #e11d48;
    font-size: 0.55rem;
    line-height: 1.5;
}

#independentTutorFormArea .form-control {
    background-color: #fbfcfd;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    padding: 0.7rem 0.9rem;
}

#independentTutorFormArea .form-control:focus {
    background-color: #fff;
    border-color: var(--fp-accent, var(--brand-primary));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--fp-accent, var(--brand-primary)) 16%, transparent);
}

#independentTutorFormArea textarea.form-control {
    min-height: 130px;
}

#independentTutorFormArea .btn.w-100 {
    background: var(--fp-accent, var(--brand-primary));
    border: none;
    border-radius: 50px;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--fp-accent, var(--brand-primary)) 30%, transparent);
    color: #fff;
    font-size: 1.02rem;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    transition: filter 0.2s ease;
}

#independentTutorFormArea .btn.w-100:hover {
    color: #fff;
    filter: brightness(1.06);
}

.signal-form-note {
    color: #64748b;
    font-size: 0.9rem;
    margin: 1.25rem auto 0;
    max-width: 780px;
    text-align: center;
}
