/* Markel Direct brand chrome for the Vue quote journey. Mirrors the legacy Markel
   site: off-white canvas, orange top-accent header/footer, Markel Sans, burnt-orange CTAs. */

@font-face {
    font-family: 'Markel Sans';
    font-weight: 400;
    font-display: swap;
    src: url('../lib/fonts/230224_Markel_Sans/MarkelSansWebFonts/WOFF2/MarkelSans-Regular.woff2') format('woff2'),
         url('../lib/fonts/230224_Markel_Sans/MarkelSansWebFonts/WOFF/MarkelSans-Regular.woff') format('woff');
}
@font-face {
    font-family: 'Markel Sans';
    font-weight: 600;
    font-display: swap;
    src: url('../lib/fonts/230224_Markel_Sans/MarkelSansWebFonts/WOFF2/MarkelSans-Medium.woff2') format('woff2'),
         url('../lib/fonts/230224_Markel_Sans/MarkelSansWebFonts/WOFF/MarkelSans-Medium.woff') format('woff');
}
@font-face {
    font-family: 'Markel Sans';
    font-weight: 700;
    font-display: swap;
    src: url('../lib/fonts/230224_Markel_Sans/MarkelSansWebFonts/WOFF2/MarkelSans-Bold.woff2') format('woff2'),
         url('../lib/fonts/230224_Markel_Sans/MarkelSansWebFonts/WOFF/MarkelSans-Bold.woff') format('woff');
}

:root {
    --md-accent: #ff4e00;   /* bright orange: top-accent bars + links */
    --md-primary: #bf3b00;  /* burnt orange: primary CTAs */
    --md-off-white: #f4f2eb;/* header/footer background */
    --md-bg: #424242;       /* dark-grey page canvas the journey card sits on */
    --md-ink: #424242;      /* body text */
    /* Single lever the vendored engine already reads: drives vueform inputs and the
       quote-display buttons to the Markel primary (see _singleSchemeQuote.scss, _vueformCustom.scss). */
    --theme-form-primary: #bf3b00;
}

body {
    margin: 0;
    font-family: 'Markel Sans', Tahoma, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--md-ink);
    background-color: var(--md-bg);
    /* Sticky footer: fill at least the viewport and let .md-main grow so the footer sits at the
       bottom even when the journey content is shorter than the screen. */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: var(--md-primary); }   /* links use the dark Markel orange */

/* Header: off-white bar, bright-orange top accent, logo left, help block right. */
.md-header {
    background-color: var(--md-off-white);
    border-bottom: 1px solid #e0e0e0;
    box-shadow: inset 0 4px 0 0 var(--md-accent);
}
.md-header .md-header-inner {
    max-width: 1140px;
    margin: 0 auto;
    height: 100px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.md-header .md-logo { height: 48px; width: auto; }
.md-header .md-contact { text-align: right; line-height: 1.25; }
.md-header .md-contact .call { font-size: 18px; }
.md-header .md-contact .call b { font-weight: 700; }
.md-header .md-contact .open-times { font-size: 12px; color: #5b6169; }

@media (max-width: 767px) {
    .md-header .md-header-inner { height: 60px; }
    .md-header .md-logo { height: 32px; }
    .md-header .md-contact { display: none; }
}

/* Journey content: a centered column over the dark-grey canvas. The engine's
   .quote-container provides the off-white form card, so this is just the frame. */
.md-main {
    width: 100%;
    max-width: 1140px;   /* mirror tax-defense's container width */
    margin: 24px auto;
    padding: 0 16px;
    box-sizing: border-box;
    flex: 1 0 auto;      /* grow to push the footer to the bottom (sticky footer) */
}
.md-footer { flex-shrink: 0; }

/* Off-white step title above the form card (Markel / tax-defense .page-title). */
.md-page-title { margin: 0 0 12px; color: var(--md-off-white); font-size: 40px; font-weight: 500; }
.md-page-title:empty { display: none; }

/* Journey card: form + "Why insure with us" together in one off-white container with a divider. */
.md-journey {
    display: flex;
    align-items: stretch;
    background: var(--md-off-white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .18);
    overflow: hidden;
}
.md-journey-main { flex: 1; min-width: 0; padding: 32px 40px; }

.md-why { flex: none; width: 300px; padding: 32px; border-left: 1px solid #d4d8de; color: #212529; }
.md-why-title { margin: 0 0 16px; font-size: 1.5rem; font-weight: 500; color: #212529; }
.md-why-list { list-style: none; margin: 0; padding: 0; }
.md-why-list li {
    position: relative;
    padding: 6px 0 6px 26px;
    font-size: 0.9rem;
    line-height: 1.4;
}
.md-why-list li::before {
    content: "\2713"; /* check — neutral, no brand colour (note 2) */
    position: absolute;
    left: 0;
    top: 6px;
    color: #212529;
    font-weight: 700;
}

@media (max-width: 991px) {
    .md-why { display: none; }
}

/* Quote display + additional questions steps: the SingleScheme views provide their own
   form/covers + summary columns, so drop the journey card chrome and the "Why insure"
   sidebar to avoid a competing third column. */
.md-journey:has(.single-scheme-quote),
.md-journey:has(.quote-additional),
.md-journey:has(.quote-registration) {
    display: block;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.md-journey:has(.single-scheme-quote) .md-why,
.md-journey:has(.quote-additional) .md-why,
.md-journey:has(.quote-registration) .md-why { display: none; }
.md-journey:has(.single-scheme-quote) .md-journey-main,
.md-journey:has(.quote-additional) .md-journey-main,
.md-journey:has(.quote-registration) .md-journey-main { padding: 0; }

/* Stepper strip: part of the header region (off-white), above the dark content (note 1). */
.md-stepper-strip {
    background: var(--md-off-white);
    border-bottom: 1px solid #e0e0e0;
    padding: 16px;   /* symmetric so the stepper sits vertically centred */
}
.md-stepper-strip:empty { display: none; }
.md-stepper-strip .step-menu { max-width: 940px; margin: 0 auto; }

/* Static coarse stepper for standalone MVC pages (e.g. Payment) that have no Vue journey to
   teleport the tracker. Mirrors the journey's four-stage look with self-contained colours. */
.md-cstep {
    display: flex;
    align-items: center;
    max-width: 940px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.md-cstep-item { display: flex; align-items: center; flex: 1 1 0; min-width: 0; }
.md-cstep-link { display: flex; align-items: center; text-decoration: none; cursor: pointer; }
.md-cstep-item::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #cfd4da;
    margin: 0 14px;
    min-width: 16px;
}
.md-cstep-item:last-child { flex: 0 0 auto; }
.md-cstep-item:last-child::after { display: none; }
.md-cstep-dot {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border: 2px solid #cfd4da;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #8a9099;
}
.md-cstep-label {
    margin-left: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #8a9099;
    white-space: nowrap;
}
.md-cstep-check {
    border: solid #fff;
    border-width: 0 2px 2px 0;
    height: 10px;
    width: 6px;
    transform: rotate(45deg);
    margin-top: -2px;
}
.md-cstep-item.active .md-cstep-dot,
.md-cstep-item.completed .md-cstep-dot {
    background: var(--md-accent);
    border-color: var(--md-accent);
    color: #fff;
}
.md-cstep-item.active .md-cstep-label,
.md-cstep-item.completed .md-cstep-label { color: #212529; }
.md-cstep-item.active::after,
.md-cstep-item.completed::after { background: var(--md-accent); }

@media (max-width: 767px) {
    .md-cstep-item .md-cstep-label { display: none; }
    .md-cstep-item.active .md-cstep-label { display: inline; }
}

/* Self-contained MD buttons (the host does not load Bootstrap). Used by the
   vueform nav (FormNavElement) and any Bootstrap-classed buttons in the journey. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 0;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
/* Primary CTA (tax-defense): solid burnt-orange, white bold text, uppercase. */
.btn-primary { background: var(--md-primary); color: #fff; border-color: var(--md-primary); text-transform: uppercase; }
.btn-primary:hover { background: #d1673a; border-color: #d1673a; }
.btn-outline-primary { background: #fff; color: var(--md-primary); border-color: var(--md-primary); }
.btn-outline-primary:hover { background: #fbeae2; }
/* Secondary / Back: dark neutral (matches the journey secondary), white bold text. */
.btn-ghost { background: #424242; color: #fff; border-color: #424242; }
.btn-ghost:hover { background: #333; border-color: #333; }

/* Inactivity timeout warning (Vue journey layout). */
.md-timeout { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); z-index: 1100; padding: 24px; }
.md-timeout[hidden] { display: none; }
.md-timeout-dialog { background: var(--md-off-white); border-radius: 8px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); padding: 28px 32px; max-width: 420px; width: 100%; text-align: center; }
.md-timeout-dialog h2 { margin: 0 0 12px; font-size: 1.5rem; font-weight: 600; color: var(--md-ink); }
.md-timeout-dialog p { margin: 4px 0; color: #5b6169; }
.md-timeout-count { font-size: 2.5rem; font-weight: 700; color: var(--md-primary); margin: 8px 0 12px; }
.md-timeout-dialog .btn { margin-top: 16px; }
.md-timeout-page { text-align: center; }

/* Minimal flex utilities the vendored engine expects from Bootstrap (not loaded here):
   drives the radio/checkbox two-per-row grid and the Back/Next nav spacing. */
.d-flex { display: flex; }
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.md-header .md-contact .callback { display: block; }
.md-header .md-contact .callback a { color: var(--md-accent); text-decoration: underline; font-size: 12px; }

/* Footer: matching orange top accent, single centered legal block. */
.md-footer {
    background-color: var(--md-off-white);
    box-shadow: inset 0 4px 0 0 var(--md-accent);
    padding: 40px 16px;
}
.md-footer .md-footer-inner { max-width: 1140px; margin: 0 auto; font-size: 12px; color: #5b6169; }
.md-footer .md-footer-links { margin-bottom: 16px; }
.md-footer .md-footer-links a { text-decoration: underline; }
.md-footer .md-footer-links .sep { margin: 0 8px; }

/* Purchase complete ("You're Covered") — MVC page, MD chrome. Two-column card: done message +
   refer-a-friend on the left, policy documents on the right. */
.md-complete {
    display: flex;
    align-items: stretch;
    background: var(--md-off-white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .18);
    overflow: hidden;
}
.md-complete-main { flex: 1; min-width: 0; padding: 32px 40px; }
.md-complete-docs { flex: none; width: 320px; padding: 32px; border-left: 1px solid #d4d8de; }

@media (max-width: 991px) {
    .md-complete { flex-direction: column; }
    .md-complete-docs { width: auto; border-left: 0; border-top: 1px solid #d4d8de; }
}
@media (max-width: 575px) {
    .md-complete-main, .md-complete-docs { padding: 24px 20px; }
}

.md-complete-title {
    margin: 0 0 16px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--md-ink);
}
.md-complete-title--sep { margin-top: 32px; padding-top: 28px; border-top: 1px solid #d4d8de; }
.md-complete-main p { margin: 16px 0; }
.md-complete-list { margin: 0 0 16px; padding-left: 22px; }
.md-complete-list li { margin: 4px 0; }

/* Refer a friend */
.md-raf { margin-top: 8px; }
.md-raf-result { margin-top: 8px; }
.md-raf-label { display: block; font-weight: 600; margin-bottom: 8px; }
.md-raf-linkbox {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border: 1px solid #d4d8de;
    border-radius: 6px;
    flex-wrap: wrap;
}
.md-raf-link {
    flex: 1;
    min-width: 0;
    border: 1px solid #d4d8de;
    border-radius: 4px;
    padding: 8px 10px;
    font: inherit;
    color: var(--md-ink);
    background: #f7f6f2;
}
.md-raf-copy { flex: none; }
.md-raf-share { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.md-raf-share-label { font-weight: 600; margin-right: 4px; }
.md-raf-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 4px;
    background: var(--md-primary);
    color: #fff;
    text-decoration: none;
}
.md-raf-share-btn:hover { background: #d1673a; }
.md-raf-error { margin-top: 12px; color: #842029; font-weight: 600; }

/* Documents list */
.md-doc-list { list-style: none; margin: 0; padding: 0; }
.md-doc-list li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; }
.md-doc-list li i { color: var(--md-primary); }
.md-doc-list a { text-decoration: underline; }
