/* Fractional Report page (/fractional, Pages/FractionalReport.cshtml; markup rendered by js/fractional-report.js).
   Colors and fonts come from main.css (:root variables, Inter) plus Barlow Condensed headings, as on /pricing.
   The unlock dialog and its status messages use operating-cost-report.css (same markup as _OperatingCostReport.cshtml);
   only what that file does not cover is added at the end of this file. */

.fx-page {
    --fx-text-body: #d0d4e8;
    --fx-hi: #fef1e6;
    --fx-hi-ink: #b4470c;
    --fx-lavender: #c9cbe6;
    --fx-success: #2e7d32;
    padding-top: 68px; /* below the fixed site nav */
    background: var(--offwhite);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

    /* Let grid and flex items shrink, so wide tables scroll inside their card. */
    .fx-page * {
        min-width: 0;
    }

    .fx-page button {
        font-family: inherit;
        cursor: pointer;
    }

        .fx-page button:disabled {
            cursor: not-allowed;
        }

    .fx-page h1,
    .fx-page h2,
    .fx-page h3 {
        font-family: 'Barlow Condensed', sans-serif;
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: -0.01em;
        text-transform: uppercase;
        color: var(--navy);
    }

    .fx-page h1 {
        font-size: clamp(2.2rem, 5vw, 3.4rem);
        margin: 8px 0;
        color: var(--white);
    }

    .fx-page h2 {
        font-size: clamp(1.5rem, 3vw, 1.9rem);
    }

    .fx-page h3 {
        margin-bottom: 10px;
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        color: var(--fx-hi-ink);
    }

    .fx-page p + p {
        margin-top: 8px;
    }

.fx-wrap {
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: max(3vw, 16px);
}

.fx-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-block: 24px;
}

/* ─── Tabs ─── */
.fx-tabs-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.fx-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-block: 12px;
}

.fx-tab {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

    .fx-tab:hover {
        background: var(--offwhite);
    }

/* ─── Hero (navy, orange glow and grid of the /pricing hero) ─── */
.fx-hero {
    padding-block: 40px;
    background-color: var(--navy-dark);
    background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(135deg, rgba(232,99,26,0.07) 0%, transparent 50%), radial-gradient(ellipse at 70% 50%, rgba(26,32,96,0.8) 0%, transparent 70%);
    background-size: 60px 60px, 60px 60px, auto, auto;
    color: var(--white);
}

.fx-eyebrow {
    color: var(--orange);
    font-size: 0.85rem;
    font-weight: 700;
}

.fx-lead {
    max-width: 760px;
    color: var(--fx-text-body);
}

.fx-hero-grid {
    display: grid;
    gap: 24px;
    align-items: end;
}

.fx-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.fx-stat,
.fx-mini {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
}

    .fx-stat b {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 2rem;
        font-weight: 800;
        line-height: 1.2;
        color: var(--white);
    }

.fx-light {
    color: var(--fx-text-body);
    font-size: 0.875rem;
}

/* ─── Cards and text ─── */
.fx-card {
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.fx-note {
    color: var(--muted);
    font-size: 0.875rem;
}

.fx-subhead {
    margin: 16px 0 8px;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 600;
}

.fx-limit,
.fx-validation {
    margin-top: 8px;
}

.fx-validation {
    margin-bottom: 4px;
    font-weight: 600;
}

.fx-footnote {
    margin-top: 16px;
}

.fx-loading {
    margin-block: 16px;
}

.fx-hi-text {
    color: var(--fx-hi-ink);
    font-size: 0.875rem;
}

.fx-positive {
    color: var(--fx-success);
}

.fx-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.fx-main > .fx-section-head {
    margin-bottom: 0;
}

.fx-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.fx-unlocked {
    color: var(--fx-success);
    font-size: 0.875rem;
    font-weight: 700;
}

/* ─── Buttons ─── */
.fx-btn,
.fx-btn-light,
.fx-btn-ghost,
.fx-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid transparent;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    transition: all 0.2s;
}

.fx-btn {
    background: var(--orange);
    color: var(--white);
}

    .fx-btn:hover:not(:disabled) {
        background: var(--orange-hover);
    }

.fx-btn-light {
    background: var(--white);
    color: var(--navy);
}

    .fx-btn-light:hover:not(:disabled) {
        background: var(--offwhite);
    }

.fx-btn-ghost {
    background: transparent;
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
    font-weight: 600;
}

    .fx-btn-ghost:hover {
        border-color: var(--orange);
        color: var(--orange-light);
    }

.fx-btn-secondary {
    background: transparent;
    border-color: var(--border);
    color: var(--navy);
}

    .fx-btn-secondary:hover:not(:disabled) {
        border-color: var(--orange);
        color: var(--orange);
    }

.fx-btn--block {
    width: 100%;
    padding-block: 14px;
}

.fx-btn:disabled,
.fx-btn-light:disabled,
.fx-btn-secondary:disabled,
.fx-stepper button:disabled {
    opacity: 0.65;
}

.fx-link-btn {
    padding: 0;
    background: none;
    border: none;
    color: var(--orange);
    font-weight: 600;
}

    .fx-link-btn:hover {
        text-decoration: underline;
    }

.fx-link-btn--muted {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Option cards, pills, chips, tabs and compare ticks: selected state */
.fx-option,
.fx-pill,
.fx-tick,
.fx-stepper button {
    background: var(--offwhite);
    border: 1px solid var(--border);
    color: var(--navy);
    transition: background 0.2s, border-color 0.2s;
}

    .fx-option:hover,
    .fx-pill:hover,
    .fx-tick:hover,
    .fx-stepper button:hover:not(:disabled) {
        border-color: var(--orange);
    }

.fx-page [aria-pressed="true"],
.fx-page [aria-selected="true"] {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.fx-page button:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

/* ─── Single report: configurator ─── */
.fx-layout {
    display: grid;
    gap: 24px;
    align-items: start;
}

.fx-steps {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.fx-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px;
}

.fx-option {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    border-radius: 8px;
    text-align: left;
    font-size: 0.95rem;
}

    .fx-option small {
        opacity: 0.75;
        font-size: 0.8rem;
    }

.fx-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fx-pill {
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
}

.fx-pill--sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.fx-hours {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

    .fx-hours .fx-note {
        flex: 1 1 240px;
    }

.fx-stepper {
    display: inline-flex;
}

    .fx-stepper button,
    .fx-stepper span {
        padding: 6px 16px;
        font-size: 1.25rem;
        line-height: 1.5;
    }

    .fx-stepper button:first-child {
        border-radius: 8px 0 0 8px;
    }

    .fx-stepper button:last-child {
        border-radius: 0 8px 8px 0;
    }

    .fx-stepper span {
        min-width: 80px;
        background: var(--white);
        border-block: 1px solid var(--border);
        color: var(--navy);
        font-weight: 700;
        text-align: center;
    }

/* ─── Single report: free estimate (navy panel) ─── */
.fx-estimate {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: var(--navy);
    border-radius: 12px;
    color: var(--white);
}

.fx-estimate-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.fx-badge {
    padding: 3px 10px;
    background: var(--orange);
    border-radius: 100px;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
}

.fx-estimate-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.fx-estimate-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.fx-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.fx-mini b {
    font-size: 1.25rem;
}

.fx-loaded {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px dashed rgba(255,255,255,0.3);
}

    .fx-loaded .fx-light {
        line-height: 1.3;
    }

    .fx-loaded small {
        display: block;
        font-size: 0.7rem;
    }

    .fx-loaded b {
        color: var(--orange);
    }

/* ─── Single report: full report (blurred while locked) ─── */
.fx-report-wrap {
    position: relative;
}

.fx-report {
    display: grid;
    gap: 16px;
}

.fx-locked {
    filter: blur(7px);
    pointer-events: none;
    user-select: none;
}

.fx-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 16px 0;
}

.fx-lock-card {
    max-width: 440px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(17,21,64,0.18);
    text-align: center;
}

    .fx-lock-card p {
        margin: 8px 0 16px;
        color: var(--muted);
    }

.fx-two {
    display: grid;
    gap: 16px;
}

.fx-kv {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-block: 8px;
    border-bottom: 1px solid var(--border);
}

    .fx-kv > span:last-child {
        white-space: nowrap;
        text-align: right;
    }

.fx-kv--strong {
    font-weight: 700;
}

.fx-kv--key {
    border-bottom: 0;
    color: var(--fx-hi-ink);
}

.fx-bar {
    display: flex;
    height: 26px;
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: 5px;
    background: var(--offwhite);
}

.fx-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border-radius: 3px;
    vertical-align: middle;
}

.fx-peer {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid var(--border);
    border-radius: 3px;
}

    .fx-peer small {
        display: block;
        color: var(--muted);
        font-weight: 400;
    }

.fx-peer--me {
    background: var(--fx-hi);
    font-weight: 700;
}

.fx-peer-track {
    display: none;
    height: 12px;
    overflow: hidden;
    border-radius: 5px;
    background: var(--offwhite);
}

    .fx-peer-track span {
        display: block;
        height: 100%;
        background: var(--fx-lavender);
    }

.fx-peer--me .fx-peer-track span {
    background: var(--orange);
}

/* ─── Tables ─── */
.fx-table-wrap {
    overflow-x: auto;
}

.fx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    white-space: nowrap;
}

    .fx-table th,
    .fx-table td {
        padding: 6px 8px;
        border-bottom: 1px solid var(--border);
        text-align: left;
        vertical-align: middle;
    }

    .fx-table thead th {
        color: var(--muted);
        font-size: 0.8rem;
        font-weight: 700;
    }

    .fx-table .fx-num {
        text-align: right;
    }

.fx-row-hi td,
.fx-best {
    background: var(--fx-hi);
}

.fx-best {
    font-weight: 700;
}

.fx-num--key {
    color: var(--fx-hi-ink);
    font-weight: 700;
}

.fx-table--side {
    white-space: normal;
}

    .fx-table--side tbody th {
        color: var(--muted);
        font-weight: 600;
    }

.fx-sort {
    padding: 0;
    background: none;
    border: none;
    color: inherit;
    font-size: inherit;
    font-weight: 700;
}

.fx-tick {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    font-weight: 700;
}

/* ─── Compare all ─── */
.fx-promo {
    display: grid;
    gap: 24px;
    align-items: center;
    border: 2px solid var(--orange);
}

.fx-features {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    list-style: none;
}

.fx-plan-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: var(--navy);
    border-radius: 12px;
    text-align: center;
}

.fx-plan-price {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--white);
}

.fx-filters {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fx-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.fx-filter-label {
    min-width: 92px;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 700;
}

.fx-filter-hours {
    min-width: 0;
}

/* ─── Wider screens ─── */
@media (min-width: 768px) {
    .fx-features {
        grid-template-columns: 1fr 1fr;
    }

    .fx-peer {
        grid-template-columns: 5fr 4fr 3fr;
    }

    .fx-peer-track {
        display: block;
    }

    .fx-filter-hours {
        margin-left: auto;
    }
}

@media (min-width: 992px) {
    .fx-hero {
        padding-block: 48px;
    }

    .fx-hero-grid,
    .fx-two {
        grid-template-columns: 1fr 1fr;
    }

    .fx-layout {
        grid-template-columns: 2fr 1fr;
    }

    .fx-promo {
        grid-template-columns: 2fr 1fr;
    }
}

@media (max-width: 480px) {
    .fx-card,
    .fx-estimate {
        padding: 16px;
    }

    .fx-stat b {
        font-size: 1.5rem;
    }
}

/* ─── Unlock dialog and status messages (additions to operating-cost-report.css) ─── */

/* The public pages' buttons (aircraft-details.css), used by the dialog as in _OperatingCostReport.cshtml */
.fx-page .btn-primary,
.fx-page .btn-outline {
    flex: 1;
    min-width: 160px;
    padding: 12px 28px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    transition: all 0.2s;
}

.fx-page .btn-primary {
    background: var(--orange);
    color: var(--white);
}

    .fx-page .btn-primary:hover:not(:disabled) {
        background: var(--orange-light);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(232,99,26,0.35);
    }

.fx-page .btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--navy);
}

    .fx-page .btn-outline:hover {
        border-color: var(--orange);
        color: var(--orange);
    }

/* The dialog is a <div> over a backdrop here (a <dialog> on the aircraft pages). */
.report-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(17,21,64,0.6);
}

/* Headings inside the dialog and status messages keep the dialog's own type, not the page headings'. */
.fx-page .report-modal-title,
.fx-page .report-status-title {
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
    color: var(--navy);
}

.fx-page .report-modal-title {
    font-size: 1.35rem;
    line-height: 1.25;
}

.fx-page .report-status-title {
    margin-bottom: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.report-modal-summary {
    margin: -10px 0 18px;
}

.report-label--spaced {
    margin-top: 16px;
}

.report-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.report-link {
    flex: none;
    padding: 0;
    background: none;
    border: none;
    color: var(--orange);
    font-size: 0.8rem;
    font-weight: 700;
}

    .report-link:hover {
        text-decoration: underline;
    }

.report-link:disabled {
    color: var(--muted);
    cursor: default;
    text-decoration: none;
}

/* The one-time code of the unlock dialog */
.report-otp {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-indent: 0.4em;
}

/* Full status card (page load error) */
.report-status--card {
    max-width: 460px;
    margin: 0 auto;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
}

/* Compact status: a small icon beside the message (earlier purchases unlocked, notifications) */
.report-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: var(--offwhite);
    border: 1px solid var(--border-light);
    border-radius: 5px;
    color: var(--text);
    font-size: 0.8rem;
    line-height: 1.45;
}

    .report-notice .report-status-icon {
        width: 32px;
        height: 32px;
    }

    .report-notice .report-icon {
        display: block;
        width: 18px;
        height: 18px;
    }

.report-notice[data-tone="success"] .report-status-icon {
    background: rgba(46,125,50,0.1);
    color: var(--fx-success);
}

.report-notice[data-tone="error"] .report-status-icon {
    background: rgba(198,40,40,0.1);
    color: #c62828;
}

.report-notice[data-tone="info"] .report-status-icon {
    background: var(--orange-pale);
    color: var(--orange);
}

/* Notifications, bottom right for a few seconds */
.fx-toasts {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1070;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(380px, calc(100vw - 32px));
}

    .fx-toasts .report-notice {
        margin: 0;
        background: var(--white);
        box-shadow: 0 12px 32px rgba(17,21,64,0.18);
    }

@media (prefers-reduced-motion: reduce) {
    .fx-page *,
    .fx-page *::before,
    .fx-page *::after {
        transition: none !important;
    }
}
