/*
 * franchise-preschool.css
 * Scoped to .fp-* components only.
 * Relies on style.css for :root variables, .btn, .gradient-text,
 * .section-header, .section-subtitle, .section-padding, .page-header,
 * .header-shape, .back-to-top, and the Bootstrap grid.
 */

/* ════════════════════════════════════════
   1 · HERO
════════════════════════════════════════ */
.fp-hero {
    padding-top: 140px;   /* clears fixed header + top-bar */
    padding-bottom: 60px;
    background: linear-gradient(135deg, #2b164d 0%, #1a0b2e 100%);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .fp-hero { padding-top: 110px; padding-bottom: 48px; }
}

.fp-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 991px) {
    .fp-hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

.fp-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .5px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.fp-hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #fff;
    margin-bottom: 18px;
    line-height: 1.2;
}

.fp-hero-sub {
    color: rgba(255,255,255,.82);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 30px;
    max-width: 520px;
}

.fp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

/* Hero stats strip */
.fp-hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.fp-stat { text-align: center; }

.fp-stat-val {
    display: block;
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.6rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fp-stat-lbl {
    display: block;
    color: rgba(255,255,255,.7);
    font-size: .78rem;
    font-family: var(--font-primary);
    letter-spacing: .3px;
}

.fp-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,.2);
}

/* Hero image */
.fp-hero-img-wrap {
    position: relative;
}

.fp-hero-img {
    border-radius: var(--radius-xl);
    width: 100%;
    object-fit: cover;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

.fp-hero-float-badge {
    position: absolute;
    bottom: -16px;
    left: -16px;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: .85rem;
    color: var(--clr-heading);
    line-height: 1.3;
}

.fp-hero-float-badge i {
    font-size: 1.4rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 991px) {
    .fp-hero-img-wrap { order: -1; }
    .fp-hero-img      { max-height: 320px; }
    .fp-hero-float-badge { bottom: -12px; left: 16px; }
}


/* ════════════════════════════════════════
   2 · ENQUIRY FORM
════════════════════════════════════════ */
.fp-form-section { background: var(--gradient-soft); }

.fp-form-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .fp-form-card { padding: 28px 20px; }
}

.fp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 28px;
    margin-top: 8px;
}

@media (max-width: 640px) {
    .fp-form-grid { grid-template-columns: 1fr; }
}

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

/* Field */
.fp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fp-field label {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: .9rem;
    color: var(--clr-heading);
}

.fp-req { color: var(--clr-primary); }

.fp-field input,
.fp-field select {
    border: 1.5px solid #E5E7EB;
    border-radius: var(--radius-md);
    padding: 11px 16px;
    font-family: var(--font-secondary);
    font-size: .95rem;
    color: var(--clr-body);
    background: #fff;
    transition: border-color .25s, box-shadow .25s;
    width: 100%;
}

.fp-field input::placeholder { color: #9CA3AF; }

.fp-field input:focus,
.fp-field select:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(217,70,168,.12);
}

.fp-field.has-error input,
.fp-field.has-error select {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

/* Phone row */
.fp-phone-wrap {
    display: flex;
    border: 1.5px solid #E5E7EB;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color .25s, box-shadow .25s;
}

.fp-phone-wrap:focus-within {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(217,70,168,.12);
}

.fp-field.has-error .fp-phone-wrap {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

.fp-cc {
    padding: 11px 14px;
    background: #F9FAFB;
    border-right: 1.5px solid #E5E7EB;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: .9rem;
    color: var(--clr-heading);
    white-space: nowrap;
    flex-shrink: 0;
}

.fp-phone-wrap input {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
    flex: 1;
}

/* Consent checkbox */
.fp-consent { padding-top: 4px; }

.fp-check-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: .9rem;
    color: var(--clr-body);
    line-height: 1.55;
}

.fp-check-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.fp-checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #D1D5DB;
    border-radius: 5px;
    margin-top: 1px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s;
}

.fp-check-label input:checked ~ .fp-checkmark {
    background: var(--gradient-brand);
    border-color: var(--clr-primary);
}

.fp-check-label input:checked ~ .fp-checkmark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
    display: block;
}

.fp-check-label input:focus-visible ~ .fp-checkmark {
    outline: 2px solid var(--clr-primary);
    outline-offset: 2px;
}

.fp-link { color: var(--clr-primary); text-decoration: underline; }

/* Error messages */
.fp-err {
    font-size: .8rem;
    color: #EF4444;
    font-family: var(--font-primary);
    min-height: 1em;
}

/* Submit button */
.fp-submit {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}


/* ════════════════════════════════════════
   3 · WHY CHOOSE US  — tabs + accordion
════════════════════════════════════════ */
.fp-why { background: var(--bg-section-alt); }

/* ── Desktop tab shell ── */
.fp-tabs-shell {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #fff;
    margin-top: 36px;
}

.fp-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: linear-gradient(135deg, #2b164d, #1a0b2e);
    padding: 6px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.fp-tab {
    flex: 1 1 auto;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: rgba(255,255,255,.65);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: .82rem;
    cursor: pointer;
    transition: background .25s, color .25s;
    white-space: nowrap;
}

.fp-tab:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}

.fp-tab.active,
.fp-tab[aria-selected="true"] {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 4px 14px rgba(217,70,168,.4);
}

.fp-tab span { pointer-events: none; }

/* Tab panels */
.fp-tab-panels { padding: 32px; }

.fp-panel { display: none; }
.fp-panel.active { display: block; }

/* ── Mobile accordion — hidden on desktop ── */
.fp-accordion { display: none; margin-top: 20px; }

@media (max-width: 767px) {
    .fp-tabs-shell { display: none; }
    .fp-accordion  { display: block; }
}

.fp-acc-item {
    border: 1.5px solid #E5E7EB;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 10px;
    background: #fff;
}

.fp-acc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border: none;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: .95rem;
    color: var(--clr-heading);
    cursor: pointer;
    transition: background .2s;
    text-align: left;
}

.fp-acc-btn:hover  { background: #FDF2F8; }
.fp-acc-item.open .fp-acc-btn { background: var(--gradient-brand); color: #fff; }

.fp-chevron {
    font-size: .75rem;
    transition: transform .3s cubic-bezier(.65,0,.35,1);
    flex-shrink: 0;
}

.fp-acc-item.open .fp-chevron { transform: rotate(180deg); }

.fp-acc-panel { padding: 20px; border-top: 1.5px solid #E5E7EB; }

/* ── Pillar card grid (shared by tabs + accordion) ── */
.fp-pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

@media (max-width: 479px) {
    .fp-pillar-grid { grid-template-columns: 1fr 1fr; }
}

.fp-pillar-card {
    background: var(--gradient-soft);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    border: 1.5px solid rgba(217,70,168,.1);
    transition: transform .25s, box-shadow .25s;
}

.fp-pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.fp-pillar-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #fff;
    font-size: 1.1rem;
}

.fp-pillar-card h4 {
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--clr-heading);
}

.fp-pillar-card p {
    font-size: .82rem;
    color: var(--clr-body-light);
    line-height: 1.55;
    margin: 0;
}


/* ════════════════════════════════════════
   4 · REQUIREMENTS CARD
════════════════════════════════════════ */
.fp-requirements { background: #fff; }

.fp-req-card {
    background: linear-gradient(135deg, #2b164d 0%, #1a0b2e 100%);
    border-radius: var(--radius-xl);
    padding: 44px 40px;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 36px auto 0;
    color: #fff;
}

@media (max-width: 640px) {
    .fp-req-card { padding: 28px 20px; }
}

.fp-req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 28px;
    margin-bottom: 36px;
}

.fp-req-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.fp-req-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--clr-secondary-light);
}

.fp-req-lbl {
    display: block;
    font-size: .78rem;
    color: rgba(255,255,255,.6);
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.fp-req-val {
    display: block;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}

/* Revenue programs */
.fp-req-revenue {
    border-top: 1px solid rgba(255,255,255,.15);
    padding-top: 28px;
}

.fp-req-revenue h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fp-req-revenue h4 i {
    color: var(--clr-secondary-light);
}

.fp-tag-row { display: flex; flex-wrap: wrap; gap: 10px; }

.fp-tag {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: .82rem;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    transition: background .2s;
}

.fp-tag:hover { background: rgba(255,255,255,.22); }


/* ════════════════════════════════════════
   5 · STEPS TO OPEN
════════════════════════════════════════ */
.fp-steps { background: var(--gradient-soft); }

.fp-steps-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 40px 0 32px;
    position: relative;
}

@media (max-width: 900px) {
    .fp-steps-list { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 560px) {
    .fp-steps-list { grid-template-columns: 1fr; gap: 20px; }
}

.fp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 12px;
}

.fp-step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(217,70,168,.4);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* Horizontal connector line between steps */
.fp-step-line {
    position: absolute;
    top: 28px;                   /* half of circle height */
    left: calc(50% + 28px);      /* starts at right edge of circle */
    right: calc(-50% + 28px);
    height: 2px;
    background: linear-gradient(to right, var(--clr-primary), var(--clr-secondary));
    opacity: .35;
}

@media (max-width: 900px) {
    .fp-step-line { display: none; }
}

.fp-step-body {
    margin-top: 16px;
}

.fp-step-body h4 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--clr-heading);
}

.fp-step-body p {
    font-size: .85rem;
    color: var(--clr-body-light);
    line-height: 1.6;
    margin: 0;
}


/* ════════════════════════════════════════
   6 · TESTIMONIALS
════════════════════════════════════════ */
.fp-testimonials { background: var(--bg-section-alt); }

/* Video placeholder */
.fp-video-wrap {
    max-width: 780px;
    margin: 32px auto 40px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.fp-video-placeholder {
    background: linear-gradient(135deg, #2b164d, #1a0b2e);
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255,255,255,.6);
    font-family: var(--font-primary);
}

.fp-video-placeholder i {
    font-size: 3.5rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fp-video-placeholder p {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,.8);
    margin: 0;
}

.fp-video-note { font-size: .8rem; }

/* Testimonial cards */
.fp-testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 8px;
}

@media (max-width: 900px) { .fp-testi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fp-testi-grid { grid-template-columns: 1fr; } }

.fp-testi-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
    border: 1.5px solid rgba(217,70,168,.08);
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fp-testi-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

.fp-testi-q {
    font-size: 1.6rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.fp-testi-card p {
    color: var(--clr-body);
    font-size: .92rem;
    line-height: 1.7;
    flex: 1;
    margin: 0;
}

.fp-testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #F3F4F6;
    padding-top: 14px;
}

.fp-testi-av {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-testi-author strong {
    display: block;
    font-family: var(--font-primary);
    font-size: .88rem;
    color: var(--clr-heading);
}

.fp-testi-author span {
    font-size: .78rem;
    color: var(--clr-body-light);
}


/* ════════════════════════════════════════
   7 · FAQ
════════════════════════════════════════ */
.fp-faq { background: #fff; }

.fp-faq-list {
    max-width: 820px;
    margin: 32px auto 0;
}

.fp-faq-item {
    border: 1.5px solid #E5E7EB;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
    transition: box-shadow .2s;
}

.fp-faq-item.open { box-shadow: var(--shadow-sm); }

.fp-faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: #fff;
    border: none;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: .95rem;
    color: var(--clr-heading);
    cursor: pointer;
    text-align: left;
    transition: background .2s;
}

.fp-faq-btn:hover { background: #FDF2F8; }

.fp-faq-item.open .fp-faq-btn {
    background: var(--gradient-soft);
    color: var(--clr-primary);
}

.fp-faq-item.open .fp-chevron { transform: rotate(180deg); }

.fp-faq-ans {
    padding: 0 22px 20px;
    background: var(--gradient-soft);
}

.fp-faq-ans p {
    color: var(--clr-body);
    font-size: .92rem;
    line-height: 1.75;
    margin: 0;
}

.fp-faq-cta {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #E5E7EB;
}

.fp-faq-cta p {
    margin-bottom: 14px;
    color: var(--clr-body-light);
    font-family: var(--font-primary);
    font-weight: 500;
}


/* ════════════════════════════════════════
   UTILITY: section spacing helpers
════════════════════════════════════════ */
.fp-requirements .section-header,
.fp-steps .section-header,
.fp-testimonials .section-header,
.fp-faq .section-header,
.fp-why .section-header {
    margin-bottom: 0;
}
