/* ============================================================
   FRANCHISE PARTNER PAGE — STYLES
   ============================================================ */

/* ── Base reset ─────────────────────────────────────────────── */
.fp-page *,
.fp-page *::before,
.fp-page *::after { box-sizing: border-box; }

/* ════════════════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════════════════ */
.fp-hero {
    padding-top: 0;
    position: relative;
    background: #ffffff;
    overflow: visible;          /* let rider spill below */
    font-family: 'Montserrat', 'Roboto', sans-serif;
}

/* ── City-skyline background (hero-bg.png) ──────────────────
   Faint, greyscale city watermark centred in the left half   */
.fp-hero__bg {
    position: absolute;
    inset: 0;
    /* pin to left-centre of hero, behind everything */
    background: url('/assets/img/hero-bg.png') left center / auto 80% no-repeat;
    opacity: 0.4;
    filter: grayscale(100%);
    pointer-events: none;
    z-index: 0;
}

/* ── Dot-grid overlay ────────────────────────────────────── */
.fp-hero__map-pins {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, #cc0000 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

/* ── Inner flex container ────────────────────────────────── */
.fp-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    min-height: 560px;
    max-width: 1280px;
    margin: 0 auto;
    /*padding: 0 32px;*/
    gap: 0;
}

/* ════════════════════════════════════════════════════════════
   LEFT COLUMN
   ════════════════════════════════════════════════════════════ */
.fp-hero__left {
    flex: 0 0 62%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 40px 150px 8px;  /* bottom pad = space for rider */
    position: relative;
}

/* ── "PARTNER WITH…" pill ────────────────────────────────── */
.fp-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff5f5;
    border: 1px solid #e8b4b4;
    border-radius: 20px;
    padding: 6px 16px 6px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #cc0000;
    text-transform: uppercase;
    margin-bottom: 18px;
    width: fit-content;
}

.fp-hero__pill svg {
    width: 14px;
    height: 14px;
    fill: #cc0000;
    flex-shrink: 0;
}

/* ── Main heading ────────────────────────────────────────── */
.fp-hero__heading {
    font-size: clamp(34px, 3.4vw, 45px);
    font-weight: 800;
    line-height: 1.1;
    color: #111111;
    margin: 0 0 14px;
    letter-spacing: -0.5px;
}

.fp-hero__heading em {
    font-style: normal;
    color: #cc0000;
    display: block;
}

/* ── Sub-description ─────────────────────────────────────── */
.fp-hero__desc {
    font-size: 14px;
    max-width: 460px;
    color: #555;
    line-height: 1.5;
    margin: 0 0 10px;
}

/* ════════════════════════════════════════════════════════════
   FEATURE CARDS GRID
   ════════════════════════════════════════════════════════════ */
.fp-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 620px;
    margin-bottom: 28px;
}

.fp-feature-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px 14px 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    border: 1px solid #f0f0f0;
    transition: transform .2s ease, box-shadow .2s ease;
}

.fp-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(204,0,0,.13);
}

.fp-feature-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #fff0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 9px;
}

.fp-feature-card__icon svg {
    width: 22px;
    height: 22px;
    fill: #cc0000;
}

.fp-feature-card__title {
    font-size: 11px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
    line-height: 1.3;
}

.fp-feature-card__desc {
    font-size: 11px;
    color: #777;
    line-height: 1.55;
    margin: 0;
}

/* ════════════════════════════════════════════════════════════
   STATISTICS ROW
   ════════════════════════════════════════════════════════════ */
.fp-stats {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    max-width: 620px;
    justify-content: center;
    margin: 0 auto;
}

.fp-stats__item {
    display: flex;
    align-items: center;
    gap: 7px;
}

.fp-stats__item-icon {
    width: 32px;
    height: 32px;
    fill: #cc0000;
    flex-shrink: 0;
}

.fp-stats__number {
    font-size: 24px;
    font-weight: 800;
    color: #cc0000;
    letter-spacing: -0.3px;
    line-height: 1;
}

.fp-stats__label {
    font-size: 12px;
    color: #777;
    line-height: 1.35;
}

.fp-stats__separator {
    width: 1px;
    height: 36px;
    background: #e0e0e0;
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   RIDER IMAGE
   Sits at the bottom of the left column, overlapping both
   the hero section and the red bottom band.
   ════════════════════════════════════════════════════════════ */
.fp-hero__rider-wrap {
    position: absolute;
    /* pin to the bottom-right of the left column */
    z-index: 5;
    pointer-events: none;
    width: 400px;
    bottom: -50px;
    right: -160px;
}

.fp-hero__rider-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(6px 10px 18px rgba(0,0,0,.22));
}

/* ════════════════════════════════════════════════════════════
   RIGHT COLUMN — FRANCHISE FORM CARD
   ════════════════════════════════════════════════════════════ */
.fp-hero__right {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 8px 28px 28px;
    position: relative;
    z-index: 2;
}

/* ── Form card wrapper ───────────────────────────────────── */
.fp-form-card {
    max-width: 500px;
    padding: 34px 34px 28px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,.13);
    width: 100%;
}

/* ── Card header row: icon + title + subtitle ───────────── */
.fp-form-card__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.fp-form-card__icon-wrap {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-form-card__icon-wrap svg {
    width: 32px;
    height: 32px;
    fill: #cc0000;
}

.fp-form-card__titles {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fp-form-card__heading {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    margin: 0 0 3px;
    line-height: 1.2;
}

.fp-form-card__heading span {
    color: #cc0000;
}

.fp-form-card__sub {
    font-size: 12px;
    font-weight: 600;
    color: #777;
    margin: 0;
    line-height: 1.4;
}

/* ── Field grid (2-column pairs) ─────────────────────────── */
.fp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
    margin-bottom: 14px;
}

.fp-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
}

.fp-form-group--full {
    grid-column: 1 / -1;
}

/* ── Labels ──────────────────────────────────────────────── */
.fp-form-label {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fp-form-label span {       /* asterisk */
    color: #cc0000;
    font-size: 13px;
    line-height: 1;
}

/* ── Input wrapper (icon + input) ────────────────────────── */
.fp-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.fp-input-wrap svg {            /* leading icon */
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
    fill: #aaa;
    pointer-events: none;
    flex-shrink: 0;
}

/* ── Inputs & Textarea ───────────────────────────────────── */
.fp-input,
.fp-textarea {
    width: 100%;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    font-family: inherit;
    font-size: 12.5px;
    color: #222;
    transition: border-color .18s ease, box-shadow .18s ease;
    outline: none;
}

.fp-input {
    height: 40px;
    font-size: 14px;
    padding: 0 10px 0 34px;
}

.fp-textarea {
    resize: none;
    padding: 10px 10px 10px 34px;
    line-height: 1.55;
    height: 100px;
    font-size: 14px;
}

.fp-input::placeholder,
.fp-textarea::placeholder {
    color: #bbb;
    font-size: 12px;
}

.fp-input:focus,
.fp-textarea:focus {
    border-color: #cc0000;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(204,0,0,.08);
}

/* ── Character counter ───────────────────────────────────── */
.fp-char-counter {
    display: flex;
    justify-content: flex-end;
    font-size: 10px;
    color: #aaa;
    margin-top: 2px;
    letter-spacing: 0.02em;
}

/* ── CTA Button ──────────────────────────────────────────── */
.fp-cta-btn {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: #cc0000;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 18px;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
    box-shadow: 0 4px 14px rgba(204,0,0,.30);
}

.fp-cta-btn:hover {
    background: #aa0000;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(204,0,0,.38);
}

.fp-cta-btn:active {
    transform: translateY(0);
}

.fp-cta-btn svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
    flex-shrink: 0;
}

/* ── Trust badges row ────────────────────────────────────── */
.fp-trust-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
    border-top: 1px solid #f2f2f2;
    padding-top: 14px;
}

.fp-trust-item {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 0 10px;
    border-right: 1px solid #f0f0f0;
}

.fp-trust-item:first-child { padding-left: 0; }
.fp-trust-item:last-child  { border-right: none; padding-right: 0; }

.fp-trust-item__icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.fp-trust-item__icon svg {
    width: 15px;
    height: 15px;
    fill: #cc0000;
}

.fp-trust-item__text {
    display: flex;
    flex-direction: column;
}

.fp-trust-item__title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

.fp-trust-item__desc {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

/* ════════════════════════════════════════════════════════════
   RED BOTTOM BAND  —  uses hero-banner.png curved wave
   ════════════════════════════════════════════════════════════ */
.fp-red-band {
    position: relative;
    height: 145px;
    min-height: 190px;
    margin-top: -200px;
    padding: 0;
    background: #d90000;
    overflow: hidden;
    z-index: 0;
}

/* Smooth white → red curved top */
.fp-red-band::before {
    content: "";
    position: absolute;
    top: -125px;
    left: -8%;
    width: 116%;
    height: 190px;
    background: #fff;
    border-radius: 0 0 50% 50%;
    transform: rotate(-1deg);
    z-index: 0;
}

.fp-red-band__inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 35px 32px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.fp-red-band__play {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-red-band__play svg {
    width: 30px;
    height: 30px;
    fill: #d90000;
    margin-left: 3px;
}

.fp-red-band__text {
    display: flex;
    flex-direction: column;
}

.fp-red-band__line1,
.fp-red-band__line2 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.fp-red-band__cursive {
    font-family: 'Dancing Script', cursive;
    font-size: 32px;
    color: #cddc39;
    white-space: nowrap;
    rotate: -10deg;
}

/* ════════════════════════════════════════════════════════════
   HOW IT WORKS SECTION
   ════════════════════════════════════════════════════════════ */
.fp-hiw {
    background: #ffffff;
    padding: 64px 32px 72px;
    font-family: 'Montserrat', 'Roboto', sans-serif;
    position: relative;
    z-index: 2;
}

/* ── Section label + heading ─────────────────────────────── */
.fp-hiw__label {
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #cc0000;
    margin-bottom: 8px;
}

.fp-hiw__heading {
    text-align: center;
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 800;
    color: #111;
    margin: 0 0 10px;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

/* Red underline accent beneath the heading */
.fp-hiw__accent {
    display: block;
    width: 44px;
    height: 3px;
    background: #cc0000;
    border-radius: 2px;
    margin: 0 auto 52px;
}

/* ── Cards + arrows track ────────────────────────────────── */
.fp-hiw__track {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 1060px;
    margin: 0 auto;
    position: relative;
}

/* ── Single step card ────────────────────────────────────── */
.fp-hiw__step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 12px;
    position: relative;
    max-width: 240px;
}

/* Step number badge (01, 02 …) */
.fp-hiw__num {
    font-size: 10.5px;
    font-weight: 800;
    color: #cc0000;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    line-height: 1;
}

/* Red circle icon */
.fp-hiw__icon-ring {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #cc0000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 6px 22px rgba(204,0,0,.28);
    transition: transform .2s ease, box-shadow .2s ease;
    flex-shrink: 0;
}

.fp-hiw__step:hover .fp-hiw__icon-ring {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(204,0,0,.36);
}

.fp-hiw__icon-ring svg {
    width: 40px;
    height: 40px;
    fill: #ffffff;
}

.fp-hiw__title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
    line-height: 1.3;
}

.fp-hiw__desc {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    margin: 0;
    max-width: 190px;
}

/* ── Dashed connecting arrows between cards ──────────────── */
.fp-hiw__arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    /* vertically align with the icon rings:
       num(~24px) + gap(14px) + half-ring(34px) = ~72px from top */
    padding-top: 72px;
    width: 72px;
}

.fp-hiw__arrow-line {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

/* The dashed line */
.fp-hiw__arrow-line::before {
    content: '';
    display: block;
    flex: 1;
    border-top: 2px dashed #e0b0b0;
    width: 100%;
}

/* Arrowhead (right-pointing triangle) */
.fp-hiw__arrow-line::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #e0b0b0;
    flex-shrink: 0;
    margin-left: 1px;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .fp-hero__inner {
        flex-direction: column;
        min-height: auto;
    }
    .fp-hero__left {
        flex: 1 1 100%;
        padding: 24px 20px 24px;
    }
    .fp-hero__right {
        flex: 1 1 100%;
        padding: 0 20px 36px;
        justify-content: center;
    }
    .fp-hero__rider-wrap {
        display: none;
    }
    .fp-feature-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
    .fp-red-band{
        display: none;
    }
    .fp-red-band__cursive {
        display: none;
    }
    .fp-hero {
        overflow: hidden;
    }
    /* How It Works — tablet: 2×2 grid */
    .fp-hiw__track {
        flex-wrap: wrap;
        gap: 32px 0;
        justify-content: center;
    }
    .fp-hiw__step {
        flex: 0 0 45%;
        max-width: 240px;
    }
    /* Hide the horizontal arrows on tablet */
    .fp-hiw__arrow {
        display: none;
    }
}

@media (max-width: 640px) {
    .fp-form-card {
        padding: 20px 16px 18px;
    }
    .fp-form-grid {
        grid-template-columns: 1fr;
    }
    .fp-feature-grid {
        gap: 8px;
    }
    /* ── Mobile CTA Button ───────────────────────────── */
    .fp-cta-btn {
        position: relative;
        width: 100%;
        height: 38px;
        min-height: 38px;
        padding-right: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
        text-align: center;
        border-radius: 10px;
        overflow: hidden;
    }

    /* Arrow stays fixed on the right */
    .fp-cta-btn svg {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);

        width: 16px;
        height: 16px;

        flex: none;
        margin: 0;
    }

    .fp-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 40px;
        align-items: center;
        margin: 0 auto;
    }
    .fp-stats__item {
        display: flex;
        align-items: center;
        gap: 7px;
        min-width: 0;
        width: 100%;
    }
    .fp-stats__item-icon {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
        object-fit: contain;
    }
    .fp-stats__item > div {
        min-width: 0;
    }

    .fp-stats__number {
        font-size: 22px;
        line-height: 1;
        white-space: nowrap;
    }

    .fp-stats__label {
        font-size: 11px;
        line-height: 1.3;
        white-space: nowrap;
    }
    .fp-stats__separator {
        display: none;
    }
    .fp-hero__heading {
        font-size: 26px;
    }
    .fp-trust-row {
        flex-direction: column;
        gap: 10px;
    }
    .fp-trust-item {
        border-right: none;
        padding: 0;
    }
    /* How It Works — mobile: full-width stack with vertical connector */
    .fp-hiw {
        padding: 48px 20px 56px;
    }
    .fp-hiw__track {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .fp-hiw__step {
        flex: none;
        width: 100%;
        max-width: 320px;
        padding: 0 8px 0;
    }
    /* Vertical dashed connector between stacked cards */
    .fp-hiw__step:not(:last-child)::after {
        content: '';
        display: block;
        width: 2px;
        height: 36px;
        border-left: 2px dashed #e0b0b0;
        margin: 12px auto 12px;
    }
    .fp-hiw__arrow {
        display: none;
    }
    .fp-hiw__accent {
        margin-bottom: 36px;
    }
}
