/* ---------- 1. Design tokens ---------- */
:root {
    --fr-bg: #eef6f3; /* page background (mint) */
    --fr-surface: #ffffff; /* cards, header, tables */
    --fr-soft: #f5faf8; /* table rows, inner boxes */
    --fr-tint: #d7efe8; /* active pills, icon circles */
    --fr-accent: #0f766e; /* teal: buttons, links, active */
    --fr-accent-dark: #0b5a54; /* hover */
    --fr-text: #14302b; /* main text */
    --fr-muted: #4b635e; /* labels, secondary text */
    --fr-border: #dceae5; /* input + divider lines */
    --fr-radius: 20px; /* cards */
    --fr-radius-sm: 12px; /* inputs, inner boxes */

    /* hand the tokens to Bootstrap */
    --bs-body-font-family: "Manrope", system-ui, sans-serif;
    --bs-body-bg: var(--fr-bg);
    --bs-body-color: var(--fr-text);
    --bs-secondary-color: var(--fr-muted);
    --bs-primary: var(--fr-accent);
    --bs-primary-rgb: 15, 118, 110;
    --bs-link-color: var(--fr-accent);
    --bs-link-color-rgb: 15, 118, 110;
    --bs-link-hover-color: var(--fr-accent-dark);
    --bs-border-color: var(--fr-border);
    --bs-border-radius: var(--fr-radius-sm);
}

body {
    background: var(--fr-bg);
    color: var(--fr-text);
    font-family: var(--bs-body-font-family);
    font-size: 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
}
h1 {
    font-size: 30px;
}
.text-muted {
    color: var(--fr-muted) !important;
}

/* ---------- 2. Header + navigation ---------- */
.fr-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 28px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.fr-shell > main {
    flex: 1; /* keeps the footer at the bottom on short pages */
}
/* staff pages: the full-width footer sits outside .fr-shell, so the page itself fills the screen */
.fr-staff {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.fr-staff > .fr-shell {
    flex: 1 0 auto;
    width: 100%;
    min-height: auto;
}
.fr-header {
    background: var(--fr-surface);
    border-radius: var(--fr-radius);
    padding: 10px 14px 10px 18px;
    box-shadow: 0 1px 2px rgba(20, 48, 43, 0.06);
    margin-bottom: 28px;
}
.fr-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--fr-text);
    font-weight: 800;
    font-size: 17px;
}
.fr-brand:hover {
    color: var(--fr-text);
}
.fr-logo {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--fr-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fr-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--fr-muted);
}
.fr-nav-link:hover {
    background: var(--fr-soft);
    color: var(--fr-text);
}
.fr-nav-link.active {
    background: var(--fr-tint);
    color: var(--fr-accent);
}

.fr-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fr-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--fr-tint);
    color: var(--fr-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
}
.fr-user-name {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
}
.fr-user-role {
    font-size: 12px;
    color: var(--fr-muted);
}
.fr-logout {
    border: 0;
    background: none;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--fr-accent);
}
.fr-logout:hover {
    color: var(--fr-accent-dark);
    text-decoration: underline;
}

.fr-toggler {
    border: 0;
    background: var(--fr-soft);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    color: var(--fr-text);
}

/* ---------- 3. Cards ---------- */
.card {
    border: 0;
    border-radius: var(--fr-radius);
    box-shadow: 0 1px 2px rgba(20, 48, 43, 0.05);
}
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--fr-border);
    border-radius: var(--fr-radius) var(--fr-radius) 0 0 !important;
    font-weight: 700;
}

/* ---------- 4. Buttons (pill-shaped; btn-dark becomes teal) ---------- */
.btn {
    border-radius: 999px;
    font-weight: 700;
    min-height: 44px;
    padding-left: 20px;
    padding-right: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-sm {
    min-height: 34px;
    padding-left: 14px;
    padding-right: 14px;
    font-size: 13px;
}

.btn-dark,
.btn-primary {
    --bs-btn-bg: var(--fr-accent);
    --bs-btn-border-color: var(--fr-accent);
    --bs-btn-hover-bg: var(--fr-accent-dark);
    --bs-btn-hover-border-color: var(--fr-accent-dark);
    --bs-btn-active-bg: var(--fr-accent-dark);
    --bs-btn-active-border-color: var(--fr-accent-dark);
    --bs-btn-disabled-bg: var(--fr-accent);
    --bs-btn-disabled-border-color: var(--fr-accent);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
}
.btn-outline-dark,
.btn-outline-secondary {
    --bs-btn-color: var(--fr-text);
    --bs-btn-bg: var(--fr-surface);
    --bs-btn-border-color: var(--fr-border);
    --bs-btn-hover-color: var(--fr-text);
    --bs-btn-hover-bg: var(--fr-soft);
    --bs-btn-hover-border-color: var(--fr-border);
    --bs-btn-active-color: var(--fr-text);
    --bs-btn-active-bg: var(--fr-tint);
    --bs-btn-active-border-color: var(--fr-tint);
}
.btn-outline-success {
    --bs-btn-color: var(--fr-accent);
    --bs-btn-border-color: var(--fr-accent);
    --bs-btn-hover-bg: var(--fr-accent);
    --bs-btn-hover-border-color: var(--fr-accent);
}

/* ---------- 5. Tables ---------- */
.table {
    --bs-table-bg: var(--fr-surface);
    --bs-table-striped-bg: var(--fr-soft);
    --bs-table-hover-bg: var(--fr-tint);
    --bs-table-border-color: var(--fr-border);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
    font-size: 14px;
}
.table > thead th {
    font-size: 12px;
    font-weight: 700;
    color: var(--fr-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--fr-border);
    padding-top: 12px;
    padding-bottom: 12px;
}
.table > tbody td {
    padding-top: 12px;
    padding-bottom: 12px;
    vertical-align: middle;
}
.table > tbody tr:last-child td {
    border-bottom: 0;
}
.table-responsive,
.fr-table-scroll {
    overflow-x: auto;
    border-radius: 16px;
}

/* ---------- 6. Forms ---------- */
.form-label {
    font-weight: 700;
    font-size: 14px;
}
.form-control,
.form-select {
    border-radius: var(--fr-radius-sm);
    border-color: var(--fr-border);
    min-height: 44px;
}
.form-control-sm,
.form-select-sm {
    min-height: 34px;
    border-radius: 10px;
}
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--fr-accent);
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.2);
}
.form-check-input:checked {
    background-color: var(--fr-accent);
    border-color: var(--fr-accent);
}
.form-text {
    color: var(--fr-muted);
}

/* ---------- 7. Badges ---------- */
.badge {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.4em 0.8em;
}
.badge.bg-dark {
    background: var(--fr-tint) !important;
    color: var(--fr-accent) !important;
}
.badge.bg-success {
    background: #d1f2e4 !important;
    color: #0b6b45 !important;
}
.badge.bg-danger {
    background: #fde2e1 !important;
    color: #a4231c !important;
}
.badge.bg-secondary {
    background: #e7ecea !important;
    color: #46524f !important;
}
.badge.bg-info {
    background: #dceffb !important;
    color: #0b5a86 !important;
}

/* ---------- 8. Alerts ---------- */
.alert {
    border: 0;
    border-radius: 16px;
    font-weight: 500;
}
.alert-success {
    background: #d7efe8;
    color: #0b4f49;
}
.alert-danger {
    background: #fde2e1;
    color: #8a1c16;
}
.alert-info {
    background: #e1f0fa;
    color: #0b4a70;
}
.alert-warning {
    background: #fdf0d5;
    color: #7a4b00;
}

/* ---------- 9. Tabs  ---------- */
.nav-tabs {
    border-bottom: 0;
    gap: 6px;
    flex-wrap: wrap;
}
.nav-tabs .nav-link {
    border: 0;
    border-radius: 999px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    font-weight: 700;
    font-size: 14px;
    color: var(--fr-muted);
    background: var(--fr-surface);
}
.nav-tabs .nav-link:hover {
    color: var(--fr-text);
    background: var(--fr-soft);
}
.nav-tabs .nav-link.active {
    color: #fff;
    background: var(--fr-accent);
}

/* ---------- 10. Small screens ---------- */
@media (max-width: 991.98px) {
    .fr-shell {
        padding: 16px 16px 20px;
    }
    .fr-header {
        border-radius: 16px;
    }
}
/* staff menu behind the menu button (below 1200px): one column on phones, a grid on tablets */
@media (max-width: 1199.98px) {
    .fr-nav {
        padding-top: 10px;
    }
    .fr-nav-link {
        width: 100%;
    }
}
@media (min-width: 576px) and (max-width: 1199.98px) {
    .fr-nav {
        display: grid !important; /* overrides Bootstrap's d-flex */
        grid-template-columns: repeat(3, 1fr);
    }
}
/* 1200–1399px: the full menu only just fits, so tighten it and show the logo mark alone */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .fr-brand-text {
        display: none;
    }
    .fr-nav-link {
        padding: 0 11px;
    }
}

/* ---------- 11. Login page: split card, glass form side ---------- */
.fr-login {
    position: relative;
    min-height: calc(100vh - 116px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    overflow: hidden; /* glows never cause scrollbars */
}

/* wrapper: the glows are placed around this */
.fr-login-wrap {
    position: relative;
    width: 100%;
    max-width: 940px;
}

/* keeps the back link above the glows */
.fr-login-wrap > .fr-back {
    position: relative;
    z-index: 1;
}

/* teal glows behind the form side */
.fr-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(26px);
    z-index: 0;
}
/* top-right corner */
.fr-glow-a {
    right: -170px;
    top: -180px;
    width: 500px;
    height: 500px;
    opacity: 0.95;
    background: radial-gradient(circle, #14b8a6 0%, rgba(20, 184, 166, 0) 66%);
}
/* bottom of the form side */
.fr-glow-b {
    right: 8%;
    bottom: -230px;
    width: 520px;
    height: 520px;
    opacity: 0.9;
    background: radial-gradient(circle, #0f766e 0%, rgba(15, 118, 110, 0) 66%);
}
/* at the seam: the teal panel bleeding into the glass */
.fr-glow-c {
    left: 36%;
    top: 18%;
    width: 300px;
    height: 300px;
    opacity: 0.75;
    background: radial-gradient(circle, #0b5a54 0%, rgba(11, 90, 84, 0) 66%);
}

/* the card: no background of its own, so each half controls its look */
.fr-login-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 24px 60px rgba(11, 60, 55, 0.22);
}

/* left: solid teal brand panel */
.fr-login-brand {
    flex: 1 1 320px;
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    color: #fff;
    background: linear-gradient(160deg, #0f766e 0%, #0b5a54 100%);
}
.fr-login-brand h2 {
    color: #fff;
    font-size: 28px;
    margin: 0 0 8px;
}
.fr-login-brand p {
    color: #d7efe8;
    margin: 0;
}
.fr-login-logo {
    width: 250px;
    max-width: 100%;
    height: auto;
    display: block;
}
.fr-login-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fr-login-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
}
.fr-login-points li span {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* right: the liquid glass form side */
.fr-login-form {
    flex: 1 1 360px;
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    backdrop-filter: blur(24px) saturate(190%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        inset 1px 0 0 rgba(255, 255, 255, 0.35);
}
.fr-login-form h1 {
    color: #0e2724;
}
.fr-login-form p.text-muted {
    color: #24403b !important;
}
.fr-login-form .form-label {
    font-weight: 700;
    color: #0e2724;
}
.fr-login-form .form-control {
    min-height: 46px;
    border-radius: 14px;
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.66);
    box-shadow: inset 0 1px 2px rgba(11, 60, 55, 0.08);
}
.fr-login-form .form-control:focus {
    background: rgba(255, 255, 255, 0.94);
    border-color: var(--fr-accent);
}
.fr-login-form .btn-dark {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f766e, #0b5a54);
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.4);
}
.fr-login-form .btn-dark:hover {
    background: linear-gradient(135deg, #0b5a54, #083f3b);
}
.fr-login-form .alert {
    background: rgba(253, 226, 225, 0.9);
}

.fr-pass-wrap {
    position: relative;
}
.fr-pass-wrap .form-control {
    padding-right: 80px;
}
.fr-pass-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    min-height: 34px;
    padding: 0 12px;
    background: rgba(15, 118, 110, 0.14);
    color: var(--fr-accent-dark);
    font-size: 13px;
    font-weight: 700;
}

/* browsers without the frosted effect: solid, readable form side */
@supports not (
    (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
    .fr-login-form {
        background: rgba(255, 255, 255, 0.94);
    }
}

/* phones: panel stacks above the form, glows move under the form */
@media (max-width: 767.98px) {
    .fr-glow-a {
        width: 320px;
        height: 320px;
        right: -120px;
        top: auto;
        bottom: 120px;
    }
    .fr-glow-b {
        width: 340px;
        height: 340px;
        right: auto;
        left: -120px;
        bottom: -140px;
    }
    .fr-glow-c {
        display: none;
    }
    .fr-login-brand,
    .fr-login-form {
        padding: 32px 26px;
    }
}
/* ---------- 12. Dashboard ---------- */
.fr-page-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 22px;
}
.fr-page-head h1 {
    margin: 0;
    font-size: 32px;
}
.fr-page-sub {
    color: var(--fr-muted);
    margin-top: 4px;
}

.fr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.btn-light {
    --bs-btn-bg: var(--fr-surface);
    --bs-btn-border-color: var(--fr-surface);
    --bs-btn-color: var(--fr-text);
    --bs-btn-hover-bg: var(--fr-tint);
    --bs-btn-hover-border-color: var(--fr-tint);
    --bs-btn-hover-color: var(--fr-accent);
}

/* KPI cards */
.fr-kpi {
    background: var(--fr-surface);
    border-radius: var(--fr-radius);
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fr-kpi-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.fr-kpi-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--fr-muted);
}
.fr-kpi-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--fr-tint);
    color: var(--fr-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fr-kpi-value {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.fr-kpi-note {
    font-size: 13px;
    color: var(--fr-muted);
}

/* panels */
.fr-panel {
    background: var(--fr-surface);
    border-radius: var(--fr-radius);
    padding: 20px;
    height: 100%;
}
.fr-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.fr-panel-head h2 {
    margin: 0;
    font-size: 18px;
}
.fr-panel-head a {
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

/* list-style table (rows as soft pills) */
.fr-list-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    font-size: 14px;
}
.fr-list-table th {
    font-size: 12px;
    font-weight: 700;
    color: var(--fr-muted);
    padding: 4px 14px;
    text-align: left;
}
.fr-list-table td {
    background: var(--fr-soft);
    padding: 12px 14px;
}
.fr-list-table td:first-child {
    border-radius: 12px 0 0 12px;
}
.fr-list-table td:last-child {
    border-radius: 0 12px 12px 0;
}
.fr-list-table .num {
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
}

/* progress bars */
.fr-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.fr-bar-text {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 8px;
}
.fr-bar-track {
    height: 10px;
    background: #e6f2ee;
    border-radius: 999px;
    overflow: hidden;
}
.fr-bar-fill {
    height: 100%;
    background: var(--fr-accent);
    border-radius: 999px;
}
.fr-you {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--fr-tint);
    color: var(--fr-accent);
    font-size: 11px;
    font-weight: 800;
}

/* small info tiles */
.fr-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.fr-tile {
    display: block;
    background: var(--fr-soft);
    border-radius: 16px;
    padding: 16px;
    color: var(--fr-text);
    text-decoration: none;
}
a.fr-tile:hover {
    background: var(--fr-tint);
    color: var(--fr-text);
}
.fr-tile-title {
    font-weight: 700;
}
.fr-tile-note {
    font-size: 13px;
    color: var(--fr-muted);
    margin-top: 4px;
}
.fr-tile-value {
    font-size: 22px;
    font-weight: 800;
    margin-top: 2px;
}

.fr-empty {
    color: var(--fr-muted);
    padding: 18px;
    text-align: center;
    background: var(--fr-soft);
    border-radius: 12px;
}

/* ---------- 12b. Car photos ---------- */
.fr-photo-count {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: #d7efe8;
    color: #0b5a54;
    font-weight: 700;
    font-size: 14px;
}

/* upload drop zone */
.fr-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 34px 20px;
    text-align: center;
    cursor: pointer;
    border: 2px dashed rgba(15, 118, 110, 0.35);
    border-radius: 22px;
    background: linear-gradient(180deg, #f5faf8, #eef6f3);
    transition:
        border-color 0.15s,
        background 0.15s,
        transform 0.15s;
}
.fr-drop:hover,
.fr-drop.is-over {
    border-color: #0f766e;
    background: #e3f3ee;
    transform: translateY(-1px);
}
.fr-drop:focus-within {
    outline: 3px solid rgba(15, 118, 110, 0.35);
    outline-offset: 2px;
}
.fr-drop-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.3);
}

/* previews before upload */
.fr-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.fr-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(11, 60, 55, 0.12);
}
.fr-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fr-preview-item span {
    position: absolute;
    left: 6px;
    bottom: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(14, 39, 36, 0.7);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.fr-preview-item.is-bad {
    border-color: #dc2626;
}
.fr-preview-item.is-bad img {
    opacity: 0.45;
}

/* gallery */
.fr-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.fr-photo {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e3ece9;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(11, 60, 55, 0.06);
    transition:
        transform 0.15s,
        box-shadow 0.15s;
}
.fr-photo:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(11, 60, 55, 0.12);
}
.fr-photo.is-cover {
    border-color: #0f766e;
    box-shadow:
        0 0 0 2px #0f766e,
        0 10px 24px rgba(15, 118, 110, 0.18);
}
.fr-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: #eef6f3;
}
.fr-photo figcaption {
    padding: 12px 14px 14px;
}
.fr-photo-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 14px rgba(15, 118, 110, 0.35);
}

/* no photos yet */
.fr-photo-empty {
    padding: 48px 20px;
    text-align: center;
    color: #4b635e;
    border: 2px dashed #dce7e3;
    border-radius: 22px;
    background: #fafcfb;
}
.fr-photo-empty span {
    font-size: 40px;
    display: block;
    margin-bottom: 8px;
}
/* ---------- 13. Car details + inventory thumbnails ---------- */
.fr-car-head {
    color: #fff;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(20, 184, 166, 0.35),
            transparent 55%
        ),
        linear-gradient(160deg, #0f766e 0%, #0b5a54 100%);
    border-radius: var(--fr-radius);
    padding: 28px;
}
.fr-car-head-sub {
    color: #e6f5f0;
}
.fr-car-price {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}
.fr-car-card {
    --bs-card-bg: var(--fr-surface);
    --bs-card-spacer-x: 28px;
    --bs-card-spacer-y: 28px;
}
.fr-car-card h2 {
    font-weight: 800;
}

/* gallery */
.fr-gallery-main {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #eef6f3;
    box-shadow: 0 14px 34px rgba(11, 60, 55, 0.14);
}
.fr-gallery-main img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}
.fr-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    color: #0e2724;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 16px rgba(11, 60, 55, 0.18);
    transition:
        background 0.15s,
        transform 0.15s;
}
.fr-gallery-nav:hover {
    background: rgba(255, 255, 255, 0.88);
    transform: translateY(-50%) scale(1.06);
}
.fr-gallery-nav.is-prev {
    left: 14px;
}
.fr-gallery-nav.is-next {
    right: 14px;
}
.fr-gallery-count {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(14, 39, 36, 0.65);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.fr-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding: 4px 2px 6px;
    overflow-x: auto;
}
.fr-thumb {
    flex: 0 0 96px;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #eef6f3;
    opacity: 0.6;
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition:
        opacity 0.15s,
        outline-color 0.15s;
}
.fr-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fr-thumb:hover {
    opacity: 0.9;
}
.fr-thumb.is-active {
    opacity: 1;
    outline-color: #0f766e;
}
.fr-gallery-empty {
    aspect-ratio: 16 / 10;
    padding: 20px;
    text-align: center;
    color: #4b635e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cfe3dc;
    border-radius: 24px;
    background: linear-gradient(160deg, #f5faf8, #e7f2ee);
}
.fr-gallery-empty > span {
    font-size: 54px;
    margin-bottom: 6px;
}

/* details list */
.fr-spec {
    display: grid;
    grid-template-columns: auto 1fr;
    margin: 0;
}
.fr-spec dt,
.fr-spec dd {
    padding: 10px 0;
    border-bottom: 1px solid var(--fr-border);
}
.fr-spec dt:last-of-type,
.fr-spec dd:last-of-type {
    border-bottom: 0;
}
.fr-spec dt {
    color: #4b635e;
    font-weight: 600;
    font-size: 14px;
}
.fr-spec dd {
    margin: 0;
    padding-left: 18px;
    font-weight: 700;
    text-align: right;
}
.fr-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: -2px;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

/* repair timeline */
.fr-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 14px 0 14px 18px;
    border-left: 3px solid #d7efe8;
}
.fr-timeline-item::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 20px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #0f766e;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #d7efe8;
}
.fr-timeline-date {
    font-weight: 700;
    font-size: 14px;
}
.fr-timeline-date span {
    display: block;
    color: #4b635e;
    font-weight: 500;
    font-size: 13px;
}

/* inventory list thumbnails */
.fr-thumb-cell {
    width: 84px;
}
.fr-car-thumb {
    position: relative;
    display: block;
    width: 72px;
    height: 54px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(160deg, #f5faf8, #e3f0eb);
    box-shadow: 0 2px 8px rgba(11, 60, 55, 0.1);
    transition: transform 0.15s;
}
.fr-car-thumb:hover {
    transform: scale(1.05);
}
.fr-car-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fr-car-thumb-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fr-tint);
    color: var(--fr-accent);
    font-size: 22px;
    font-weight: 800;
}
.fr-car-thumb-count {
    position: absolute;
    right: 4px;
    bottom: 4px;
    min-width: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(14, 39, 36, 0.72);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}
.fr-car-link {
    font-weight: 700;
    color: inherit;
    text-decoration: none;
}
.fr-car-link:hover {
    color: #0f766e;
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .fr-timeline-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .fr-spec dd {
        text-align: left;
    }
}
/* ---------- 14. Page tools (filters, search, detail lists) ---------- */
.fr-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.fr-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.fr-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--fr-surface);
    color: var(--fr-muted);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}
.fr-filter:hover {
    background: var(--fr-soft);
    color: var(--fr-text);
}
.fr-filter.active {
    background: var(--fr-accent);
    color: #fff;
}
.fr-filter .count {
    background: rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 12px;
}
.fr-filter.active .count {
    background: rgba(255, 255, 255, 0.22);
}

.fr-search {
    display: flex;
    gap: 8px;
    flex: 1 1 280px;
    max-width: 420px;
}

.fr-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 14px;
}

.fr-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.fr-detail {
    background: var(--fr-soft);
    border-radius: 14px;
    padding: 14px 16px;
}
.fr-detail-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--fr-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.fr-detail-value {
    font-weight: 700;
    font-size: 16px;
    margin-top: 2px;
    word-break: break-all;
}

.fr-form-card {
    background: var(--fr-surface);
    border-radius: var(--fr-radius);
    padding: 28px;
    max-width: 760px;
}
.fr-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}
/* ---------- 15. Sales ---------- */
.fr-tabs {
    margin-bottom: 20px;
}
.fr-commission {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: var(--fr-tint);
    color: var(--fr-accent-dark);
    border-radius: 14px;
    padding: 14px 18px;
    font-weight: 700;
}
.fr-commission strong {
    font-size: 20px;
}
.fr-section-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fr-muted);
    margin: 8px 0 12px;
}
.fr-client-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--fr-border);
}
/* ---------- 16. Logo ---------- */
.fr-brand-mark {
    height: 34px;
    width: auto;
    display: block;
}
.fr-login-logo {
    width: 260px;
    max-width: 100%;
    height: auto;
    display: block;
}
.fr-error-logo {
    width: 220px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 18px;
}

/* teal welcome banner on the dashboard */
.fr-welcome {
    background: var(--fr-accent);
    color: #fff;
    border-radius: var(--fr-radius);
    padding: 26px 28px;
    margin-bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.fr-welcome h1 {
    color: #fff;
    margin: 0;
    font-size: 30px;
}
.fr-welcome-sub {
    color: var(--fr-tint);
    margin-top: 4px;
}
.fr-welcome-mark {
    height: 64px;
    width: auto;
    opacity: 0.9;
}
@media (max-width: 575.98px) {
    .fr-welcome-mark {
        display: none;
    }
}
/* ---------- 17. Filter panel ---------- */
.fr-filterbar {
    background: var(--fr-surface);
    border-radius: var(--fr-radius);
    margin-bottom: 12px;
}
.fr-filterbar > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    min-height: 44px;
    font-weight: 800;
}
.fr-filterbar > summary::-webkit-details-marker {
    display: none;
}
.fr-filterbar > summary:focus-visible {
    outline: 3px solid rgba(15, 118, 110, 0.35);
    outline-offset: 2px;
    border-radius: var(--fr-radius);
}
.fr-filter-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex-shrink: 0;
    background: var(--fr-tint);
    color: var(--fr-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.fr-filter-badge {
    background: var(--fr-accent);
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    padding: 1px 9px;
}
.fr-filter-results {
    margin-left: auto;
    color: var(--fr-muted);
    font-weight: 600;
    font-size: 14px;
}
.fr-filter-results strong {
    color: var(--fr-text);
}
.fr-chevron {
    transition: transform 0.2s ease;
    color: var(--fr-muted);
}
.fr-filterbar[open] .fr-chevron {
    transform: rotate(180deg);
}

.fr-filter-body {
    border-top: 1px solid var(--fr-border);
    padding: 16px;
}
.fr-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}
.fr-field-wide {
    grid-column: span 2;
}
.fr-field > label,
.fr-field-label {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fr-muted);
}
.fr-input-icon {
    position: relative;
}
.fr-input-icon > svg {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fr-muted);
    pointer-events: none;
}
.fr-input-icon > .form-control {
    padding-left: 38px;
}
.fr-range {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fr-range > span {
    color: var(--fr-muted);
    font-size: 13px;
    font-weight: 700;
}
.fr-range > .form-control {
    min-width: 0;
}

.fr-presets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
}
.fr-presets-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--fr-muted);
    margin-right: 2px;
}
.fr-preset {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--fr-soft);
    color: var(--fr-text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.fr-preset:hover {
    background: var(--fr-tint);
    color: var(--fr-accent);
}
.fr-preset.active {
    background: var(--fr-accent);
    color: #fff;
}

.fr-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

/* active filter chips */
.fr-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 16px;
}
.fr-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 6px 0 12px;
    border-radius: 999px;
    background: var(--fr-tint);
    color: var(--fr-accent-dark);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.fr-chip .x {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(15, 118, 110, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}
.fr-chip:hover {
    color: var(--fr-accent-dark);
}
.fr-chip:hover .x {
    background: var(--fr-accent);
    color: #fff;
}
.fr-chip-clear {
    font-size: 13px;
    font-weight: 700;
    margin-left: 4px;
}

/* ---------- Page links under a list ---------- */
.fr-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--fr-border);
}
.fr-pager-info {
    color: var(--fr-muted);
    font-size: 14px;
}
.fr-pager-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.fr-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: var(--fr-radius-sm);
    color: var(--fr-accent-dark);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
a.fr-page-link:hover {
    background: var(--fr-tint);
    color: var(--fr-accent-dark);
}
.fr-page-link.active,
a.fr-page-link.active:hover {
    background: var(--fr-accent);
    color: #fff;
}
.fr-page-link.disabled {
    color: var(--fr-muted);
    opacity: 0.55;
}
.fr-page-gap {
    color: var(--fr-muted);
    padding: 0 2px;
}
.fr-pager-standalone {
    margin-top: 12px;
    padding: 14px 18px;
    border-top: 0;
    border-radius: var(--fr-radius);
    background: var(--fr-surface);
}

@media (max-width: 575.98px) {
    .fr-field-wide {
        grid-column: auto;
    }
    .fr-filter-results {
        display: none;
    }
}

/* ---------- 18. Customer site ---------- */
.fr-site {
    background: #f4f8f7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.fr-site-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* header: frosted, sticky */
.fr-site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #e3ece9;
}
.fr-site-header .fr-site-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.fr-site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.fr-site-nav a:not(.btn),
.fr-site-link {
    font-weight: 700;
    color: #14302b;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    border: 0;
    background: none;
}
.fr-site-nav a:not(.btn):hover,
.fr-site-link:hover {
    background: #eef6f3;
}
.fr-site-nav a.active {
    background: #d7efe8;
    color: #0b5a54;
}
/* phones + tablets: the menu opens below the logo as a list */
@media (max-width: 991.98px) {
    .fr-site-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px 0 4px;
    }
    .fr-site-nav a:not(.btn) {
        padding: 10px 14px;
    }
    .fr-site-nav .btn {
        margin-top: 8px;
        padding: 10px 14px;
    }
    .fr-site-account {
        width: 100%;
        margin-top: 8px;
    }
}

.fr-site-main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

/* sign in / create account: no header or footer, so the page fills the screen */
.fr-site-main.is-bare {
    max-width: none;
    padding: 0;
}
.fr-site-main.is-bare .fr-login {
    min-height: 100vh;
    padding: 40px 20px;
}

/* footer */
.fr-site-footer {
    background: #0b3b36;
    color: #bfe6dc;
    padding: 28px 0;
}
.fr-site-footer .fr-site-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.fr-site-footer a {
    color: #fff;
    font-weight: 700;
}
.fr-footer-links h2 {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #bfe6dc;
}
.fr-footer-links div {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 6px 24px;
}
.fr-footer-links a {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.fr-footer-links a:hover {
    text-decoration: underline;
}
@media (max-width: 575.98px) {
    /* phones: logo, links and the icon stack instead of squeezing side by side */
    .fr-site-footer .fr-site-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .fr-footer-links div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 32px;
    }
}
/* locked fields on edit forms */
.fr-form-card .form-control[readonly] {
    background: #e4e7e6;
    color: #6b7c78;
    cursor: not-allowed;
}
.fr-footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.15s;
}
.fr-footer-icon:hover,
.fr-footer-icon:focus-visible {
    background: rgba(255, 255, 255, 0.24);
}
.fr-footer-copy {
    width: 100%;
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 13px;
    text-align: center;
}

/* account page */
.fr-account-hero {
    margin-bottom: 24px;
    padding: 28px 30px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #0f766e 0%, #0b5a54 60%, #083f3b 100%);
    box-shadow: 0 14px 34px rgba(11, 60, 55, 0.2);
}
.fr-account-hero h1 {
    color: #fff;
}
.fr-account-hero p {
    color: #d7efe8;
}
.fr-eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #bfe6dc !important;
}

.fr-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.fr-tile {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e3ece9;
    transition:
        transform 0.15s,
        box-shadow 0.15s;
    color: inherit;
    text-decoration: none;
}
a.fr-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(11, 60, 55, 0.1);
}
.fr-tile-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 14px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef6f3;
}
.fr-tile-soon {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f5f4;
    color: #4b635e;
}

@media (max-width: 575.98px) {
    .fr-account-hero {
        padding: 22px;
    }
}
/* resend confirmation box on the sign-in page */
.fr-resend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    color: #24403b;
}
/* ---------- 19. Showroom ---------- */
/* hero */
.fr-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
    padding: 48px 44px;
    margin-bottom: 26px;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(
            circle at 85% 12%,
            rgba(20, 184, 166, 0.55),
            transparent 45%
        ),
        linear-gradient(135deg, #0f766e 0%, #0b5a54 55%, #083f3b 100%);
    box-shadow: 0 20px 50px rgba(11, 60, 55, 0.25);
}
.fr-hero h1 {
    color: #fff;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 6px 0 14px;
}
.fr-hero p {
    color: #d7efe8;
    font-size: 17px;
    max-width: 520px;
}

/* frosted search bar inside the hero */
.fr-hero-search {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    margin-top: 22px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.fr-hero-search .form-select {
    min-height: 48px;
    border: 0;
    border-radius: 14px;
}
.fr-hero-search .btn {
    min-height: 48px;
    border: 0;
    background: #fff;
    color: #0b5a54;
    font-weight: 800;
}
.fr-hero-search .btn:hover {
    background: #d7efe8;
    color: #083f3b;
}

/* tilted glass photo card */
.fr-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    transform: rotate(1.5deg);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.2);
}
.fr-hero-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.fr-hero-card-tag {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 8px 14px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.86);
    color: #0e2724;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.fr-hero-card-tag strong {
    display: block;
    font-size: 18px;
    color: #0f766e;
}
.fr-hero-card-empty {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* quick facts */
.fr-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.fr-stat {
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e3ece9;
}
.fr-stat strong {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #0f766e;
    letter-spacing: -0.02em;
}
.fr-stat span {
    color: #4b635e;
    font-size: 14px;
    font-weight: 600;
}

.fr-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.fr-section-head h2 {
    margin: 0;
    font-size: 26px;
    letter-spacing: -0.02em;
}

/* car cards */
.fr-car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}
.fr-car-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e3ece9;
    border-radius: 22px;
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.18s,
        box-shadow 0.18s;
}
.fr-car-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(11, 60, 55, 0.14);
    color: inherit;
}
.fr-car-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #e7f2ee, #cfe7df);
}
.fr-car-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}
.fr-car-card:hover .fr-car-card-media img {
    transform: scale(1.04);
}
.fr-car-card-initial {
    font-size: 56px;
    font-weight: 800;
    color: rgba(15, 118, 110, 0.35);
}
.fr-car-card-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(14, 39, 36, 0.7);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.fr-car-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 18px 18px;
}
.fr-car-card-make {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0f766e;
}
.fr-car-card-body h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}
.fr-car-card-meta {
    color: #4b635e;
    font-size: 14px;
}
.fr-car-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
}
.fr-car-card-price {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.fr-car-card-go {
    font-weight: 700;
    color: #0f766e;
    font-size: 14px;
}

/* why D&R tiles */
.fr-why {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.fr-why-item {
    padding: 24px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #e3ece9;
}
.fr-why-item .fr-tile-icon {
    margin-bottom: 12px;
}
.fr-why-item h3 {
    margin: 0 0 6px;
    font-size: 18px;
}
.fr-why-item p {
    margin: 0;
    color: #4b635e;
}

/* call to action band */
.fr-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 28px 32px;
    border-radius: 24px;
    background: #0b3b36;
    color: #bfe6dc;
}
.fr-cta h2 {
    margin: 0 0 4px;
    font-size: 24px;
    color: #fff;
}

/* car page: price + actions panel */
.fr-buy-panel {
    position: sticky;
    top: 90px;
    padding: 26px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #e3ece9;
    box-shadow: 0 14px 34px rgba(11, 60, 55, 0.08);
}
.fr-buy-price {
    font-size: 34px;
    font-weight: 800;
    color: #0f766e;
    letter-spacing: -0.03em;
}
.fr-soon {
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.25);
}
.fr-trust {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #24403b;
}

@media (max-width: 991.98px) {
    .fr-hero {
        grid-template-columns: 1fr;
        padding: 34px 26px;
    }
    .fr-hero-card {
        transform: none;
    }
    /* full-width photo: a wider shape keeps it from filling the whole screen */
    .fr-hero-card img,
    .fr-hero-card-empty {
        aspect-ratio: 16 / 9;
        max-height: 320px;
    }
    .fr-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .fr-why {
        grid-template-columns: 1fr;
    }
    .fr-buy-panel {
        position: static;
    }
}
@media (max-width: 575.98px) {
    .fr-hero-search {
        grid-template-columns: 1fr;
    }
}

/* ---------- 20. One-page home sections ---------- */
html {
    scroll-behavior: smooth;
}

/* the sticky header is ~70px tall: stop sections hiding under it when the menu jumps to them */
.fr-section,
.fr-section-first {
    scroll-margin-top: 90px;
}
.fr-section {
    padding-top: 64px;
}

.fr-kicker {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0f766e;
}
.fr-section h2 {
    font-size: clamp(26px, 3.4vw, 36px);
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}
.fr-lead {
    color: #4b635e;
    font-size: 17px;
    max-width: 620px;
}

/* small divider between the section links and the account links */
.fr-site-divider {
    width: 1px;
    height: 22px;
    background: #dce7e3;
    margin: 0 6px;
}

/* ---- Get a quote: tinted zone with teal glows behind a glass card ---- */
.fr-quote-zone {
    position: relative;
    overflow: hidden;
    padding: 40px;
    border-radius: 30px;
    background: linear-gradient(160deg, #eef6f3, #e1efea);
}
.fr-quote-glow-a {
    left: -160px;
    top: -160px;
    width: 460px;
    height: 460px;
    opacity: 0.55;
    background: radial-gradient(circle, #14b8a6 0%, rgba(20, 184, 166, 0) 66%);
}
.fr-quote-glow-b {
    right: -180px;
    bottom: -200px;
    width: 520px;
    height: 520px;
    opacity: 0.55;
    background: radial-gradient(circle, #0f766e 0%, rgba(15, 118, 110, 0) 66%);
}
.fr-quote {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
    align-items: start;
}

.fr-steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 24px 0 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.fr-steps li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 14px;
}
.fr-steps li::before {
    content: counter(step);
    grid-row: span 2;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.3);
}
.fr-steps strong {
    display: block;
}
.fr-steps span {
    color: #4b635e;
    font-size: 14px;
}

.fr-quote-card {
    padding: 28px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    backdrop-filter: blur(22px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 20px 50px rgba(11, 60, 55, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.fr-quote-card .form-control,
.fr-quote-card .form-select {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
}
.fr-quote-card .form-control:focus,
.fr-quote-card .form-select:focus {
    background: #fff;
}

/* "Buy a car / Repair my car" switch */
.fr-segment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 6px;
    border-radius: 16px;
    background: rgba(15, 118, 110, 0.1);
}
.fr-segment label {
    text-align: center;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    color: #24403b;
    transition:
        background 0.15s,
        color 0.15s,
        box-shadow 0.15s;
}
.fr-segment .btn-check:checked + label {
    background: #fff;
    color: #0b5a54;
    box-shadow: 0 4px 12px rgba(11, 60, 55, 0.12);
}
.fr-segment .btn-check:focus-visible + label {
    outline: 3px solid rgba(15, 118, 110, 0.35);
    outline-offset: 1px;
}

/* honeypot: off-screen, so people never see it */
.fr-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* ---- About ---- */
.fr-about {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: start;
}
.fr-about-facts {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.fr-about-facts strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #0f766e;
    letter-spacing: -0.02em;
}
.fr-about-facts span {
    color: #4b635e;
    font-size: 14px;
    font-weight: 600;
}
.fr-why-stack {
    grid-template-columns: 1fr;
}

/* ---- Contact ---- */
.fr-contact {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 24px;
    align-items: start;
}
.fr-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fr-contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e3ece9;
}
/* the form stands out from the page: white card, white fields, a clear field outline */
.fr-contact .card {
    background: #fff;
    border: 1px solid #e3ece9;
    box-shadow: 0 12px 30px rgba(11, 60, 55, 0.1);
}
.fr-contact .form-control {
    background-color: #fff;
}
.fr-contact .form-control:not(.is-invalid, :focus) {
    border-color: #7f9a93;
}
.fr-contact-item strong {
    display: block;
    margin-bottom: 2px;
}
.fr-hours {
    width: 100%;
    font-size: 14px;
    margin-top: 4px;
}
.fr-hours td {
    padding: 2px 0;
}
.fr-hours td:last-child {
    text-align: right;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .fr-quote,
    .fr-about,
    .fr-contact {
        grid-template-columns: 1fr;
    }
    .fr-quote-zone {
        padding: 26px 20px;
    }
    .fr-site-divider {
        display: none;
    }
}
/* ---------- 21. Quotes ---------- */
/* status badges (staff + customer) */
.fr-qstatus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.fr-qstatus::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}
.fr-qs-pending {
    background: #fdf0d5;
    color: #8a5300;
}
.fr-qs-quoted {
    background: #d7efe8;
    color: #0b5a54;
}
.fr-qs-accepted {
    background: #ddf3e4;
    color: #17633a;
}
.fr-qs-declined {
    background: #f1f5f4;
    color: #4b635e;
}
.fr-qs-expired {
    background: #eee9f6;
    color: #5b4b7a;
}

/* quote, garage + payment forms stand out from the page: white card, white fields, a clear field outline */
.fr-quote-action {
    background: #fff;
    border: 1px solid #e3ece9;
    box-shadow: 0 12px 30px rgba(11, 60, 55, 0.1);
}
.fr-quote-action .form-control,
.fr-quote-action .form-select,
.fr-buy-panel .form-control {
    background-color: #fff;
}
.fr-quote-action .form-control:disabled {
    background-color: #f1f5f4; /* still reads as locked */
}
.fr-quote-action .form-control:not(.is-invalid, :focus),
.fr-quote-action .form-select:not(.is-invalid, :focus),
.fr-buy-panel .form-control:not(.is-invalid, :focus) {
    border-color: #7f9a93;
}

/* staff: request text + small history list */
.fr-quote-details {
    white-space: pre-line;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f5faf8;
}
.fr-mini-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fr-mini-timeline li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    color: #4b635e;
}
.fr-mini-timeline li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #0f766e;
}
.fr-mini-timeline strong {
    color: #14302b;
    margin-right: 6px;
}

/* customer: one card per quote */
.fr-qcard {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    padding: 22px 24px;
    margin-bottom: 14px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #e3ece9;
}
.fr-qcard.is-ready {
    border-color: #0f766e;
    box-shadow:
        0 0 0 2px rgba(15, 118, 110, 0.15),
        0 14px 30px rgba(11, 60, 55, 0.1);
}
.fr-qcard h2 {
    font-size: 20px;
    margin: 0 0 4px;
}
.fr-qcard-type {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0f766e;
}
.fr-qcard-note {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f5faf8;
    font-size: 14px;
}
.fr-qcard-side {
    padding-left: 24px;
    border-left: 1px solid #e3ece9;
}
.fr-qcard-price {
    font-size: 28px;
    font-weight: 800;
    color: #0f766e;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}
.fr-days-left {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #fdf0d5;
    color: #8a5300;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 767.98px) {
    .fr-qcard {
        grid-template-columns: 1fr;
    }
    .fr-qcard-side {
        padding-left: 0;
        padding-top: 16px;
        border-left: 0;
        border-top: 1px solid #e3ece9;
    }
}

/* ---------- 22. Garage ---------- */
/* status badges: appointments + cars */
.fr-appt-status, .fr-vstatus {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap;
}
.fr-appt-status::before, .fr-vstatus::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fr-appt-status.is-booked    { background: #FDF0D5; color: #8A5300; }
.fr-appt-status.is-confirmed { background: #D7EFE8; color: #0B5A54; }
.fr-appt-status.is-completed { background: #DDF3E4; color: #17633A; }
.fr-appt-status.is-cancelled { background: #F1F5F4; color: #4B635E; }
.fr-vstatus.is-approved      { background: #DDF3E4; color: #17633A; }
.fr-vstatus.is-pending       { background: #FDF0D5; color: #8A5300; }
.fr-vstatus.is-declined      { background: #FDE2E1; color: #9B1C1C; }

/* customer: upcoming appointment cards with a calendar "date block" */
.fr-appt {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 16px 18px; margin-bottom: 12px; border-radius: 20px;
    background: #fff; border: 1px solid #E3ECE9;
}
.fr-appt-date {
    width: 64px; flex-shrink: 0; padding: 8px 0; border-radius: 16px; text-align: center; color: #fff;
    background: linear-gradient(160deg, #0F766E, #0B5A54); box-shadow: 0 8px 18px rgba(15, 118, 110, .25);
}
.fr-appt-date span   { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #BFE6DC; }
.fr-appt-date strong { display: block; font-size: 24px; line-height: 1.1; font-weight: 800; }
.fr-appt-body    { flex: 1; min-width: 200px; }
.fr-appt-actions { display: flex; gap: 8px; }

/* slot picker */
.fr-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.fr-slot {
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    padding: 10px 6px; border-radius: 14px; cursor: pointer;
    background: #F5FAF8; border: 1px solid #DCEAE5; transition: background .15s, border-color .15s, box-shadow .15s;
}
.fr-slot strong { font-size: 15px; }
.fr-slot span   { font-size: 12px; color: #4B635E; }
.fr-slot:hover  { border-color: #0F766E; }
.btn-check:checked + .fr-slot { background: #0F766E; border-color: #0F766E; color: #fff; box-shadow: 0 8px 18px rgba(15, 118, 110, .30); }
.btn-check:checked + .fr-slot span { color: #D7EFE8; }
.btn-check:disabled + .fr-slot { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.btn-check:focus-visible + .fr-slot { outline: 3px solid rgba(15, 118, 110, .35); outline-offset: 1px; }

/* customer: car list */
.fr-vehicle {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; margin-bottom: 10px; border-radius: 18px;
    background: #fff; border: 1px solid #E3ECE9;
}
.fr-vehicle-remove {
    width: 30px; height: 30px; border-radius: 50%; border: 0; line-height: 1;
    background: #F1F5F4; color: #4B635E; font-size: 18px; font-weight: 700;
}
.fr-vehicle-remove:hover { background: #FDE2E1; color: #9B1C1C; }

/* staff: day navigation + car requests */
.fr-daynav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.fr-daynav .form-control { width: auto; }
.fr-review {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 14px 0; border-bottom: 1px solid #E3ECE9;
}
.fr-review:last-child { border-bottom: 0; }
.fr-review .form-control { min-width: 200px; }

/* ---------- 23. Buying + payment plans ---------- */
.fr-from-monthly { margin-top: 4px; font-size: 15px; color: #24403B; }
.fr-from-monthly strong { color: #0F766E; }
.fr-from-monthly span { display: block; font-size: 12px; color: #4B635E; }

/* checkout steps */
.fr-checkout-steps { list-style: none; padding: 0; margin: 0 0 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.fr-checkout-steps li {
    padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 800;
    background: #F1F5F4; color: #4B635E;
}
.fr-checkout-steps li.is-current { background: #0F766E; color: #fff; }
.fr-checkout-steps li.is-done    { background: #D7EFE8; color: #0B5A54; }

/* plan cards (radio buttons) */
.fr-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fr-plan {
    display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 18px; cursor: pointer;
    background: #fff; border: 2px solid #E3ECE9; transition: border-color .15s, box-shadow .15s, background .15s;
}
.fr-plan strong { font-size: 16px; }
.fr-plan span   { font-size: 13px; color: #4B635E; }
.fr-plan:hover  { border-color: #9ED3C6; }
.btn-check:checked + .fr-plan { border-color: #0F766E; background: #F2FAF7; box-shadow: 0 0 0 3px rgba(15, 118, 110, .15); }
.btn-check:focus-visible + .fr-plan { outline: 3px solid rgba(15, 118, 110, .35); }
.fr-pay-options { display: flex; flex-direction: column; gap: 8px; }

.fr-buy-thumb { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; margin-bottom: 14px; }

/* live calculator */
.fr-calc { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; }
.fr-calc dt { color: #4B635E; font-weight: 600; }
.fr-calc dd { margin: 0; font-weight: 800; text-align: right; }
.fr-calc .fr-calc-total { padding-top: 10px; border-top: 1px solid #E3ECE9; font-size: 18px; color: #0F766E; }

.fr-schedule summary { cursor: pointer; list-style: none; }
.fr-schedule summary::after { content: ' ▾'; color: #0F766E; }
.fr-schedule[open] summary::after { content: ' ▴'; }

.fr-sim-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #FDF6E3; color: #6B5200; font-size: 12px; }

/* my purchases */
.fr-order {
    display: flex; gap: 24px; align-items: center; padding: 20px 22px; margin-bottom: 12px; border-radius: 22px;
    background: #fff; border: 1px solid #E3ECE9; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s;
}
.fr-order:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11, 60, 55, .10); color: inherit; }
.fr-order-side { width: 150px; text-align: right; }
.fr-order-next { font-size: 24px; font-weight: 800; color: #0F766E; }

.fr-order-status {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 800; white-space: nowrap;
}
.fr-order-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fr-order-status.is-active    { background: #D7EFE8; color: #0B5A54; }
.fr-order-status.is-completed { background: #DDF3E4; color: #17633A; }
.fr-order-status.is-cancelled { background: #F1F5F4; color: #4B635E; }
.fr-order-status.is-overdue   { background: #FDE2E1; color: #9B1C1C; }

.fr-progress { height: 10px; border-radius: 999px; background: #EEF3F1; overflow: hidden; }
.fr-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0F766E, #14B8A6); }
.fr-progress-lg { height: 14px; }

/* deposit slider in the brand colour */
.fr-quote-action .form-range::-webkit-slider-thumb { background: var(--fr-accent); }
.fr-quote-action .form-range::-moz-range-thumb { background: var(--fr-accent); }

@media (max-width: 575.98px) {
    .fr-plans { grid-template-columns: 1fr; }
    .fr-order { flex-direction: column; align-items: stretch; }
    .fr-order-side { width: auto; text-align: left; }
}

/* ---------- 24. Customer account + receipts ---------- */
/* header account dropdown */
.fr-site-account {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid #DCE7E3;
    background: #fff; font-weight: 700; color: #14302B;
}
.fr-site-account:hover, .fr-site-account.active { border-color: #0F766E; }
.fr-avatar-sm {
    width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0F766E, #14B8A6); color: #fff; font-size: 12px; font-weight: 800;
}
.fr-site-menu { border-radius: 16px; border: 1px solid #E3ECE9; padding: 6px; box-shadow: 0 16px 36px rgba(11, 60, 55, .14); }
.fr-site-menu .dropdown-item { border-radius: 10px; padding: 8px 12px; font-weight: 600; }
.fr-site-menu .dropdown-item:hover, .fr-site-menu .dropdown-item:focus { background: #EEF6F3; color: #0B5A54; }

/* dashboard */
.fr-account-hero-split { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.fr-glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fr-glance-card {
    display: flex; flex-direction: column; gap: 2px; padding: 18px; border-radius: 20px;
    background: #fff; border: 1px solid #E3ECE9; color: inherit; text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}
.fr-glance-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11, 60, 55, .10); color: inherit; }
.fr-glance-label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #4B635E; }
.fr-glance-card strong { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: #0F766E; }
.fr-glance-card small { color: #4B635E; }
.fr-glance-card.is-alert { border-color: #F3B4B1; background: #FFF6F5; }
.fr-glance-card.is-alert strong { color: #B42318; }
.fr-glance-card.is-ready { border-color: #0F766E; box-shadow: 0 0 0 2px rgba(15, 118, 110, .12); }

/* receipts */
.fr-receipt-sheet {
    max-width: 820px; margin: 0 auto; padding: 40px 44px; border-radius: 20px;
    background: #fff; border: 1px solid #E3ECE9; box-shadow: 0 18px 40px rgba(11, 60, 55, .10);
}
.fr-receipt-kind { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.fr-receipt-kind.is-payment  { background: #D7EFE8; color: #0B5A54; }
.fr-receipt-kind.is-purchase { background: #DDF3E4; color: #17633A; }
.fr-receipt-kind.is-repair   { background: #FDF0D5; color: #8A5300; }

/* print only the receipt */
@media print {
    .fr-site-header, .fr-site-footer, .fr-no-print, .alert { display: none !important; }
    .fr-site, .fr-site-main { background: #fff; padding: 0; }
    .fr-receipt-sheet { box-shadow: none; border: 0; padding: 0; max-width: none; }
}

@media (max-width: 991.98px) { .fr-glance { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) {
    .fr-glance { grid-template-columns: 1fr; }
    .fr-receipt-sheet { padding: 22px 18px; }
}

/* ---------- 25. Staff customer-portal pages ---------- */
/* dashboard panel */
.fr-portal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.fr-portal-tile {
    display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 16px;
    background: #F5FAF8; border: 1px solid #E3ECE9; color: inherit; text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}
a.fr-portal-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(11, 60, 55, .10); color: inherit; }
.fr-portal-tile strong { font-size: 26px; font-weight: 800; color: #0F766E; letter-spacing: -.02em; }
.fr-portal-tile span   { font-size: 13px; color: #4B635E; font-weight: 600; }
.fr-portal-tile.is-todo  { background: #FFF8E8; border-color: #F5D9A1; }
.fr-portal-tile.is-todo strong  { color: #8A5300; }
.fr-portal-tile.is-alert { background: #FFF6F5; border-color: #F3B4B1; }
.fr-portal-tile.is-alert strong { color: #B42318; }
.fr-portal-tile.is-plain { background: #fff; }

/* messages inbox */
.fr-message {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 6px;
    border-bottom: 1px solid #E3ECE9; color: inherit; text-decoration: none;
}
.fr-message:last-of-type { border-bottom: 0; }
.fr-message:hover { background: #F5FAF8; color: inherit; }
.fr-message-dot { width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: transparent; flex-shrink: 0; }
.fr-message.is-unread .fr-message-dot { background: #0F766E; }
.fr-message.is-unread strong, .fr-message.is-unread .fr-message-subject { font-weight: 800; }
.fr-message-subject { font-size: 14px; }
.min-w-0 { min-width: 0; }

/* staff menu: with every link it runs to two rows, so only the links wrap */
.fr-brand, .fr-user { flex-shrink: 0; white-space: nowrap; }
