/* ============================================
   ALPINE.JS X-CLOAK
   Hides any element marked [x-cloak] until Alpine.js inits and evaluates
   its x-show / x-if bindings. Critical for the retrieve-quote loading
   overlay (position: fixed, full-screen) which would otherwise cover the
   form on page load before Alpine has a chance to evaluate its x-show
   condition. Universal Alpine best-practice — applies everywhere, not
   just retrieve.
   ============================================ */
[x-cloak] { display: none !important; }

/* ============================================
   CSS VARIABLE DEFAULTS
   The partner brand CSS (loaded externally) overrides these.
   ============================================ */
:root {
--mcq-primary: #2b2a67;
    --mcq-secondary: #26408a;
    --mcq-accent1: #4eb857;
    --mcq-neutral: #6f7b8a;
    --mcq-lightbg: #d5e8db;
    --mcq-formlight: rgba(111, 123, 138, 0.15);
    --mcq-formdark: rgba(111, 123, 138, 0.5);
    /* Gap left above the form when scrolling to it on step change.
       Themes with sticky headers should raise this to match their header
       height — e.g. `:root { --mcq-scroll-offset: 120px; }` in the theme. */
    --mcq-scroll-offset: 80px;
    --mcq-container-max: 1100px;                       /* Max width of plugin page templates */
    --mcq-container-pad-y: clamp(1.5rem, 4vw, 3rem);   /* Vertical padding */
    --mcq-container-pad-x: clamp(1rem, 3vw, 2rem);     /* Horizontal padding */
}

/* ============================================
   SCROLL-INTO-VIEW OFFSET
   When form.js scrolls to the form on step change, leave room above so
   sticky theme headers don't cover the step indicators / panel title.
   Themes override by setting --mcq-scroll-offset on :root.
   ============================================ */
.mcq-form,
[data-mcq-scroll-target] {
    scroll-margin-top: var(--mcq-scroll-offset, 80px);
}

/* ============================================
   PAGE TEMPLATE CONTAINER
   Wraps the shortcode body on the plugin-provided page templates
   (page-mcq-results.php, page-mcq-confirmation.php) so the content
   gets a sensible max-width + responsive padding instead of being
   full-bleed.

   Themes can override either by changing the CSS variables on :root,
   or by targeting .mcq-page-container directly with higher specificity.
   ============================================ */
.mcq-page-container {
    max-width: var(--mcq-container-max);
    margin-left: auto;
    margin-right: auto;
    padding: var(--mcq-container-pad-y) var(--mcq-container-pad-x);
    box-sizing: border-box;
}

/* ============================================
   PROGRESS BAR & STEP INDICATORS
   ============================================ */

/* Progress wrap container */
.mcq-progress-wrap {
    position: relative;
    width: 100%;
    padding: 0 10px;
}

/* Main flex row for steps */
.mcq-progress {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-bottom: 24px;
}

/* Single base line behind steps */
.mcq-progress::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--mcq-secondary);
    z-index: 1;
}

/* Single fill line (progress fill) */
.mcq-progress::after {
    content: "";
    position: absolute;
    top: 22px;
    left: 0;
    height: 3px;
    background: var(--mcq-primary);
    z-index: 2;
    width: 0%;
    transition: width 0.3s ease;
}

/* Static widths per step (5 steps) */
.mcq-progress[data-step="1"]::after {
    width: 0%;
}

.mcq-progress[data-step="2"]::after {
    width: 25%;
}

.mcq-progress[data-step="3"]::after {
    width: 50%;
}

.mcq-progress[data-step="4"]::after {
    width: 75%;
}

.mcq-progress[data-step="5"]::after {
    width: 100%;
}

/* Individual step wrapper */
.mcq-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 3;
}

/* Remove old connector lines */
.mcq-step::before {
    content: none !important;
}

/* Numbered circle */
.mcq-step-number {
    position: relative;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--mcq-secondary);
    border: 2px solid var(--mcq-secondary);
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.25s ease;
}

/* Active step */
.mcq-step-active .mcq-step-number {
    background: #fff;
    border-color: var(--mcq-primary);
    color: var(--mcq-primary);
    box-shadow: 0 0 0 3px rgba(31, 35, 108, 0.12);
}

/* Done step */
.mcq-step-done .mcq-step-number {
    background: var(--mcq-primary);
    border-color: var(--mcq-primary);
    color: #fff;
}

/* Future step */
.mcq-step:not(.mcq-step-active):not(.mcq-step-done) .mcq-step-number {
    background: var(--mcq-secondary);
    border-color: var(--mcq-secondary);
    color: #fff;
}

/* Step labels */
.mcq-step-label {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.3;
    color: var(--mcq-muted);
    max-width: 140px;
    margin-left: auto;
    margin-right: auto;
    word-break: break-word;
}

/* Legacy global progress bar */
.mcq-progress-global {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.mcq-progress-bar {
    height: 6px;
    background: #1f236c;
    transition: width 0.3s ease;
}

.mcq-step-progress {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--mcq-neutral);
}

/* ============================================
   FORM LAYOUT & INPUTS
   ============================================ */

.mcq-form label {
    font-weight: 500;
    margin-bottom: .25rem;
    display: block;
    font-size: 0.95rem;
}

.mcq-form input[type="text"],
.mcq-form input[type="email"],
.mcq-form input[type="tel"],
.mcq-form input[type="number"],
.mcq-form select,
.mcq-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.5;
    background: var(--mcq-formlight);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.mcq-form input:focus,
.mcq-form select:focus,
.mcq-form textarea:focus {
    border-color: var(--mcq-accent1);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(58, 102, 229, 0.15);
}

.mcq-form ::placeholder {
    color: #adb5bd;
    font-size: 0.95rem;
}

.mcq-form .form-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--mcq-primary);
    margin: 0;
    text-align: left;
}

.mcq-form .row.g-3>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mcq-form input[type="number"],
.mcq-form input[type="text"],
.mcq-form select {
    justify-self: end;
    width: 400px;
    max-width: 100%;
}

.mcq-form-card #lastName,
.mcq-form-card #firstName,
.mcq-form-card #title {
    width: 100%;
}

.step-address input[type="number"],
.step-address input[type="text"],
.step-address select {
    width: 100% !important;
}


.country-option label {
    padding-right: 20px;
}

#about-you-step .form-label {
    min-width: 15%;
}

.mcq-form .btn-group {
    justify-self: end;
    display: flex;
    gap: 12px;
}

/* Prevent outer question labels from stealing click focus */
.mcq-form .d-flex>label.form-label,
.mcq-form .col-12>label.form-label {
    pointer-events: none;
}

@media (max-width: 768px) {

    .mcq-form input[type="number"],
    .mcq-form input[type="text"],
    .mcq-form select {
        justify-self: end;
        width: 100%;
        max-width: 100%;
    }
}


/* ============================================
   BUTTONS
   ============================================ */

/* Primary Button (Next, Find Address) */
.mcq-form .btn-primary {
    background-color: var(--mcq-accent1);
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 2.5rem;
    border-radius: 50px;
    border: 2px solid var(--mcq-accent1);
    transition: all .2s ease-in-out;
}

.mcq-form .postcode-btn {
    background-color: var(--mcq-formlight);
    color: #000;
    font-weight: 300;
    padding: 0.5rem 2.5rem;
    border-radius: 12px !important;
    transition: all .2s ease-in-out;
    font-size: 1em;
}

.address-form input[type="number"],
.address-form input[type="text"],
.address-form select {
    justify-self: end;
    width: 100%;
    max-width: 100%;
}


.mcq-form .btn-primary:hover,
.mcq-form .postcode-btn:hover {
    background: var(--mcq-primary);
    border-color: var(--mcq-primary);
    color: #fff;
}

/* Secondary / Outline */
.mcq-form .form-btn-outline-secondary {
    background: #fff;
    color: var(--mcq-primary);
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.85rem 1.5rem;
}

.mcq-form .form-btn-outline-secondary:hover {
    background: var(--mcq-lightbg);
    border-color: var(--mcq-accent1);
    color: var(--mcq-accent1);
}

/* Cancel link */
.mcq-form .btn-cancel {
    background: none;
    border: none;
    color: var(--mcq-primary);
    font-weight: 500;
    padding: 0;
    font-size: 0.95rem;
    text-decoration: underline;
    cursor: pointer;
}

.mcq-form .btn-cancel:hover {
    color: var(--mcq-accent1);
    text-decoration: underline;
}

/* Button Groups */
.btn-group {
    gap: 20px;
}

.btn-group .button {
    text-align: center;
    padding-top: 19px;
    padding-right: 25px;
    padding-bottom: 19px;
    padding-left: 25px;
    border-radius: 40px;
}

.form-btn-outline-primary {
    border-color: transparent;
    background: var(--mcq-formlight);
    color: var(--mcq-neutral);
    border-radius: 20px;
    min-width: 90px;
    font-weight: 500;
}

.form-btn-outline-primary:hover {
    background: var(--mcq-secondary);
    color: #fff;
}

.form-btn-outline-primary.active {
    background: var(--mcq-primary);
    border-color: var(--mcq-primary);
    color: #fff;
}

.button.form-btn-outline-primary {
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.button.form-btn-outline-primary::before,
.button.form-btn-outline-primary::after {
    pointer-events: none !important;
}

.btn-group .button.form-btn-outline-primary {
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.btn-group .button.form-btn-outline-primary::before,
.btn-group .button.form-btn-outline-primary::after {
    pointer-events: none !important;
}

.btn-group input.btn-check {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Transaction Type Buttons */
.transaction-type .btn {
    border-radius: 30px;
    font-weight: 500 !important;
    background: var(--mcq-lightbg);
    color: var(--mcq-primary);
    border: none !important;
    transition: all 0.2s ease-in-out;
    padding: 30px 30px !important;
}

.transaction-type .btn:hover {
    background: var(--mcq-secondary);
    color: #fff;
}

.transaction-type .btn.active {
    background: var(--mcq-primary);
    color: #fff;
}

.transaction-type .btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ============================================
   CARDS & CONTAINERS
   ============================================ */

.mcq-form-card {
    margin: 0 auto;
    padding: 2rem 2.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

.mcq-form-card p {
    text-align: center;
}

/* Retrieve Quote Form Inputs - match main form style */
.mcq-form-card input[type="text"],
.mcq-form-card input[type="email"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.5;
    background: var(--mcq-formlight);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.mcq-form-card input[type="text"]:focus,
.mcq-form-card input[type="email"]:focus {
    border-color: var(--mcq-accent1);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(58, 102, 229, 0.15);
}

.mcq-form-card ::placeholder {
    color: #adb5bd;
    font-size: 0.95rem;
}

/* Button Styles for Retrieve Quote */
.mcq-form-card .btn-primary {
    background-color: var(--mcq-primary);
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 2.5rem;
    border-radius: 50px;
    border: 2px solid var(--mcq-primary);
    transition: all .2s ease-in-out;
}

.mcq-form-card .btn-primary:hover {
    background-color: #fff;
    color: var(--mcq-accent1);
    border: 2px solid var(--mcq-accent1);
}

.mcq-form-heading {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #111827;
}

.mcq-step-heading {
    text-align: center;
}

.details-questions .form-label {
    font-size: 18px;
}

.details-questions h3 {
    color: var(--mcq-accent1);
}

.details-questions input[type="number"],
.details-questions input[type="text"],
.details-questions select {
    width: 100%;
    max-width: 350px;
}

/* Lender "Other" input - ensure it displays below the dropdown */
.details-questions .mt-2 {
    display: block;
    width: 100%;
}

.details-questions .mt-2 input[type="text"] {
    width: 100%;
    max-width: 350px;
}

@media screen and (min-width: 1200px) {
    .mcq-form-card .details-questions {
        padding: 0rem 8.5rem;
    }
}

/* ============================================
   POSTCODE LOOKUP
   ============================================ */

.postcode-lookup {
    display: flex;
    gap: .75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.postcode-lookup .mcq-form-error {
    flex-basis: 100%;
    order: 2;
    text-align: center;
}

.mcq-input-lg {
    flex: 1;
    max-width: 400px;
    padding: 0.85rem 1rem;
    border-radius: 30px;
    font-size: 1rem;
    text-align: center;
}

.mcq-btn-lg {
    padding: 0.85rem 1.75rem;
    border-radius: 30px;
    font-weight: 500;
}

.mcq-manual-link {
    font-size: 0.95rem;
}

.mcq-manual-link a {
    color: var(--mcq-accent1);
    text-decoration: underline;
    font-weight: 500;
}

/* ============================================
   ADDRESS RESULTS
   ============================================ */

.address-results .list-group-item {
    padding: 0.9rem 1rem;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    cursor: pointer;
}

.address-results .list-group-item:last-child {
    border-bottom: 0;
}

.address-results .list-group-item.active {
    background: rgba(31, 35, 108, .08);
    border-left: 3px solid var(--mcq-primary);
    background-color: var(--mcq-secondary);
    border-color: var(--mcq-secondary);
    color: #000;
}

/* ============================================
   STEP NAVIGATION
   ============================================ */

.step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.step-nav .btn-cancel {
    background: none;
    border: none;
    color: var(--mcq-primary);
    font-weight: 500;
    padding: 0;
    font-size: 0.95rem;
    text-decoration: underline;
    cursor: pointer;
}

.step-nav .btn-cancel:hover {
    color: var(--mcq-accent1);
}

.step-nav .mcq-footnote {
    font-size: 0.8rem;
    color: var(--mcq-neutral);
    font-style: italic;
    margin: 0;
    flex: 1;
    text-align: center;
}

.mcq-footnote {
    font-size: 0.8rem;
    color: var(--mcq-neutral);
    margin-top: 1.25rem;
    text-align: center;
    font-style: italic;
}

/* ============================================
   STEP IMAGES & CONTENT
   ============================================ */

.mcq-step-image-wrapper {
    padding-bottom: 20px;
}

.mcq-step-image-wrapper img {
    width: 100px;
    height: auto;
}

.form-content-before,
.form-content-after {
    padding: 50px 0px;
}

/* ============================================
   VALIDATION ERRORS
   ============================================ */

.mcq-form-error {
    color: #b91c1c;
    display: block;
    margin-top: 6px;
    font-size: 0.95rem;
}

.mcq-label-error {
    color: #b91c1c !important;
}

.mcq-nav-errors {
    color: #b91c1c;
    font-weight: 600;
    text-align: center;
    align-self: center;
    flex: 1;
    margin: 0 16px;
    font-size: 0.95rem;
}

.mcq-errors-summary {
    color: #b91c1c;
    text-align: center;
    margin: 6px 0;
    font-weight: 600;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */

.mcq-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: url('https://conveyquote.co.uk/wp-content/uploads/2025/11/Convey-Quote-1920X1080.webp') center center / cover no-repeat, #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mcq-loading-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(229 242 255 / 78%);
    z-index: 0;
}

.mcq-loading-overlay .loading-content {
    position: relative;
    z-index: 1;
}

.loading-content h2 {
    color: #1f236c;
    font-weight: 700;
}

.loading-bar {
    width: 180px;
    height: 6px;
    border-radius: 3px;
    background: #dcdfe6;
    overflow: hidden;
    position: relative;
}

.loading-bar::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 30%;
    height: 100%;
    background: #1f236c;
    animation: mcq-loading-move 1.6s ease-in-out infinite;
    border-radius: 3px;
}

@keyframes mcq-loading-move {
    0% {
        left: 0;
        width: 30%;
    }

    50% {
        left: 60%;
        width: 40%;
    }

    100% {
        left: 0;
        width: 30%;
    }
}

.mcq-loading-overlay .loading-content {
    max-width: 80%;
}

/* ============================================
   RESULTS CARDS (OLD - COMMENTED OUT)
   ============================================ */

/* .results-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin: 0 auto;
} */

/* Background band behind cards when Best Rated */
/* .best-rated-bg {
    background: #d9e4de;
    padding: 3rem 0;
    border-radius: 0.75rem;
} */

/* Result wrapper inside band stays centered */
/* .best-rated-bg .results-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
} */

/* Optional: Add "Best rated" badge to the top-left of the band */
/* .best-rated-bg::before {
    content: "Best rated";
    display: inline-block;
    background: #1f236c;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    border-radius: 8px 8px 0 0;
    margin-left: calc(50% - 490px);
} */

/* Card appearance stays consistent */
/* .result-card {
    background: #ffffff;
    border: none;
    border-radius: 18px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 1.75rem 2.25rem;
    transition: all 0.25s ease;
    width: 100%;
} */

/* .result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
} */

/* Header layout */
/* .result-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
} */

/* .result-info img {
    max-height: 60px;
} */

/* .result-info h5 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f236c;
    margin-bottom: 0;
} */

/* Buttons */
/* .result-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
} */

/* .result-actions .btn-link {
    color: #1f236c;
    font-weight: 600;
    text-decoration: none;
} */

/* .result-actions .btn-link:hover {
    text-decoration: underline;
} */

/* .result-actions .btn-primary {
    background: #3452ff;
    border: none;
    font-weight: 700;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
} */

/* .result-actions .btn-primary:hover {
    background: #1f236c;
} */

/* Stats chips */
/* .result-card .d-flex.flex-wrap.gap-3.my-3 {
    background: transparent;
    gap: 1rem !important;
} */

/* .result-card .bg-light {
    background: #e3e9ec !important;
    font-weight: 600;
    color: #1f236c;
    border-radius: 10px;
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
} */

/* .result-card strong {
    font-weight: 700;
} */

/* Highlight for the top card */
/* .result-card.best-rated-bg {
    background: #d9e4de;
    box-shadow: 0 8px 22px rgba(0,0,0,0.1);
    border: 2px solid #c6d6ce;
    position: relative;
} */

/* .result-card.best-rated-bg::before {
    content: "Best rated";
    position: absolute;
    top: -12px;
    left: 1.25rem;
    background: #1f236c;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.9rem;
    border-radius: 8px 8px 0 0;
} */

/* ============================================
   RESULTS PAGE - HERO SECTION
   ============================================ */

.hero-section {
    background-color: white;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {

    text-align: center;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
}

/* Results hero — extends .hero-content but uses !important so theme rules
   targeting h1/h2/h3/p inside main can't override the centering.
   Themes can still override via `.results-hero-content … { text-align:left !important }`
   if they really want left alignment.

   The flex:1 + width:100% claims the full row width inside the parent
   .hero-section (which is a flex container); without this the content box
   shrinks to its intrinsic width and sits at the start of the row, making
   the centered text look left-aligned visually. */
.results-hero-content {
    flex: 1 1 100%;
    width: 100%;
}
.results-hero-content,
.results-hero-content h1,
.results-hero-content h2,
.results-hero-content h3,
.results-hero-content h4,
.results-hero-content h5,
.results-hero-content h6,
.results-hero-content p {
    text-align: center !important;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

.hero-section h2 {
    font-size: 48px;
    color: var(--mcq-secondary);
    margin-bottom: 20px;
    text-align: left;
}

.hero-section p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
}

/* ============================================
   RESULTS PAGE - ACTION BUTTONS
   ============================================ */

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 30px 40px;
    background-color: white;
    align-content: center;
    align-items: center;
}

.action-buttons .btn {
    padding: 12px 30px;
    border-radius: 25px;
    border: 2px solid #ddd;
    background-color: white;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.action-buttons .btn:hover {
    border-color: var(--mcq-lightbg);
    color: var(--mcq-accent1);
}

.action-buttons .btn-primary {
    background-color: var(--mcq-accent1);
    color: white;
    border-color: var(--mcq-accent1);
}

.action-buttons .btn-primary:hover {
    background-color: var(--mcq-lightbg);

}

.action-buttons h3 {
    margin-bottom: 0px !important;
    line-height: 100%;
}

.skip-button {
    margin-top: 10px;
    background: none;
    border: none;
    color: var(--mcq-primary);
    font-weight: bold;
    text-decoration: underline;
}

.skip-button:hover {
    text-decoration: none;
    color: var(--mcq-accent1);
}

/* ============================================
   RESULTS PAGE - RESULT SECTIONS & CARDS
   ============================================ */
.results-hero-content .hero-buttons {
    margin-top: 20px;
}


.result-section {
    padding: 0;
    margin-bottom: 20px;
}

.result-section.best-rated {
    background: linear-gradient(to bottom, #c5d9d3 0%, #e8f0ed 100%);
    padding: 20px 40px 60px;
}

.result-section:not(.best-rated) {
    padding: 0 40px;
}

.tab-label {
    display: inline-block;
    background-color: var(--mcq-secondary);
    color: white;
    padding: 15px 30px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: -1px;
}

.result-card {
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-section.best-rated .result-card {
    border-radius: 0 12px 12px 12px;
}

.result-info {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 20px;
}

.firm-logo-name {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.firm-logo-name img {
    max-height: 80px;
    max-width: 150px;
    object-fit: contain;
}

.firm-logo-name h5 {
    font-size: 24px;
    font-weight: 600;
    color: var(--mcq-secondary);
    margin: 0;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

/* Edit Quote button on the standalone results page — secondary CTA.
   Outlined, uses the primary brand colour. Sits below the result card
   in single-firm mode so the customer can adjust their quote. */
.btn.btn-style-2,
.btn-style-2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: transparent;
    color: var(--mcq-primary);
    border: 2px solid var(--mcq-primary);
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn.btn-style-2:hover,
.btn-style-2:hover,
.btn.btn-style-2:focus,
.btn-style-2:focus {
    background: var(--mcq-primary);
    color: #fff;
    border-color: var(--mcq-primary);
    text-decoration: none;
}

.more-details-link {
    color: var(--mcq-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 20px auto;
    width: fit-content;
}

.instruct-btn {
    background-color: var(--mcq-accent1);
    color: white;
    padding: 12px 35px;
    border-radius: 25px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 2px 4px rgba(65, 105, 225, 0.3);
    max-height: 50px;
}

.instruct-btn:hover {
    background-color: #3154c6;
}

.quote-details-tables {
    border-right: 2px solid #dfdfdf
}

.quote-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    text-align: center;
}

.quote-sidebar-contact {
    margin-top: auto;
}

.total-fee-amount {
    color: var(--mcq-accent1);
    font-size: 1.5rem;
}

h5 .total-fee-amount {
    font-size: 1.0rem;
}

/* ============================================
   RESULTS PAGE - STATS GRID
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 0.6fr;
    gap: 15px;
    margin-bottom: 20px;
    align-items: stretch;
}

.stat-box {
    background: linear-gradient(to bottom, #d4e4df 0%, #d4e4df 50%, #f0f0f0 50%, #f0f0f0 100%);
    border-radius: 20px;
    padding: 12px 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-label {
    font-size: 16px;
    color: var(--mcq-secondary);
    font-weight: 600;
    margin-bottom: 6px;
    padding-bottom: 6px;
}

.stat-value {
    font-size: 16px;
    color: var(--mcq-secondary);
    font-weight: 700;
    padding-top: 6px;
}


/* ============================================
   RESULTS PAGE - EXPANDED DETAILS
   ============================================ */

.expanded-details {
    border-top: 2px solid #e0e0e0;
    padding-top: 20px;
    margin-top: 20px;
}

.firm-description {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--mcq-accent1);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-left: 5px;
    font-size: 0.95rem;
}

.read-more-btn:hover {
    color: var(--mcq-primary);
    text-decoration: none;
}

/* ============================================
   RESULTS PAGE - PAYMENT MODAL
   ============================================ */

.payment-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.payment-modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}


.payment-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    line-height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    border-radius: 50px;
    background-color: #c70000;
    color: #fff;
    width: 40px;
    text-align: center;
    height: 40px;
}

.payment-modal-close:hover {
    color: #fff;
    background-color: #6b1818;
}

.payment-modal iframe {
    width: 100%;
    height: 80vh;
    border: 0;
    border-radius: 0 0 8px 8px;
}


/* ============================================
   RESPONSIVE / MOBILE
   ============================================ */

@media (max-width: 1024px) {
    .mcq-step-number {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .mcq-step-label {
        font-size: 11px;
        max-width: 100px;
    }

    /* Fix line alignment for smaller circles */
    .mcq-progress::before,
    .mcq-progress::after {
        top: 19px;
        /* Adjusted for 38px circle (19px = half of 38px) */
    }
}

@media (max-width: 768px) {

    /* Hero Section - Image first on mobile */
    .hero-section {
        flex-direction: column-reverse;
        padding: 40px 20px;
    }

    .hero-section h2 {
        font-size: 36px;
        text-align: center;
    }

    .hero-section p {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        text-align: center;
    }

    /* Filter buttons - stacked on mobile */
    .action-buttons {
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }

    .action-buttons h3 {
        font-size: 18px;
        margin-bottom: 10px !important;
    }

    .action-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .result-info {
        flex-direction: column;
        gap: 20px;
    }

    .result-actions {
        align-items: center;
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .firm-logo-name {
        flex-direction: column;
        text-align: center;
    }

    .result-section.best-rated {
        padding: 20px 20px 40px;
    }

    .result-section:not(.best-rated) {
        padding: 0 20px;
    }

    /* More spacing between Legal Fees and Disbursements */
    .quote-details-tables h6.fw-bold.mt-3 {
        margin-top: 2rem !important;
    }

    /* Remove border on mobile for better layout */
    .quote-details-tables {
        border-right: none;
        margin-bottom: 2rem;
    }
}

@media (max-width: 640px) {

    /* Progress bar improvements for mobile */
    .mcq-step-number {
        width: 28px;
        height: 28px;
        font-size: 11px;
        font-weight: 700;
    }

    .mcq-step-label {
        font-size: 9px;
        max-width: 70px;
        margin-top: 4px;
        line-height: 1.2;
    }

    /* Fix line alignment for smaller circles on mobile */
    .mcq-progress::before,
    .mcq-progress::after {
        top: 14px;
        /* Adjusted for 28px circle (14px = half of 28px) */
        height: 2px;
        /* Thinner line on mobile */
    }

    .mcq-progress-wrap {
        padding: 0 5px;
    }

    .mcq-progress {
        margin-bottom: 16px;
    }

    .mcq-form-card {
        max-width: 95%;
        padding: 1.5rem 1.25rem;
    }

    .mcq-form-card .transaction-type .col-6 {
        width: 100%;
    }

    .mcq-form .row.g-3>div {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .mcq-step .btn-group .button {
        text-align: center;
        padding-top: 9px;
        padding-right: 15px;
        padding-bottom: 9px;
        padding-left: 15px;
        border-radius: 40px;
        margin-bottom: 15px;
        margin-top: 5px;
    }

    /* Better button spacing on mobile */
    .mcq-form .btn-primary {
        padding: 0.6rem 2rem;
        font-size: 0.95rem;
    }

    /* Improve input sizing on mobile */
    .mcq-form input[type="text"],
    .mcq-form input[type="email"],
    .mcq-form input[type="tel"],
    .mcq-form input[type="number"],
    .mcq-form select {
        padding: 0.75rem 0.85rem;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* Better postcode lookup on mobile */
    .postcode-lookup {
        flex-direction: column;
        gap: 0.5rem;
    }

    .mcq-input-lg {
        max-width: 100%;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }
}

@media (max-width: 576px) {

    .step-nav .btn-cancel,
    .step-nav .btn-primary {
        order: 2;
    }

    .step-nav .mcq-footnote {
        order: 1;
        margin-bottom: 0.75rem;
    }

    /* Hero section improvements for very small screens */
    .hero-section h2 {
        font-size: 28px !important;
    }

    .hero-section p {
        font-size: 16px;
    }

    /* Results page improvements */
    .result-card {
        padding: 20px;
    }

    .firm-logo-name h5 {
        font-size: 20px;
    }

    /* Stat boxes full width on very small screens */
    .stats-grid {
        gap: 30px;
        display: flex;
        flex-direction: column;
        align-content: center;
        align-items: center;
    }

    .stat-box {
        padding: 10px 15px;
        width: 80%;
    }

    .stat-label {
        font-size: 16px;
    }

    .stat-value {
        font-size: 14px;
    }

    /* Better table layout on mobile */
    .table-sm {
        font-size: 0.875rem;
    }

    .table-sm td {
        padding: 0.5rem 0.25rem;
    }

    /* Form card improvements */
    .mcq-form-heading {
        font-size: 1.25rem;
    }

    .read-more-btn {
        margin-left: 0px;


    }

    .quote-sidebar-contact {
        margin-top: 50px;
    }
}

/* Additional mobile enhancements for 8+ step progress bars */
@media (max-width: 480px) {

    /* Even smaller progress circles for 8-step journeys */
    .mcq-step-number {
        width: 24px;
        height: 24px;
        font-size: 10px;
        border-width: 1.5px;
    }

    .mcq-step-label {
        font-size: 8px;
        max-width: 60px;
        margin-top: 3px;
    }

    /* Fix line alignment for 24px circles */
    .mcq-progress::before,
    .mcq-progress::after {
        top: 12px;
        /* 12px = half of 24px */
        height: 1.5px;
    }

    /* Reduce active step glow on very small screens */
    .mcq-step-active .mcq-step-number {
        box-shadow: 0 0 0 2px rgba(31, 35, 108, 0.12);
    }

    /* Transaction type buttons full width */
    .transaction-type .btn {
        padding: 20px 15px !important;
        font-size: 0.9rem;
    }
}

/* ============================================
   CONFIRMATION PAGE STYLES (NEW FULL-WIDTH LAYOUT)
   ============================================ */

/* Full-width wrapper - remove default padding */
.mcq-confirmation-wrapper-fullwidth {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Partner-controlled WYSIWYG block in the expanded quote panel, rendered
   between the price breakdown and the Get Started / Skip Payment buttons.
   Edited in ConveyQuote → Form Text Fields → Results → "Text Above Action
   Buttons". Used for disclaimers, "no payment taken yet" reassurance, T&Cs
   links, partner marketing copy. Subtle by default — partner brand CSS can
   override via the `--mcq-formlight` token if they want louder. */
.mcq-results-pre-proceed {
    margin: 12px 0 16px;
    padding: 12px 14px;
    background: var(--mcq-formlight, rgba(111, 123, 138, 0.10));
    border-left: 3px solid var(--mcq-accent1, #4eb857);
    border-radius: 6px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--mcq-neutral, #4b5563);
}
.mcq-results-pre-proceed p:last-child { margin-bottom: 0; }
.mcq-results-pre-proceed a {
    color: var(--mcq-secondary, #26408a);
    text-decoration: underline;
}

/* Full-width Hero Section.
   Background colour comes from the brand --mcq-primary token (partner brand
   CSS overrides). Background image is optional — the template sets
   --mcq-confirm-hero-bg-image as an inline custom property when an image
   is uploaded in confirmation settings; otherwise it falls back to "none". */
.mcq-confirm-hero-fullwidth {
    width: 100%;
    padding: 80px 20px;
    text-align: center;
    color: white;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--mcq-primary);
    background-image: var(--mcq-confirm-hero-bg-image, none);
    background-repeat: no-repeat;
    background-size: 350px auto;
    background-position: right bottom;
}

.mcq-confirm-hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

.mcq-confirm-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: white;
}

.mcq-confirm-firm-logo {
    text-align: center;
    margin: 30px 0;
}

.mcq-confirm-firm-logo img {
    /* max-height: 80px; */
    max-width: 350px;
    height: auto;
    width: auto;
    display: inline-block;
    background: #ffffffe8;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mcq-confirm-hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.mcq-confirm-hero-content h2 span {
    font-weight: 600;
}

/* Two Column Section */
.mcq-confirm-two-col-section {
    width: 100%;
    padding: 60px 20px;
    background: white;
}

.mcq-confirm-container {
    max-width: 1200px;
    margin: 0 auto;
}

.mcq-confirm-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* When the partner hasn't set a Right Column Image, the template adds this
   modifier class so the left column spans full width — no awkward empty
   column on the right. */
.mcq-confirm-two-col--single {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

.mcq-confirm-col-left h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--mcq-primary);
    margin: 0 0 30px 0;
}

.mcq-confirm-col-left h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin: 25px 0 10px 0;
}

.mcq-confirm-col-left p {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0 0 20px 0;
}

.mcq-confirm-col-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mcq-confirm-right-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* Footer Section */
.mcq-confirm-footer-section {
    width: 100%;
    padding: 60px 20px;
    background: var(--mcq-primary);
    text-align: center;
    color: #fff
}

.mcq-confirm-footer-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.5;
}

.mcq-confirm-footer-section h2 span {
    font-weight: 700;
}

/* Responsive Design for Full-Width Layout */
@media (max-width: 992px) {
    .mcq-confirm-two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mcq-confirm-hero-content h1 {
        font-size: 2.25rem;
    }

    .mcq-confirm-hero-content h2 {
        font-size: 1.25rem;
    }

    .mcq-confirm-firm-logo img {
        max-height: 70px;
        max-width: 200px;
        padding: 12px;
    }

    .mcq-confirm-col-left h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .mcq-confirm-hero-fullwidth {
        padding: 60px 20px;
        min-height: 300px;
    }

    .mcq-confirm-hero-content h1 {
        font-size: 1.875rem;
    }

    .mcq-confirm-hero-content h2 {
        font-size: 1.125rem;
    }

    .mcq-confirm-firm-logo {
        margin: 20px 0;
    }

    .mcq-confirm-firm-logo img {
        max-height: 60px;
        max-width: 180px;
        padding: 10px;
    }

    .mcq-confirm-two-col-section {
        padding: 40px 20px;
    }

    .mcq-confirm-col-left h2 {
        font-size: 1.5rem;
    }

    .mcq-confirm-col-left h3 {
        font-size: 1.125rem;
    }

    .mcq-confirm-footer-section {
        padding: 40px 20px;
    }

    .mcq-confirm-footer-section h2 {
        font-size: 1.375rem;
    }
}

/* OLD CONFIRMATION STYLES BELOW (kept for backward compatibility) */

/* Hero Banner Section */
.mcq-confirm-hero {
    text-align: center;
    background: linear-gradient(135deg, var(--mcq-primary) 0%, var(--mcq-accent1) 100%);
    color: white;
    padding: 60px 30px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.mcq-confirm-checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-bottom: 24px;
}

.mcq-confirm-checkmark svg {
    color: white;
}

.mcq-confirm-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: white;
}

.mcq-confirm-subtitle {
    font-size: 1.25rem;
    margin: 0 0 32px 0;
    color: rgba(255, 255, 255, 0.95);
}

.mcq-confirm-ref {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 16px 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mcq-confirm-ref-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.mcq-confirm-ref-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* Section Container */
.mcq-confirm-section {
    margin-bottom: 40px;
}

.mcq-confirm-section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--mcq-primary);
    margin-bottom: 24px;
    text-align: center;
}

/* What Happens Next Steps */
.mcq-confirm-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 0 auto;
    max-width: 900px;
}

.mcq-confirm-step {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mcq-confirm-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mcq-confirm-step-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mcq-accent1);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
}

.mcq-confirm-step-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.mcq-confirm-step-content p {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Quote Summary Card */
.mcq-confirm-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Firm Info in Card */
.mcq-confirm-firm {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
}

.mcq-confirm-firm-logo {
    /* max-height: 60px; */
    /* max-width: 180px; */
    object-fit: contain;
}


.mcq-confirm-firm-details {
    flex: 1;
}

.mcq-confirm-firm-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.mcq-confirm-firm-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #f59e0b;
}

.mcq-confirm-firm-rating span:last-child {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Quote Details Rows */
.mcq-confirm-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mcq-confirm-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.mcq-confirm-detail-row:last-child {
    border-bottom: none;
}

.mcq-confirm-detail-label {
    font-weight: 600;
    color: #4b5563;
    font-size: 1rem;
}

.mcq-confirm-detail-value {
    color: #1f2937;
    font-size: 1rem;
    text-align: right;
}

.mcq-confirm-detail-total {
    padding-top: 20px;
    margin-top: 12px;
    border-top: 2px solid #e5e7eb;
    border-bottom: none;
}

.mcq-confirm-detail-total .mcq-confirm-detail-label {
    font-size: 1.25rem;
    color: #1f2937;
}

.mcq-confirm-detail-total .mcq-confirm-detail-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--mcq-accent1);
}

/* Actions Footer */
.mcq-confirm-footer {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.mcq-confirm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.mcq-confirm-btn-primary {
    background: var(--mcq-primary);
    color: white;
}

.mcq-confirm-btn-primary:hover {
    background: var(--mcq-accent1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

.mcq-confirm-btn-secondary {
    background: white;
    color: var(--mcq-primary);
    border: 2px solid var(--mcq-primary);
}

.mcq-confirm-btn-secondary:hover {
    background: var(--mcq-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mcq-confirm-hero {
        padding: 40px 20px;
    }

    .mcq-confirm-title {
        font-size: 1.875rem;
    }

    .mcq-confirm-subtitle {
        font-size: 1rem;
    }

    .mcq-confirm-ref {
        padding: 12px 24px;
    }

    .mcq-confirm-ref-value {
        font-size: 1.25rem;
    }

    .mcq-confirm-steps {
        grid-template-columns: 1fr;
    }

    .mcq-confirm-card {
        padding: 20px;
    }

    .mcq-confirm-firm {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .mcq-confirm-section-title {
        font-size: 1.5rem;
    }

    .mcq-confirm-footer {
        flex-direction: column;
    }

    .mcq-confirm-btn {
        width: 100%;
    }

    .mcq-confirm-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .mcq-confirm-detail-value {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .mcq-confirm-checkmark {
        width: 80px;
        height: 80px;
    }

    .mcq-confirm-checkmark svg {
        width: 48px;
        height: 48px;
    }

    .mcq-confirm-title {
        font-size: 1.5rem;
    }

    .mcq-confirm-step {
        padding: 16px;
    }

    .mcq-confirm-step-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* ============================================
   QUOTE SUMMARY PANEL (Results Page)
   ============================================ */

.mcq-quote-summary {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin: 20px auto 24px;
    max-width: 1000px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.mcq-quote-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    background: #f9fafb;
    border-bottom: 1px solid transparent;
    transition: background-color 0.2s ease;
    gap: 12px;
}

.mcq-quote-summary-header:hover {
    background: #f3f4f6;
}

.mcq-quote-summary-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--mcq-primary, #1f236c);
    font-size: 1rem;
    flex-shrink: 0;
}

.mcq-quote-summary-title i {
    font-size: 1.1rem;
}

.mcq-quote-summary-preview {
    flex: 1;
    color: #6b7280;
    font-size: 0.875rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 12px;
}

.mcq-quote-summary-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--mcq-primary, #1f236c);
    border-radius: 6px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.mcq-quote-summary-toggle:hover {
    background: rgba(31, 35, 108, 0.1);
}

.mcq-quote-summary-body {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
}

.mcq-quote-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.mcq-quote-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mcq-quote-summary-item.mcq-summary-wide {
    grid-column: 1 / -1;
}

.mcq-quote-summary-item.mcq-summary-reference {
    grid-column: 1 / -1;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.mcq-summary-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    font-weight: 500;
}

.mcq-summary-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
}

.mcq-summary-value.mcq-summary-flag {
    color: var(--mcq-primary, #1f236c);
    background: rgba(31, 35, 108, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
    font-size: 0.8125rem;
}

.mcq-quote-summary-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

.mcq-edit-quote-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mcq-primary, #1f236c);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.mcq-edit-quote-link:hover {
    background: rgba(31, 35, 108, 0.08);
    text-decoration: none;
    color: var(--mcq-primary, #1f236c);
}

/* Mobile responsive styles for quote summary */
@media (max-width: 768px) {
    .mcq-quote-summary {
        margin: 16px 12px 20px;
        border-radius: 10px;
    }

    .mcq-quote-summary-header {
        padding: 14px 16px;
        flex-wrap: wrap;
    }

    .mcq-quote-summary-preview {
        display: none;
    }

    .mcq-quote-summary-body {
        padding: 16px;
    }

    .mcq-quote-summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .mcq-quote-summary-item.mcq-summary-wide {
        grid-column: span 2;
    }

    .mcq-quote-summary-item.mcq-summary-reference {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .mcq-quote-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mcq-summary-label {
        font-size: 0.6875rem;
    }

    .mcq-summary-value {
        font-size: 0.875rem;
    }
}

/* ============================================
   NO RESULTS EMPTY STATE
   ============================================ */

@media (min-width: 768px) {
    .mcq-no-results {
        padding: 30px 70px;
        max-width: 1200px;
    }
}