/* ============================================================
   MDATAWORKS — ORDER FLOW & REPORTS PAGE STYLES
   Append to wwwroot/css/site.css
   ============================================================ */

/* ── Flagship Report Section ──────────────────────────────── */
.mdw-flagship-report {
    padding: 2rem 0;
    background: var(--navy);
}

.flagship-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius, 8px);
    padding: 3rem;
}

.flagship-badge-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.flagship-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--m-blue, #5CB3DA);
    color: #fff;
}

.flagship-badge--new {
    background: var(--m-red, #C52B30);
}

.flagship-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.flagship-lead {
    color: rgba(255,255,255,0.75);
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.flagship-includes-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--m-blue, #5CB3DA);
    margin-bottom: 0.75rem;
}

.flagship-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1.5rem;
    margin-bottom: 2rem;
}

.fcheck {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.fcheck .bi-check-circle-fill {
    color: var(--m-blue, #5CB3DA);
    flex-shrink: 0;
}

.flagship-cta-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.flagship-price-amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    display: block;
}

.flagship-price-note {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    display: block;
    margin-top: 0.25rem;
}

/* Report visual mockup */
.flagship-report-visual {
    width: 100%;
    max-width: 340px;
}

.report-visual-inner {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.report-visual-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.report-visual-logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--navy, #1A237E);
}

.report-visual-logo .bi { color: var(--m-blue, #5CB3DA); }

.report-visual-badge {
    font-size: 0.65rem;
    font-weight: 700;
    background: var(--navy, #1A237E);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.report-visual-reg {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--navy, #1A237E);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.report-visual-model {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.report-visual-sections { display: flex; flex-direction: column; gap: 0.5rem; }

.rvs-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    padding: 0.4rem 0.6rem;
    border-radius: 5px;
}

.rvs-green  { background: #f0faf4; color: #1a6b3a; }
.rvs-green  .bi { color: #28a745; }
.rvs-blue   { background: #eff7fd; color: #1a4a6e; }
.rvs-blue   .bi { color: var(--m-blue, #5CB3DA); }
.rvs-amber  { background: #fff8ec; color: #7a4f00; }
.rvs-amber  .bi { color: #f0a500; }

/* ── Why cards ────────────────────────────────────────────── */
.why-card {
    background: #fff;
    border: 1px solid var(--light-grey, #e0e0e0);
    border-radius: var(--radius, 8px);
    padding: 2rem;
    height: 100%;
}

.why-icon {
    width: 52px;
    height: 52px;
    background: var(--navy, #1A237E);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.why-icon .bi {
    font-size: 1.4rem;
    color: var(--m-blue, #5CB3DA);
}

.why-card h4 { font-weight: 700; color: var(--navy, #1A237E); margin-bottom: 0.5rem; }
.why-card p  { color: var(--text-light, #555); font-size: 0.92rem; margin: 0; }

/* ── Individual report cards ──────────────────────────────── */
.report-card {
    background: #fff;
    border: 1px solid var(--light-grey, #e0e0e0);
    border-radius: var(--radius, 8px);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: box-shadow 0.2s;
}

.report-card:hover { box-shadow: 0 6px 24px rgba(26,35,126,0.1); }

.report-card--featured {
    border-color: var(--navy, #1A237E);
    border-width: 2px;
}

.report-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy, #1A237E);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.85rem;
    border-radius: 20px;
    white-space: nowrap;
}

.report-card-icon {
    width: 48px;
    height: 48px;
    background: var(--navy, #1A237E);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.report-card-icon .bi { font-size: 1.3rem; color: var(--m-blue, #5CB3DA); }

.report-card-title { font-weight: 700; color: var(--navy, #1A237E); font-size: 1.1rem; margin-bottom: 0.25rem; }
.report-card-price { font-size: 1.6rem; font-weight: 900; color: var(--navy, #1A237E); margin-bottom: 0.75rem; }
.report-card-desc  { color: var(--text-light, #555); font-size: 0.9rem; margin-bottom: 1rem; }

.report-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}

.report-card-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-light, #555);
    padding: 0.3rem 0;
}

.report-card-list .bi-check2 { color: var(--m-blue, #5CB3DA); flex-shrink: 0; margin-top: 2px; }
.report-card-list .bi-info-circle { color: #aaa; flex-shrink: 0; margin-top: 2px; }

/* ── Accordion ────────────────────────────────────────────── */
.mdw-accordion .accordion-item {
    border: 1px solid var(--light-grey, #e0e0e0);
    border-radius: var(--radius, 8px) !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.mdw-accordion .accordion-button {
    font-weight: 600;
    color: var(--navy, #1A237E);
    background: #fff;
}

.mdw-accordion .accordion-button:not(.collapsed) {
    background: var(--navy, #1A237E);
    color: #fff;
    box-shadow: none;
}

.mdw-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(10);
}

/* ── Order Form Card ──────────────────────────────────────── */
.mdw-order-card {
    background: #fff;
    border: 1px solid var(--light-grey, #e0e0e0);
    border-radius: var(--radius, 8px);
    padding: 2.5rem;
}

/* ── Step indicators ──────────────────────────────────────── */
.order-steps {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
}

.order-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--light-grey, #e0e0e0);
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s;
}

.step-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.order-step--active .step-num  { background: var(--navy, #1A237E); color: #fff; }
.order-step--active .step-label{ color: var(--navy, #1A237E); }
.order-step--complete .step-num { background: var(--m-blue, #5CB3DA); color: #fff; }

.order-step-divider {
    flex: 1;
    height: 2px;
    background: var(--light-grey, #e0e0e0);
    margin: 0 0.5rem;
    margin-bottom: 1.25rem;
}

/* ── Registration input ───────────────────────────────────── */
.order-step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy, #1A237E);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.step-title-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--navy, #1A237E);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.reg-input-wrap {
    display: flex;
    border: 2px solid var(--navy, #1A237E);
    border-radius: 6px;
    overflow: hidden;
    max-width: 280px;
}

.uk-plate-prefix {
    background: var(--navy, #1A237E);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0 0.75rem;
    display: flex;
    align-items: center;
    letter-spacing: 0.05em;
}

.reg-plate-input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 0.75rem;
    flex: 1;
    background: #fff;
}

.reg-plate-input:focus { box-shadow: none !important; outline: none !important; }

.reg-feedback {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
}

.reg-feedback--error   { background: #fff0f0; color: #c52b30; border: 1px solid #f5c6cb; }
.reg-feedback--success { background: #f0faf4; color: #1a6b3a; border: 1px solid #c3e6cb; }

.order-note {
    font-size: 0.85rem;
    color: var(--text-light, #666);
    margin-bottom: 1.25rem;
    padding: 0.6rem 0.75rem;
    background: #f8f9fc;
    border-radius: 5px;
    border-left: 3px solid var(--m-blue, #5CB3DA);
}

/* ── Confirmed vehicle banner ─────────────────────────────── */
.confirmed-vehicle-banner {
    background: #f0faf4;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #1a6b3a;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
}

.btn-change-reg {
    background: none;
    border: none;
    color: var(--m-blue, #5CB3DA);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

/* ── Form inputs ──────────────────────────────────────────── */
.mdw-input {
    border: 1px solid #d0d5e8;
    border-radius: 6px;
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    transition: border-color 0.15s;
}

.mdw-input:focus {
    border-color: var(--navy, #1A237E);
    box-shadow: 0 0 0 3px rgba(26,35,126,0.1);
    outline: none;
}

/* ── Discount section ─────────────────────────────────────── */
.discount-section {
    border: 1px solid var(--light-grey, #e0e0e0);
    border-radius: 6px;
    padding: 0;
    overflow: hidden;
}

.discount-toggle {
    width: 100%;
    background: #f8f9fc;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy, #1A237E);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-align: left;
}

.discount-panel { padding: 0 1rem 1rem; }

.btn-apply-discount {
    background: var(--navy, #1A237E);
    color: #fff;
    border: none;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-apply-discount:hover { background: var(--m-dark-blue, #373485); }

/* ── Price summary ────────────────────────────────────────── */
.price-summary {
    background: #f8f9fc;
    border: 1px solid #e0e4f0;
    border-radius: 8px;
    padding: 1.25rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
    color: var(--text-light, #555);
    padding: 0.3rem 0;
}

.price-row--total {
    border-top: 1px solid #d0d5e8;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy, #1A237E);
}

.price-amount--discount { color: var(--m-red, #C52B30); font-weight: 600; }
.price-amount--total    { font-size: 1.3rem; font-weight: 900; color: var(--navy, #1A237E); }

/* ── Pay button ───────────────────────────────────────────── */
.btn-pay {
    font-size: 1.05rem;
    padding: 0.9rem 1.5rem;
}

.payment-trust-note {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* ── Order sidebar ────────────────────────────────────────── */
.order-sidebar {
    background: #f8f9fc;
    border: 1px solid #e0e4f0;
    border-radius: 8px;
    padding: 1.75rem;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-weight: 700;
    color: var(--navy, #1A237E);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sidebar-product {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sidebar-product-icon {
    width: 40px;
    height: 40px;
    background: var(--navy, #1A237E);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-product-icon .bi { color: var(--m-blue, #5CB3DA); font-size: 1.1rem; }

.sidebar-product-name  { font-weight: 700; font-size: 0.92rem; color: var(--navy, #1A237E); }
.sidebar-product-price { font-weight: 900; font-size: 1.2rem; color: var(--navy, #1A237E); }

.sidebar-desc {
    font-size: 0.85rem;
    color: var(--text-light, #666);
    margin-bottom: 1.25rem;
    line-height: 1.55;
}

.sidebar-trust { display: flex; flex-direction: column; gap: 0.5rem; }

.trust-item {
    font-size: 0.82rem;
    color: var(--text-light, #666);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.trust-item .bi-check-circle-fill  { color: #28a745; }
.trust-item .bi-shield-lock-fill   { color: var(--m-blue, #5CB3DA); }

/* ── Payment result cards ─────────────────────────────────── */
.payment-result-card {
    background: #fff;
    border: 1px solid var(--light-grey, #e0e0e0);
    border-radius: var(--radius, 8px);
    padding: 2.5rem;
    text-align: center;
}

.result-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.result-icon--success { background: #d4edda; color: #155724; }
.result-icon--failure { background: #f8d7da; color: #721c24; }

.result-title { font-size: 1.6rem; font-weight: 800; color: var(--navy, #1A237E); margin-bottom: 0.5rem; }
.result-lead  { font-size: 1rem; color: var(--text-light, #555); margin-bottom: 1.5rem; }

.result-detail-list {
    background: #f8f9fc;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.75rem;
    text-align: left;
}

.result-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text-light, #555);
    border-bottom: 1px solid #e8eaf2;
}

.result-detail-row:last-child { border-bottom: none; }
.result-detail-row span:last-child { font-weight: 600; color: var(--navy, #1A237E); }

.result-next-steps {
    background: #eff7fd;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

.result-next-steps h5 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--navy, #1A237E);
    margin-bottom: 1rem;
}

.next-step {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.next-step:last-child { margin-bottom: 0; }

.next-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--m-blue, #5CB3DA);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.next-step p {
    font-size: 0.88rem;
    color: var(--text-light, #555);
    margin: 0;
    line-height: 1.5;
}

/* ── Compact page hero variant ────────────────────────────── */
.mdw-page-hero--compact { padding: 2rem 0; }

/* ── Large button variant ─────────────────────────────────── */
.btn-lg-mdw {
    font-size: 1.05rem;
    padding: 0.85rem 2rem;
}
/* ── Flagship sample image ────────────────────────────────── */
.flagship-sample-image {
    width: 100%;
    max-width: 340px;
    text-align: center;
}

.flagship-sample-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius, 6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    display: block;
}

.flagship-sample-caption {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    margin-top: 0.75rem;
    font-style: italic;
}

.order-delivery-note {
    font-size: 0.82rem;
    color: var(--text-light, #666);
    background: #f8f9fc;
    border-left: 3px solid var(--m-blue, #5CB3DA);
    padding: 0.6rem 0.85rem;
    border-radius: 0 var(--radius, 6px) var(--radius, 6px) 0;
    margin-bottom: 1rem;
    line-height: 1.55;
}