/* Free Review — public savings-review tool. Reuses the sitewide Design 3 Dark Tech custom
   properties defined in style.css's :root (--gradient, --bg-card, --border, --text-muted, etc.)
   rather than redefining a palette, so this stays in sync if the site theme ever changes. */

.fr-hero-compact { padding-bottom: 1.5rem; }

.fr-progress {
    display: flex;
    gap: 0.75rem;
    margin: 1.25rem 0 0.5rem;
    flex-wrap: wrap;
}
.fr-progress-step {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--border);
}
.fr-progress-step.fr-progress-active {
    color: var(--text);
    border-bottom-color: var(--purple);
    font-weight: 600;
}
.fr-progress-step.fr-progress-done { color: var(--text-muted); border-bottom-color: var(--purple); }

/* "Start again" on steps 2 and 3 (Matt, 2026-10-02): visitors had no way back to step 1 to fix
   their details, because index.php forwards anyone with a lead in session straight to step 2. */
.fr-restart {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin: 0.25rem 0 1rem;
}
.fr-restart-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    flex: 1 1 16rem;
}

.fr-form-section { padding: 2.5rem 0 4rem; }

.fr-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.fr-small-print {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0.75rem 0 0;
}

.fr-honeypot { position: absolute; left: -9999px; top: -9999px; }

/* ── step 2: service picker ── */
.fr-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.fr-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    cursor: pointer;
    text-align: center;
    font-size: 0.85rem;
    transition: border-color var(--transition), transform var(--transition);
}
.fr-service-card:hover { border-color: rgba(168, 85, 247, 0.4); transform: translateY(-2px); }
.fr-service-card i { font-size: 1.5rem; color: var(--purple); }
.fr-service-card-open { border-color: var(--purple); box-shadow: var(--shadow-glow); }

.fr-add-form {
    display: none;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-top: 1rem;
}
.fr-add-form-open { display: block; }
/* No-JS fallback: every form is a real, submittable element in the page already (service.php),
   so with JS disabled all of them show at once — degraded but fully functional. */
.no-js .fr-add-form { display: block; }

.fr-items-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.fr-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.fr-item-label { font-weight: 600; color: var(--text); }
.fr-item-meta { font-size: 0.8rem; color: var(--text-muted); }
.fr-remove-form { margin: 0; }

/* ── step 3: results ── */
.fr-table-wrap { overflow-x: auto; }
.fr-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.fr-table th {
    text-align: left;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}
.fr-table td { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.fr-saving-cell { color: var(--cyan); font-weight: 700; }

/* ── CTA partial embedded at the bottom of service pages ── */
.fr-cta-band {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin-top: 1rem;
}
.fr-cta-band h2 { margin-bottom: 0.5rem; }

@media (max-width: 576px) {
    .fr-services-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
