/* ============================================================
   CON Conference Portal — portal.css
   Tailwind CDN is loaded on the page; this file adds
   custom components that Tailwind utility classes can't cover.
   ============================================================ */

/* ── Root tokens ──────────────────────────────────────────── */
:root {
    --con-navy:    #1a3a6b;
    --con-blue:    #2563eb;
    --con-light:   #dbeafe;
    --con-gold:    #f59e0b;
    --con-radius:  1rem;
}

/* ── Wrap ─────────────────────────────────────────────────── */
.con-portal-wrap {
    font-family: 'Inter', Arial, sans-serif;
    background: linear-gradient(135deg, #e8f0fe 0%, #f1f5f9 60%, #ede9fe 100%);
}

/* ── Form card ────────────────────────────────────────────── */
.con-form-card {
    border-radius: 1.5rem;
    box-shadow: 0 25px 60px -10px rgba(26, 58, 107, .18), 0 8px 20px -5px rgba(0, 0, 0, .06);
}

/* ── Banner / header strip ────────────────────────────────── */
.con-form-banner {
    background: linear-gradient(135deg, var(--con-navy) 0%, #1e4db7 60%, var(--con-blue) 100%);
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
}
/* Subtle cross-hatch texture */
.con-form-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
/* Layout row */
.con-banner-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}
/* ── Logo / crest circle ──────────────────────────────────── */
.con-banner-logo {
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    border: 2px solid rgba(255, 255, 255, .35);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
    display: flex;
    align-items: center;
    justify-content: center;
}
.con-banner-logo--img {
    background: #fff;
    border-color: rgba(255, 255, 255, .7);
    padding: 7px;
    box-sizing: border-box;
}
.con-form-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 2px;
}
.con-banner-cross {
    font-size: 1.75rem;
    color: rgba(255, 255, 255, .9);
    line-height: 1;
}
/* ── Text block ───────────────────────────────────────────── */
.con-banner-text {
    flex: 1;
    min-width: 0;
}
.con-banner-org {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .65);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.con-banner-h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin: .15rem 0 0;
    line-height: 1.2;
    letter-spacing: -.01em;
}
.con-banner-conf-name {
    font-size: .875rem;
    font-weight: 700;
    color: #fde68a;
    margin: .2rem 0 0;
}
.con-banner-sub {
    font-size: .78rem;
    color: rgba(255, 255, 255, .6);
    margin: .2rem 0 0;
}
/* ── Conference details strip ─────────────────────────────── */
.con-form-conf-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem 1.25rem;
    margin-top: .9rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(255, 255, 255, .2);
    position: relative;
}
.con-form-conf-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    color: rgba(255, 255, 255, .8);
    font-weight: 500;
}
.con-form-conf-meta-icon { font-size: .8rem; flex-shrink: 0; }
.con-form-conf-meta-theme { color: #fde68a; font-weight: 700; font-style: italic; }
@media (max-width: 640px) {
    .con-form-banner   { padding: 1.1rem 1.1rem; }
    .con-banner-logo   { width: 50px; height: 50px; }
    .con-banner-h1     { font-size: 1.1rem; }
    .con-banner-org    { display: none; }
}

/* ── Landing logo ────────────────────────────────────────── */
.con-landing-logo {
    max-height: 90px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    flex-shrink: 0;
    background: rgba(255,255,255,.1);
    padding: 6px;
}

/* ── Section headers ──────────────────────────────────────── */
.con-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--con-navy);
    display: flex;
    align-items: center;
    gap: .6rem;
}
.con-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--con-navy);
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* ── Fields grid ──────────────────────────────────────────── */
.con-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

/* Full-width fields */
.con-field-group[data-field="province"],
.con-field-group[data-field="diocese"],
.con-field-group[data-field="office"] {
    grid-column: 1 / -1;
}

/* ── Province accordion ───────────────────────────────────── */
.con-province-accordion {
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, .12);
    background: #fff;
    position: relative;
    z-index: 100;
}

.con-prov-header {
    cursor: pointer;
    user-select: none;
    transition: background .15s;
}
.con-prov-header:hover { background: #eff6ff; }

.con-prov-dioceses {
    /* slides open via JS .hidden toggle; add a subtle animation */
    animation: conSlideDown .18s ease-out;
}
@keyframes conSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.con-diocese-btn {
    cursor: pointer;
    transition: background .12s, color .12s;
}
.con-diocese-btn:hover          { background: #eef2ff; color: #4338ca; }
.con-diocese-btn.selected,
.con-diocese-btn.bg-indigo-100  { background: #e0e7ff; color: #3730a3; font-weight: 600; }

/* ── Province trigger button ──────────────────────────────── */
.con-province-trigger {
    border-radius: .75rem;
    cursor: pointer;
    transition: border-color .15s;
}
.con-province-trigger:hover { border-color: var(--con-blue); }

/* ── Upload zone ──────────────────────────────────────────── */
.con-upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: .875rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    transition: border-color .2s, background .2s;
}
.con-upload-zone:hover {
    border-color: var(--con-blue);
    background: #eff6ff;
}

/* ── Inputs ───────────────────────────────────────────────── */
.con-input,
.con-select {
    background: #fff;
    border: 1.5px solid #cbd5e1;
    border-radius: .75rem;
    padding: .75rem 1rem;
    font-size: .875rem;
    color: #1e293b;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.con-input:focus,
.con-select:focus {
    outline: none;
    border-color: var(--con-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.con-input::placeholder { color: #94a3b8; }

/* ── Submit button ────────────────────────────────────────── */
.con-submit-btn {
    background: linear-gradient(135deg, var(--con-navy) 0%, var(--con-blue) 100%);
    color: #fff;
    border: none;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter .2s, transform .1s;
    letter-spacing: .01em;
    width: 100%;
}
.con-submit-btn:hover  { filter: brightness(1.08); }
.con-submit-btn:active { transform: scale(.98); }
.con-submit-btn:disabled { filter: grayscale(.6); cursor: not-allowed; }

.con-submit-btn-sm {
    background: linear-gradient(135deg, var(--con-navy) 0%, var(--con-blue) 100%);
    color: #fff;
    border: none;
    border-radius: .6rem;
    padding: .4rem .85rem;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter .15s;
}
.con-submit-btn-sm:hover { filter: brightness(1.1); }

/* ── Delegate block ───────────────────────────────────────── */
.con-delegate-block {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 1.125rem;
    padding: 1.5rem;
    position: relative;
    transition: border-color .2s;
}
.con-delegate-block:hover { border-color: #bfdbfe; }

/* ── Response / status area ───────────────────────────────── */
#con-response { min-height: 0; transition: min-height .2s; }

/* ── Delegates list table ─────────────────────────────────── */
.con-table-head {
    background: linear-gradient(90deg, var(--con-navy) 0%, #1e4db7 100%);
    color: #fff;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.con-table-head th { padding: .75rem 1rem; font-weight: 600; }

/* ── Admin panel overrides ────────────────────────────────── */
.con-admin-wrap { max-width: 1100px; }

.con-admin-h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--con-navy);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.con-admin-version {
    font-size: .75rem;
    background: var(--con-light);
    color: var(--con-navy);
    border-radius: 999px;
    padding: .2rem .6rem;
    font-weight: 600;
}

.con-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1.2rem 0;
}
.con-stat-card {
    background: #fff;
    border-radius: .875rem;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.con-stat-num   { font-size: 2rem; font-weight: 800; line-height: 1; }
.con-stat-label { font-size: .75rem; color: #64748b; margin-top: .25rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

.con-admin-card {
    background: #fff;
    border-radius: .875rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.con-admin-card-title { font-size: 1rem; font-weight: 700; color: var(--con-navy); margin-bottom: .75rem; }

.con-admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    justify-content: space-between;
    margin: .75rem 0;
}
.con-admin-toolbar-form { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }

.con-admin-table { border-radius: .75rem; overflow: hidden; }

/* ── Responsive tweaks ────────────────────────────────────── */
@media (max-width: 640px) {
    .con-form-banner { padding: 1.5rem 1.25rem; }
    .con-fields-grid { grid-template-columns: 1fr; }
    .con-submit-btn  { font-size: 1rem; }
}

/* ============================================================
   Landing Dashboard – Conference selection cards
   ============================================================ */

/* Card grid */
.con-landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Individual card */
.con-conf-card {
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.06);
    border: 1.5px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.con-conf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,.13);
}
.con-conf-card--closed {
    opacity: .72;
    filter: grayscale(.4);
}
.con-conf-card--closed:hover {
    transform: none;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

/* Card banner (colored top strip) */
.con-conf-card-banner {
    padding: 2rem 1.5rem 1.25rem;
    text-align: center;
    position: relative;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: .6rem;
}
.con-conf-card-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.18) 100%);
    pointer-events: none;
}
.con-conf-card-icon {
    font-size: 2.6rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.25));
    position: relative;
}

/* Status badges */
.con-open-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,.22);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: .25rem .85rem;
    border-radius: 999px;
    border: 1.5px solid rgba(255,255,255,.4);
    position: relative;
    backdrop-filter: blur(4px);
}
.con-open-badge::before { content: '\25CF'; font-size: .55rem; color: #4ade80; }
.con-closed-badge {
    display: inline-block;
    background: rgba(0,0,0,.28);
    color: rgba(255,255,255,.85);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .25rem .75rem;
    border-radius: 999px;
    position: relative;
}

/* Card body */
.con-conf-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.con-conf-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: .4rem;
}
.con-conf-theme {
    font-size: .8rem;
    color: #4f46e5;
    font-style: italic;
    margin-bottom: .75rem;
    line-height: 1.4;
}

/* Meta rows (dates, venue) */
.con-conf-meta {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin-bottom: .75rem;
}
.con-conf-meta-row {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    color: #64748b;
}
.con-conf-meta-icon { font-size: .9rem; flex-shrink: 0; }

/* Description */
.con-conf-desc {
    font-size: .8rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

/* Card footer (CTA button) */
.con-conf-card-footer { margin-top: auto; }

.con-conf-register-btn {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--con-navy) 0%, var(--con-blue) 100%);
    color: #fff;
    font-weight: 700;
    font-size: .875rem;
    padding: .75rem 1.25rem;
    border-radius: .875rem;
    text-decoration: none;
    transition: filter .2s, transform .1s;
    border: none;
    cursor: pointer;
    width: 100%;
}
.con-conf-register-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}
.con-conf-register-btn--disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    filter: none;
}
.con-conf-register-btn--disabled:hover {
    filter: none;
    transform: none;
}

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

/* ── Landing page redesign ──────────────────────────────────────────────────── */

/* Outer wrap — full viewport, light gradient background */
.con-landing-wrap {
    min-height: 100vh;
    background: linear-gradient(160deg, #e8f0fe 0%, #f1f5f9 55%, #ede9fe 100%);
    font-family: 'Inter', Arial, sans-serif;
}

/* Hero banner */
.con-landing-hero {
    background: linear-gradient(135deg, var(--con-navy) 0%, #1e4db7 55%, var(--con-blue) 100%);
    padding: 3.5rem 1.5rem 3rem;
    position: relative;
    overflow: hidden;
}
.con-landing-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}
.con-landing-hero-inner {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}
.con-landing-crest {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 2.5px solid rgba(255,255,255,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    flex-shrink: 0;
    backdrop-filter: blur(6px);
}
.con-landing-supertitle {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(190,215,255,.9);
    margin: 0 0 .25rem;
}
.con-landing-title {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 .4rem;
    line-height: 1.15;
}
.con-landing-subtitle {
    font-size: .95rem;
    color: rgba(190,215,255,.85);
    margin: 0;
    max-width: 440px;
}

/* Content area below hero */
.con-landing-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

/* Section headers (Open / Closed) */
.con-landing-section-hdr {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #1e293b;
    margin: 2rem 0 1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid #e2e8f0;
}
.con-landing-section-hdr:first-child { margin-top: 0; }
.con-landing-section-hdr--closed { color: #64748b; }
.con-landing-section-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.con-landing-section-dot--open   { background: #22c55e; box-shadow: 0 0 0 3px #dcfce7; }
.con-landing-section-dot--closed { background: #94a3b8; box-shadow: 0 0 0 3px #f1f5f9; }
.con-landing-section-count {
    margin-left: auto;
    background: #f1f5f9;
    color: #64748b;
    font-size: .7rem;
    font-weight: 700;
    padding: .15rem .55rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
}

/* Closed-section grid slightly smaller opacity */
.con-landing-grid--closed .con-conf-card { opacity: .8; }

/* Empty state */
.con-landing-empty {
    text-align: center;
    padding: 5rem 2rem;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    border: 1.5px solid #e2e8f0;
}
.con-landing-empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.con-landing-empty-title { font-size: 1.2rem; font-weight: 700; color: #1e293b; margin: 0 0 .4rem; }
.con-landing-empty-sub   { font-size: .875rem; color: #94a3b8; margin: 0; }

@media (max-width: 640px) {
    .con-landing-hero { padding: 2.5rem 1rem 2rem; }
    .con-landing-content { padding: 1.5rem 1rem 2rem; }
}


/* ============================================================
   Admin – Form Fields Builder (con-fb-*)
   ============================================================ */

.con-fb-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1180px;
    padding-top: 12px;
}

/* ── Top bar ─────────────────────────────────────────────── */
.con-fb-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.con-fb-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1a3a6b;
    margin: 0 0 3px;
    line-height: 1.2;
}
.con-fb-subtitle {
    font-size: .78rem;
    color: #64748b;
    margin: 0;
}
.con-fb-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.con-fb-btn-primary {
    background: linear-gradient(135deg, #1a3a6b, #2563eb);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter .15s, transform .1s;
    white-space: nowrap;
    line-height: 1.4;
}
.con-fb-btn-primary:hover  { filter: brightness(1.1); }
.con-fb-btn-primary:active { transform: scale(.97); }
.con-fb-btn-primary:disabled { filter: grayscale(.5); cursor: not-allowed; }

.con-fb-btn-ghost {
    background: transparent;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    line-height: 1.4;
}
.con-fb-btn-ghost:hover { border-color: #94a3b8; color: #1e293b; background: #f8fafc; }

.con-fb-msg-ok  { color: #059669; font-size: .875rem; font-weight: 600; }
.con-fb-msg-err { color: #dc2626; font-size: .875rem; font-weight: 600; }

/* ── Two-column layout ────────────────────────────────────── */
.con-fb-layout {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.con-fb-main    { flex: 1; min-width: 0; }
.con-fb-sidebar {
    width: 274px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 32px;
}

/* ── Panel container ──────────────────────────────────────── */
.con-fb-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.con-fb-panel-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.con-fb-panel-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #475569;
}
.con-fb-count-badge {
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: .72rem;
    font-weight: 700;
}

/* ── Field list container ─────────────────────────────────── */
.con-fb-list {
    padding: 8px;
    min-height: 100px;
}
.con-fb-empty {
    text-align: center;
    color: #94a3b8;
    padding: 32px 16px;
    font-size: .875rem;
    margin: 0;
    font-style: italic;
}

/* ── Individual field card ────────────────────────────────── */
.con-fb-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 5px;
    transition: border-color .15s, box-shadow .15s;
    user-select: none;
}
.con-fb-card:last-child { margin-bottom: 0; }
.con-fb-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 2px 10px rgba(37,99,235,.07);
}
.con-fb-card.is-expanded {
    border-color: #93c5fd;
    box-shadow: 0 4px 18px rgba(37,99,235,.10);
}
.con-fb-card.is-dragging {
    opacity: .5;
    border-style: dashed;
    box-shadow: 0 10px 32px rgba(0,0,0,.14);
}
.con-fb-card.drag-top  { border-top:    3px solid #2563eb; }
.con-fb-card.drag-bot  { border-bottom: 3px solid #2563eb; }

/* Card header row */
.con-fb-card-hdr {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    min-height: 48px;
    cursor: default;
}

.con-fb-drag {
    font-size: 1.05rem;
    color: #cbd5e1;
    cursor: grab;
    padding: 2px;
    flex-shrink: 0;
    line-height: 1;
    transition: color .12s;
}
.con-fb-drag:hover  { color: #94a3b8; }
.con-fb-drag:active { cursor: grabbing; }

.con-fb-type-dot {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    flex-shrink: 0;
}
.con-fb-name {
    flex: 1;
    font-size: .875rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.con-fb-typelbl {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
    flex-shrink: 0;
}
.con-fb-core-badge {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
    border-radius: 4px;
    font-size: .62rem;
    font-weight: 800;
    padding: 2px 6px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ── Toggle switches ──────────────────────────────────────── */
.con-fb-toggles {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.con-fb-tgl-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.con-fb-tgl-cap {
    font-size: .62rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    width: 11px;
    text-align: center;
}
/* The switch itself */
.con-fb-sw {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
    cursor: pointer;
}
.con-fb-sw input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.con-fb-slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 18px;
    transition: background .2s;
}
.con-fb-slider::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.con-fb-sw input:checked + .con-fb-slider              { background: #2563eb; }
.con-fb-sw input:checked + .con-fb-slider-r            { background: #dc2626; }
.con-fb-sw input:checked + .con-fb-slider::before      { transform: translateX(16px); }
.con-fb-sw input:checked + .con-fb-slider-r::before    { transform: translateX(16px); }

/* Card action buttons */
.con-fb-cfg-btn,
.con-fb-del-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 4px 7px;
    cursor: pointer;
    font-size: .875rem;
    line-height: 1;
    transition: background .12s, border-color .12s;
    flex-shrink: 0;
}
.con-fb-cfg-btn:hover { background: #eff6ff; border-color: #bfdbfe; }
.con-fb-del-btn:hover { background: #fef2f2; border-color: #fecaca; }
.con-fb-del-ph { width: 30px; flex-shrink: 0; display: inline-block; }

/* ── Expanded card body ───────────────────────────────────── */
.con-fb-card-body { display: none; border-top: 1px solid #e2e8f0; }
.con-fb-card.is-expanded .con-fb-card-body { display: block; }

.con-fb-body-inner {
    padding: 14px;
    background: #f8fafc;
}
.con-fb-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
}
.con-fb-setting-row { display: flex; flex-direction: column; gap: 4px; }
.con-fb-full        { grid-column: 1 / -1; }

.con-fb-lbl {
    font-size: .68rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.con-fb-lbl-inline {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .8rem;
    color: #374151;
    cursor: pointer;
}
.con-fb-req   { color: #dc2626; }
.con-fb-lock  { font-size: .75rem; }
.con-fb-note  { font-size: .68rem; color: #94a3b8; margin: 2px 0 0; }

.con-fb-txt {
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    padding: 7px 10px;
    font-size: .8rem;
    background: #fff;
    color: #1e293b;
    transition: border-color .12s, box-shadow .12s;
    width: 100%;
    box-sizing: border-box;
    user-select: text;
}
.con-fb-txt:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,.12);
}
.con-fb-txt.con-fb-readonly { background: #f1f5f9; color: #64748b; cursor: not-allowed; }

/* ── Options editor ───────────────────────────────────────── */
.con-fb-opts-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 8px;
}
.con-fb-opt-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.con-fb-opt-blt { font-size: .8rem; flex-shrink: 0; }
.con-fb-opt-inp {
    flex: 1;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    padding: 5px 9px;
    font-size: .8rem;
    background: #fff;
    user-select: text;
    color: #1e293b;
    transition: border-color .12s;
}
.con-fb-opt-inp:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,.1); }
.con-fb-opt-rm {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: .8rem;
    padding: 3px 5px;
    border-radius: 4px;
    transition: color .12s, background .12s;
    flex-shrink: 0;
}
.con-fb-opt-rm:hover { color: #dc2626; background: #fef2f2; }
.con-fb-add-opt {
    background: none;
    border: 1.5px dashed var(--accent, #6366f1);
    color: var(--accent, #6366f1);
    border-radius: 6px;
    padding: 5px 14px;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    align-self: flex-start;
}
.con-fb-add-opt:hover  { background: rgba(99,102,241,.07); }
.con-fb-no-opts { font-size: .75rem; color: #94a3b8; margin: 0 0 6px; font-style: italic; }

/* ── Type palette ─────────────────────────────────────────── */
.con-fb-palette {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    padding: 12px;
}
.con-fb-type-btn {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 6px 10px;
    cursor: pointer;
    text-align: center;
    transition: border-color .15s, box-shadow .15s, transform .12s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
    overflow: hidden;
}
.con-fb-type-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--type-color, #6366f1);
    opacity: 0;
    transition: opacity .15s;
}
.con-fb-type-btn:hover {
    border-color: var(--type-color, #6366f1);
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0,0,0,.10);
}
.con-fb-type-btn:hover::before { opacity: .06; }
.con-fb-type-btn:active { transform: scale(.95); }
.con-fb-type-sym {
    font-size: 1.35rem;
    line-height: 1;
    display: block;
    position: relative;
}
.con-fb-type-lbl {
    font-size: .63rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .05em;
    position: relative;
    line-height: 1.2;
}

/* ── Info / tips panel ────────────────────────────────────── */
.con-fb-info-body { padding: 12px 16px; }
.con-fb-info-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.con-fb-info-list li {
    font-size: .78rem;
    color: #374151;
    padding-left: 18px;
    position: relative;
    line-height: 1.45;
}
.con-fb-info-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: 700;
}

/* ── Spin animation on save button ───────────────────────── */
.con-fb-spin {
    display: inline-block;
    animation: con-fb-rotate .7s linear infinite;
}
@keyframes con-fb-rotate { to { transform: rotate(360deg); } }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .con-fb-layout  { flex-direction: column; }
    .con-fb-sidebar { width: 100%; position: static; }
    .con-fb-palette { grid-template-columns: repeat(4, 1fr); }
}

/* ── Form builder conference tabs ────────────────────────── */
.con-fb-conf-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.con-fb-conf-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    font-size: .8rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    background: #fff;
    transition: all .15s;
    white-space: nowrap;
}
.con-fb-conf-tab:hover { border-color: #2563eb; color: #2563eb; background: #eff6ff; text-decoration: none; }
.con-fb-conf-tab.is-active { background: #2563eb; border-color: #2563eb; color: #fff; }
.con-fb-conf-tab.is-active:hover { background: #1d4ed8; color: #fff; }

/* ── Inherited-form notice ───────────────────────────────── */
.con-fb-inherited-notice {
    background: #fef9c3;
    border: 1px solid #fde047;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .8rem;
    color: #713f12;
    margin: 0 8px 8px;
    line-height: 1.5;
}
.con-fb-inherited-notice strong { display: block; margin-bottom: 2px; }

/* ── Dashboard redesign ──────────────────────────────────── */
.con-dash-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 60%, #2563eb 100%);
    border-radius: 16px;
    margin-bottom: 20px;
    padding: 28px 32px;
}
.con-dash-banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}
.con-dash-crest {
    width: 56px; height: 56px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    flex-shrink: 0;
}
.con-dash-church {
    font-size: .7rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: #bfdbfe; margin-bottom: 2px;
}
.con-dash-title {
    font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1.1; margin: 0;
}
.con-dash-version {
    display: inline-block; margin-top: 4px;
    background: rgba(255,255,255,.18); color: #e0f2fe;
    border-radius: 20px; padding: 2px 10px;
    font-size: .7rem; font-weight: 700; letter-spacing: .05em;
}
.con-dash-banner-links { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.con-dash-action-btn {
    display: inline-flex; align-items: center;
    padding: 8px 18px; border-radius: 20px;
    background: rgba(255,255,255,.15); color: #fff;
    border: 1.5px solid rgba(255,255,255,.35);
    font-size: .8rem; font-weight: 700;
    text-decoration: none; transition: all .15s;
}
.con-dash-action-btn:hover { background: rgba(255,255,255,.28); color: #fff; text-decoration: none; }

/* Primary stat cards */
.con-dash-stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px;
}
@media (max-width: 900px) { .con-dash-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .con-dash-stats-grid { grid-template-columns: 1fr; } }
.con-dash-stat-card {
    background: #fff; border-radius: 14px;
    padding: 20px 22px; box-shadow: 0 2px 8px rgba(0,0,0,.06);
    display: flex; flex-direction: column; align-items: flex-start;
    border-top: 4px solid transparent;
}
.con-dash-stat-navy  { border-top-color: #1e3a8a; }
.con-dash-stat-green { border-top-color: #059669; }
.con-dash-stat-amber { border-top-color: #d97706; }
.con-dash-stat-red   { border-top-color: #dc2626; }
.con-dash-stat-icon  { font-size: 1.4rem; margin-bottom: 6px; }
.con-dash-stat-num   { font-size: 2.2rem; font-weight: 800; line-height: 1; color: #0f172a; }
.con-dash-stat-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #64748b; margin-top: 4px; }

/* Secondary stat cards */
.con-dash-secondary-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px;
}
@media (max-width: 600px) { .con-dash-secondary-grid { grid-template-columns: 1fr; } }
.con-dash-secondary-card {
    background: #f8fafc; border: 1.5px solid #e2e8f0;
    border-radius: 12px; padding: 14px 18px;
    display: flex; align-items: center; gap: 12px;
}
.con-dash-secondary-icon { font-size: 1.3rem; }
.con-dash-secondary-num  { font-size: 1.5rem; font-weight: 800; color: #1e3a8a; }
.con-dash-secondary-label { font-size: .75rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .05em; }

/* Province breakdown table */
.con-dash-table-card {
    background: #fff; border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06); padding: 20px 24px; max-width: 600px;
}
.con-dash-table-title {
    font-size: .95rem; font-weight: 700; color: #1e3a8a; margin-bottom: 12px;
}
.con-dash-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.con-dash-table thead th {
    padding: 8px 12px; text-align: left;
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: #64748b; border-bottom: 2px solid #e2e8f0;
}
.con-dash-table tbody tr:nth-child(even) { background: #f8fafc; }
.con-dash-table tbody td { padding: 8px 12px; color: #0f172a; }
.con-dash-tnum   { text-align: right; font-weight: 700; }
.con-dash-tpaid  { color: #059669; }
