/* =========================
   FILTER BAR
========================= */
.franchise-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.franchise-filters select {
    padding: 10px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    color: #334155;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    background-color: white;
    cursor: pointer;
    transition: all 0.15s ease;
}

.franchise-filters select:hover {
    border-color: #94a3b8;
}

.franchise-filters select:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.1);
}


/* =========================
   SHORTLIST
========================= */
#shortlist-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#shortlist-container strong {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

#shortlist-items {
    display: flex;
    flex-wrap: wrap;
}

#shortlist-items div {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e0f2fe;
    color: #0369a1;
    padding: 6px 10px;
    border-radius: 6px;
    margin: 5px 5px 0 0;
    font-size: 13px;
}


/* Remove button inside shortlist */
.remove-shortlist-btn {
    border: none;
    background: #ef4444;
    color: white;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.remove-shortlist-btn:hover {
    background: #dc2626;
}


/* =========================
   GRID
========================= */
.franchise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 30px;
}


/* =========================
   CARD
========================= */
.franchise-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-top: 4px solid #0056b3;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.franchise-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.franchise-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
}


/* =========================
   SHORTLIST BUTTON (CARD)
========================= */
.shortlist-btn {
    display: inline-block;
    margin: 8px 0 12px;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shortlist-btn:hover {
    background: #f1f5f9;
}

.shortlist-btn.active {
    background: #dcfce7;
    border-color: #22c55e;
    color: #166534;
    font-weight: 500;
}


/* =========================
   BADGES
========================= */
.franchise-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.badge {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Fit Colors */
.badge.fit-poor { background: #fee2e2; color: #991b1b; }
.badge.fit-neutral { background: #fef08a; color: #854d0e; }
.badge.fit-good { background: #dcfce7; color: #166534; }


/* =========================
   COMMENT BOX
========================= */
.franchise-comment {
    background: #f8fafc;
    border-left: 3px solid #94a3b8;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 15px;
    line-height: 1.5;
}

/* =========================
   SHORTLIST EMAIL + BUTTON (FIXED)
========================= */

#shortlist-container form-row {
    display: flex;
}

/* Wrapper for input + button */
.shortlist-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* EMAIL INPUT */
#shortlist-container input[type="email"] {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    width: 260px;
    max-width: 100%;
    transition: all 0.15s ease;
}

#shortlist-container input[type="email"]:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.1);
}

/* BUTTON */
.shortlist-action-btn {
    padding: 10px 16px;
    background: #0056b3;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.shortlist-action-btn:hover {
    background: #004494;
}

.shortlist-action-btn:active {
    transform: translateY(1px);
}

/* =========================
   ASSESSMENT TITLE (PLACEMENT FIXED)
========================= */

.assessment-title {
    font-size: 28px;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 20px;
    padding: 10px 20px 0; /* ← THIS fixes the left alignment */
    color: #1e293b;
}