/*
 * Public sign-up (pages/franchise-registration.php) — calmer, clearer look.
 * Loaded after franchise-registration.css and scoped to body.fr-v2, so the
 * admin "Add school" page that shares the base stylesheet is unchanged.
 * Visual only: no field, name or option is added or removed here.
 */
.fr-v2 {
    --fr2-navy: #002443;
    --fr2-navy-2: #00517f;
    --fr2-gold: #eaad3a;
    --fr2-gold-ink: #8a5a00;
    --fr2-ink: #1c2533;
    --fr2-ink-2: #3d4757;
    --fr2-muted: #5b6676;
    --fr2-line: #e3e8ef;
    --fr2-field: #cbd3de;
    --fr2-bg: #f4f6f9;
    --fr2-tint: #eef3f9;
    background: var(--fr2-bg);
    color: var(--fr2-ink);
}

.fr-v2, .fr-v2 input, .fr-v2 select, .fr-v2 textarea, .fr-v2 button {
    font-family: 'Inter', system-ui, sans-serif;
}
.fr-v2 .section-title, .fr-v2 .fr-hero__title, .fr-v2 .fr-brand__txt strong, .fr-v2 .fr2-aside__title {
    font-family: 'Poppins', system-ui, sans-serif;
    letter-spacing: 0;
}

/* Header */
.fr-v2 .fr-brand__mark { background: var(--fr2-navy); color: var(--fr2-gold); }
.fr-v2 .fr2-top__ask { font-size: .875rem; color: var(--fr2-muted); }
.fr-v2 .fr-top__btn { white-space: nowrap; min-height: 44px; border-radius: 10px; padding: 0 1.1rem; font-size: .9rem; }
@media (max-width: 480px) { .fr-v2 .fr2-top__ask { display: none; } }

/* Hero: one flat brand navy, with three plain facts */
.fr-v2 .fr-hero { background: var(--fr2-navy); }
.fr-v2 .fr-hero__in { max-width: 70rem; padding: 2.4rem 1.25rem 2.75rem; }
.fr-v2 .fr-hero__title { font-weight: 700; font-size: clamp(1.75rem, 3.4vw, 2.25rem); margin-bottom: .75rem; }
.fr-v2 .fr-hero__sub { font-size: 1.05rem; color: #d5deea; }
.fr-v2 .fr2-chips { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.fr-v2 .fr2-chip { padding: .45rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: .875rem; font-weight: 600; }
.fr-v2 .fr2-chip--gold { background: var(--fr2-gold); color: var(--fr2-navy); font-weight: 700; }
.fr-v2 main { margin-top: 0; padding-top: 1.75rem; }

/* Form + side panel */
.fr-v2 .fr2-layout { max-width: 70rem; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.fr-v2 .fr2-layout > #regForm { flex: 999 1 560px; min-width: 0; max-width: none; margin: 0; }
.fr-v2 .fr2-aside { flex: 1 1 260px; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 1000px) { .fr-v2 .fr2-aside { position: sticky; top: 5.5rem; } }
.fr-v2 .fr2-aside__card { background: #fff; border: 1px solid var(--fr2-line); border-radius: 16px; padding: 1.25rem; }
.fr-v2 .fr2-aside__title { margin: 0 0 .85rem; font-size: 1rem; font-weight: 600; color: var(--fr2-navy); }
.fr-v2 .fr2-ready { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; font-size: .9rem; color: var(--fr2-ink-2); }
.fr-v2 .fr2-ready li { position: relative; padding-left: 1.1rem; }
.fr-v2 .fr2-ready li::before { content: ''; position: absolute; left: 0; top: .5rem; width: 8px; height: 8px; border-radius: 50%; background: var(--fr2-gold); }
.fr-v2 .fr2-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; font-size: .9rem; color: var(--fr2-ink-2); }
.fr-v2 .fr2-steps li { display: flex; align-items: center; gap: .65rem; }
.fr-v2 .fr2-steps span { width: 26px; height: 26px; border-radius: 50%; background: #e8eef6; color: var(--fr2-navy); font-weight: 700; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.fr-v2 .fr2-aside__note { margin: 0; padding: 0 .25rem; font-size: .82rem; color: var(--fr2-muted); }
.fr-v2 .fr2-aside__note .req { color: #b42318; font-weight: 700; }

/* Top step strip */
.fr-v2 .fr-reg-steps { border-color: var(--fr2-line); box-shadow: none; }
.fr-v2 .fr-reg-steps__item.is-active .fr-reg-steps__num,
.fr-v2 .fr-reg-steps__item.is-done .fr-reg-steps__num { background: var(--fr2-navy); border-color: var(--fr2-navy); color: #fff; }
.fr-v2 .fr-reg-steps__item.is-done:not(:last-child)::after,
.fr-v2 .fr-reg-steps__item.is-active:not(:last-child)::after { background: rgba(0, 36, 67, .35); }

/* Section cards */
.fr-v2 .gov-card { border-color: var(--fr2-line); box-shadow: none; }
.fr-v2 #regForm > .gov-card:hover { box-shadow: none; border-color: var(--fr2-line); }
.fr-v2 .gov-card-header { border-bottom: 0; padding: 1.5rem 1.5rem .25rem; align-items: flex-start; gap: .9rem; }
.fr-v2 .gov-step { width: 2.25rem; height: 2.25rem; background: var(--fr2-navy); font-family: 'Poppins', system-ui, sans-serif; font-size: .95rem; }
.fr-v2 .section-title { font-size: 1.25rem; font-weight: 600; color: var(--fr2-navy); line-height: 1.3; }
.fr-v2 .section-sub { color: var(--fr2-muted); }
.fr-v2 .gov-card-body { padding: 1.1rem 1.5rem 1.5rem; }

/* Sub-groups inside "Details" */
.fr-v2 .fr2-details { display: flex; flex-direction: column; gap: 1rem; }
.fr-v2 .fr2-sub { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fr2-gold-ink); }
.fr-v2 .fr2-sub--rule { margin-top: .6rem; padding-top: 1.25rem; border-top: 1px solid var(--fr2-line); }
.fr-v2 .fr2-sub-help { margin-top: -.6rem !important; }
.fr-v2 .branding-panel { background: none; border: 0; padding: 0; box-shadow: none; }

/* Fields: bigger, calmer, clear focus */
.fr-v2 .gov-label { font-weight: 600; color: var(--fr2-ink); margin-bottom: .4rem; }
.fr-v2 .gov-label .req { color: #b42318; margin-left: .15rem; }
.fr-v2 .gov-input, .fr-v2 .gov-select, .fr-v2 .gov-textarea, .fr-v2 #regForm textarea {
    min-height: 48px;
    border: 1.5px solid var(--fr2-field);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--fr2-ink);
    background-color: #fff;
}
.fr-v2 .gov-input:focus, .fr-v2 .gov-select:focus, .fr-v2 #regForm textarea:focus {
    outline: none;
    border-color: var(--fr2-navy);
    box-shadow: 0 0 0 3px rgba(0, 36, 67, .14);
}
.fr-v2 .gov-select:disabled { background-color: var(--fr2-bg); border-color: var(--fr2-line); color: #6b7686; }
.fr-v2 .gov-help { color: var(--fr2-muted); }
.fr-v2 .fr-opt { font-size: .78rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--fr2-muted); background: none; padding: 0; margin-left: .25rem; }
.fr-v2 .fr-opt::before { content: '('; }
.fr-v2 .fr-opt::after { content: ')'; }

/* Institution type: two clear radio cards */
.fr-v2 .type-chip { border: 2px solid var(--fr2-line); border-radius: 12px; background: #fff; min-height: 44px; }
.fr-v2 .type-chip:hover { border-color: #9fb0c6; background: #fff; }
.fr-v2 .type-chip.is-active, .fr-v2 .type-chip.is-active:hover { border-color: var(--fr2-navy); background: var(--fr2-tint); box-shadow: none; }
.fr-v2 .type-chip .type-chip__icon { background: #e8eef6; color: var(--fr2-navy); }
.fr-v2 .type-chip.is-active .type-chip__icon, .fr-v2 .type-chip.is-active .type-chip__icon i { background: var(--fr2-navy); color: #fff; }
.fr-v2 .type-chip .type-chip__icon i { color: inherit; }
.fr-v2 .type-chip__title { color: var(--fr2-navy); font-weight: 700; }
.fr-v2 .type-chip__hint { color: var(--fr2-muted); }
.fr-v2 .type-chip:has(input:focus-visible) { outline: 3px solid rgba(0, 36, 67, .35); outline-offset: 2px; }

/* Photo drop zones */
.fr-v2 .fr-drop { min-height: 140px; border: 2px dashed #9fb0c6; border-radius: 12px; background: #f7f9fc; }
.fr-v2 .fr-drop:hover, .fr-v2 .fr-drop.is-over { border-color: var(--fr2-navy); background: var(--fr2-tint); box-shadow: none; }
.fr-v2 .fr-drop__icon, .fr-v2 .fr-drop__title { color: var(--fr2-navy); }
.fr-v2 .fr-drop__hint { color: var(--fr2-muted); }
.fr-v2 .fr-drop:has(input:focus-visible) { outline: 3px solid rgba(0, 36, 67, .35); outline-offset: 2px; }

/* Declaration + submit */
.fr-v2 .fee-callout { border-radius: 12px; }
.fr-v2 .fee-callout--free { background: #ecfdf3; border: 1px solid #a6e4bf; color: #054f31; }
.fr-v2 .fee-callout--free i { color: #067647; }
.fr-v2 .declaration-box { border: 1.5px solid var(--fr2-field); border-radius: 12px; background: #fff; }
.fr-v2 .declaration-box:has(input:checked) { border-color: var(--fr2-navy); background: var(--fr2-tint); }
.fr-v2 #declaration_accept { width: 22px; height: 22px; margin-top: 0; accent-color: var(--fr2-navy); flex: none; }
.fr-v2 .gov-btn-primary {
    width: 100%;
    min-height: 54px;
    border-radius: 12px;
    background: var(--fr2-navy);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: none;
}
.fr-v2 .gov-btn-primary:hover { background: var(--fr2-navy-2); }
/* Looks inactive until the declaration is ticked; still clickable so the browser explains what is missing. */
.fr-v2 #regForm:has(#declaration_accept:not(:checked)) .gov-btn-primary { background: #c9d2de; color: #2b3442 !important; }
.fr-v2 .fr-reg-submit-hint { color: var(--fr2-muted); }

@media (max-width: 639px) {
    .fr-v2 .gov-card-header { padding: 1.15rem 1.1rem .2rem; }
    .fr-v2 .gov-card-body { padding: 1rem 1.1rem 1.25rem; }
    .fr-v2 .fr-reg-submit-bar { background: linear-gradient(180deg, rgba(244, 246, 249, 0) 0%, var(--fr2-bg) 28%, var(--fr2-bg) 100%); }
    .fr-v2 .fr2-aside { order: -1; }
    .fr-v2 .fr2-aside > .fr2-aside__card:nth-child(2), .fr-v2 .fr2-aside__note { display: none; }
}
