/* Base styles */
body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    width: 75% !important;
    margin: 0 auto;
}

#hero-section {
    position: relative;
    overflow: hidden;
    height: auto; /* allow full content to determine height */
}

.hero-text-overlay {
    position: relative;
    width: 100%;
    z-index: 2;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 5%;
    padding-bottom: 5%;
    background: rgba(0, 0, 0, 0.5); /* optional: for readability over image */
}

.quiz-heading {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.quiz-subtext {
    font-size: 1.1rem;
}

/* first question */
.elevated-quiz {
    margin-top: -180px;
    position: relative;
    z-index: 10;
}

/* Card wrapper */
.quiz-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    border: 2px solid #ffcf4b;
    box-shadow: 0 15px 30px rgba(255, 207, 75, 0.2);
    max-width: 800px;
    margin: 0 auto;
    transition: box-shadow 0.3s ease;
}

.quiz-card:hover {
    box-shadow: 0 25px 40px rgba(255, 207, 75, 0.3);
}

/* Question */
.quiz-question {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #333;
}

/* Grid layout */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 25px;
}

/* Vehicle option buttons */
.vehicle-option {
    background-color: #ffffff;
    border: 2px solid#000000 !important;
    border-radius: 14px;
    padding: 14px 22px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-weight: 600;
    color: #000000;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
    user-select: none;
    transition: all 0.3s ease;
}

/* Image styling */
.vehicle-img img {
    max-height: 30px;
    display: block;
}

/* Hover & focus effects */
.vehicle-option:hover,
.vehicle-option:focus {
    background-color: #f7c948;
    color: #fff;
    border-color: #f7c948;
    outline: none;
}

/* Arrow effect */
.vehicle-label .arrow {
    font-weight: 700;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.vehicle-option:hover .arrow {
    transform: translateX(4px);
}

/* Responsive: mobile (2 columns, stacked layout) */
@media (max-width: 768px) {
    .vehicle-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vehicle-option {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 120px;
        text-align: center;
        padding: 12px;
    }

    .vehicle-img img {
        max-height: 26px;
        margin-bottom: 6px;
    }
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Disclaimer */
.quiz-disclaimer {
    text-align: left;
    margin-left: 10px;
    font-size: 14px;
    color: #555;
    margin-top: 10px;
}

.quiz-icon {
    margin-right: 6px;
    vertical-align: middle;
    display: inline-block;
}

.quiz-content-box {
    background: #fff;
    border: 2px solid #f7c948;
    padding: 40px 35px;
    border-radius: 20px;
    max-width: 1000px;
    transition: box-shadow 0.3s ease;
}
.quiz-modal-content-box {
    background: #fff;
    padding: 20px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.204);
    max-width: 1100px;
    margin: auto;
    margin-top: -120px;
    position: relative;
    z-index: 10;
    min-height: 480px; /* Added to increase vertical space */
}

.quiz-intro-actions {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 1rem;
}

.quiz-disclaimer {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #333;
}

.quiz-icon svg {
    display: inline-block;
    margin-right: 0.25rem;
}
.quiz-disclaimer-text {
    font-size: 0.95rem;
    color: #1c1b1f !important; /* force dark text color */
    display: flex;
    align-items: center;
}

/* our providers section CARD SECTION */

.service-card {
    background: white;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    position: relative;
}

.top-rated-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    background-color: black;
    color: white;
    font-weight: bold;
    font-size: 12px;
    padding: 6px 25px;
    z-index: 10;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    flex-wrap: nowrap;
}

.logo {
    flex: 0 0 180px; /* increased from 120px */
    height: 180px; /* increased from 150px */
    width: 180px; /* increased from 150px */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* or "cover" if you want it to fill the box completely */
}

.promo-badge {
    flex: 0 0 200px; /* adjust width as needed */
    color: #000000;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    text-align: center;
}

.chaiz-promo-badge {
    flex: 0 0 250px; /* adjust width as needed */
    color: #000000;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    text-align: center;
}

.rating-section {
    flex: 0 0 100px; /* fixed width */
    text-align: center;
}

.rating-score {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.stars {
    color: #fbbf24;
    font-size: 18px;
    margin: 0px 0;
}

.cta-section {
    flex: 0 0 140px; /* fixed width */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.get-quote-btn {
    background: #ffcf4b;
    color: rgb(0, 0, 0);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
    width: 150px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* subtle shadow */
}

.get-quote-btn:hover {
    background: #876d27;
    color: white;
}

.divider-line {
    height: 1px;
    background-color: black;

    width: 100%;
    margin-bottom: 10px;
}

.divider-line2 {
    height: 1px;
    background-color: black;

    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
}

.description {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 25px;
    width: 400px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin-bottom: 25px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #374151;
}

.card-body-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 10px;
}

.checkmark {
    color: #10b981;
    font-weight: bold;
    margin-top: 2px;
}

.learn-more-btn {
    background: white;
    color: #ffcf4b;
    border: 2px solid #ffcf4b;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 230px;
}

.learn-more-btn:hover {
    background: #ffcf4b;
    color: rgb(255, 255, 255);
}

.phone-btn {
    background: white;
    color: #000000;
    border: 2px solid #000000;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 150px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* subtle shadow */
}

.phone-btn:hover {
    background: #000000;
    color: white;
}
@media (max-width: 768px) {
    .service-card {
        position: relative;
    }

    /* Rating floating in top-right corner */
    .rating-section {
        position: absolute;
        top: 2px;
        right: 10px;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        gap: 2px; /* reduced gap between score and stars */
        padding: 0;
        background: none;
        box-shadow: none;
        border-radius: 0;
        z-index: 10;
    }

    .rating-section .rating-score {
        font-size: 20px;
    }

    .rating-section .stars {
        font-size: 14px;
        line-height: 1;
    }

    /* Ensure rating doesn't appear in its original place */
    .logo-section .rating-section {
        order: unset;
    }

    /* Card structure */
    .service-card > .card-header,
    .service-card > .top-rated-ribbon,
    .service-card > .more-btn {
        display: block;
    }

    .service-card > .card-body-row,
    .service-card > .divider-line {
        display: none;
    }

    .card-body-row .description {
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
        text-align: center;
        word-wrap: break-word;
    }

    .description {
        font-weight: normal;
    }

    .card-body-row.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
        box-sizing: border-box;
        background: #fff;
    }

    .more-btn {
        display: block;
        width: 100%;
        padding: 10px;
        background: #f5f5f5;
        border: none;
        cursor: pointer;
        font-weight: bold;
        margin-top: 10px;
        box-sizing: border-box;
        order: 4;
    }

    .card-header {
        padding-bottom: 20px;
        border-bottom: 1px solid #ddd;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Logo + promo side by side */
    .logo-section {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 15px;
        flex-wrap: wrap;
        order: 1;
        width: 100%;
    }

    .logo {
        width: 130px;
        height: 130px;
    }

    .logo img {
        width: 130px;
        height: auto;
    }

    /* Buttons under logo + rating */
    .cta-section {
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        margin-top: 10px;
        width: 100%;
        order: 2;
    }

    .get-quote-btn,
    .phone-btn {
        width: 150px;
    }

    /* Promo badge under buttons */
    .promo-badge,
    .chaiz-promo-badge {
        padding: 6px 12px;
        font-size: 16px;
        font-weight: 600;
        text-align: center;
        display: flex;
        justify-content: center;
        color: #000;
        gap: 6px;
        margin-top: 10px;
        width: 100%;
        order: 3;
    }
}

@media (min-width: 769px) {
    .more-btn {
        display: none;
    }
}

/* get matched section */
.match-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 60px;
    margin-top: 60px;
    line-height: 1.3;
}

.match-steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 50px;
}

.match-step {
    flex: 1;
    text-align: center;
    max-width: none; /* remove width restriction */
    min-width: 300px; /* optional: give more breathing room */
}
.match-step-icon {
    width: 170px; /* reduced from 100px */
    height: 170px; /* reduced from 100px */
    margin: 0 auto 20px; /* tightened spacing */
    position: relative;
}

.match-step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.match-step-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.match-step-description {
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
}

.match-cta-button {
    background: #ffcf4b;
    color: rgb(0, 0, 0);
    font-size: 18px;
    font-weight: 600;
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 250px;
    margin: 0 auto;
}

.match-cta-button:hover {
    background: #876d27;
    color: white;
}

.match-cta-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .match-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .match-steps-container {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .match-step {
        max-width: 100%;
    }

    .match-step-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .match-car-icon::before,
    .match-search-icon::before,
    .match-quote-icon::before {
        font-size: 32px;
    }
}

/* scrores section */

.score-section {
    background-color: #fff7e0;
    padding: 40px 0;
}

#score-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 20px;
}

.score-content {
    flex: 1;
    z-index: 2;
}
.score-title {
    font-size: 2rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 30px;
    line-height: 1.2;
}

.score-description {
    font-size: 1.2rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 40px;
    width: 500px;
}

.score-highlight {
    font-weight: 700;
    color: #2d3748;
}

.score-cta-button {
    background: #ffffff;
    color: #ffcf4b;
    padding: 18px 40px;
    border: 2px solid #ffcf4b;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

.score-cta-button:hover {
    transform: translateY(-2px);
    background: #ffcf4b;
    color: white;
}

.score-illustration {
    width: 100%;
    max-width: 220px;
}

.score-illustration img {
    width: 100%;
    height: auto;
    display: block;
}
@media (max-width: 768px) {
    #score-section .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 20px;
    }

    .score-content {
        width: 100%;
        max-width: 500px;
    }

    .score-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .score-description {
        font-size: 1rem;
        width: 100%;
        margin-bottom: 30px;
    }

    .score-cta-button {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }

    .score-illustration {
        margin-top: 30px;
        width: 100%;
        max-width: 150px;
    }

    .score-illustration img {
        width: 100%;
        height: auto;
        display: block;
    }
}

/* disclousure section */
.advertising-disclosure .advertising-card {
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.advertising-disclosure .advertising-card-title {
    color: #2c3e50;
    font-weight: 600;
}

.advertising-disclosure .advertising-card-text {
    color: #34495e;
    line-height: 1.6;
}

.advertising-disclosure .advertising-btn-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.advertising-disclosure .advertising-btn-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.advertising-disclosure .more-content {
    margin-bottom: 1rem;
}

.advertising-disclosure .more-content p:last-child {
    margin-bottom: 0;
}

/* faq section */
.faq-section .faq-card {
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
}

.faq-section .faq-card-title {
    color: #2c3e50;
    font-weight: 600;
}

.faq-section .faq-question {
    color: #2c3e50;
    font-weight: 500;
    text-decoration: none !important;
}

.faq-section .faq-question:hover {
    color: #ffcf4b;
}

.faq-section .faq-answer {
    color: #34495e;
    line-height: 1.6;
    padding-left: 1rem;
    border-left: 2px solid #ffcf4b;
}

.faq-section .faq-icon {
    font-size: 1.25rem;
    color: #ffcf4b;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 0 1rem;
    }

    .faq-card {
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }

    .faq-card-body {
        padding: 1.5rem !important;
    }

    .faq-card-title {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 1.5rem !important;
    }

    .faq-question {
        font-size: 1rem;
        padding: 0.75rem 0;
    }

    .faq-icon {
        font-size: 1.5rem;
        color: #ffcf4b;
        margin-left: 1rem;
    }

    .faq-answer {
        font-size: 0.95rem;
        padding-left: 0.75rem;
        border-left: 3px solid #ffcf4b;
    }

    .faq-answer ul {
        padding-left: 1.25rem;
        margin-top: 0.5rem;
    }

    .faq-answer li {
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }

    .faq-item {
        padding: 0.5rem 0;
    }

    .faq-question span:first-child {
        flex: 1;
        line-height: 1.4;
    }
}

/* modal quiz */
.zip-helper-text {
    background: #fff3cd; /* soft yellow */
    color: #856404; /* darker yellow/brown text for contrast */
    font-size: 12px;
    text-align: center;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 12px;
}
.car-quiz-right {
    background: #000000;
    color: white;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 3rem 2rem;
    box-sizing: border-box;
    overflow-y: auto;
    min-height: 0; /* important for flex children */
    width: 75%;
}

#quiz-right-div {
    flex: 1; /* allow grow & shrink */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* vertical + horizontal centering */
    text-align: center;
    width: 100%;
    margin: 0 auto;
    padding: 2rem; /* Add some padding for better spacing */
}

.car-quiz-right img {
    display: block;
    margin: 0 auto 1.5rem auto; /* Center the image horizontally */
    max-width: 140px;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

#quiz-right-div h2,
#quiz-right-div p {
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

#chaiz-inline-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* horizontal center */
    justify-content: flex-start; /* top align */
    text-align: center;
    box-sizing: border-box;
    padding: 0 1rem;
    /* No internal scroll here! */
}

#search-results-skip {
    width: 100%;
    margin-top: 1rem;
    color: #fff;
    text-align: left; /* usually better for results */
    overflow: visible; /* ensure no scrolling */
    word-break: break-word;
}

/* Remove any height or max-height or overflow from chaiz result container if present */
#search-results-skip,
#search-results-skip * {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.d-none {
    display: none;
}

.car-quiz-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: #fff;
    font-family: Arial, sans-serif;
}

.car-quiz-modal.show {
    display: flex;
}

.car-quiz-close {
    position: fixed;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    color: #ffcf4b;
    cursor: pointer;
    z-index: 10000;
}
.car-quiz-close1 {
    position: fixed;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    z-index: 10000;
}

.car-quiz-split {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: row;
}

.car-quiz-left,
.car-quiz-right {
    padding: 3rem 2rem;
    overflow-y: auto;
}

/* Left Side (Yellow) */
.car-quiz-left {
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25%;
}

/* Quiz Content Styling */

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.quiz-section-heading {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.car-quiz-body {
    width: 100%;
    max-width: 500px;
}

.modal-question {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.modal-dropdown1 {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ffcf4b;
    border-radius: 5px;
    font-size: 1rem;
}

.step-buttons-wrapper {
    text-align: center;
    margin-top: 1rem;
}

.step-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.to-step-btn {
    background-color: #ffcf4b;
    color: #000000;
    padding: 12px 24px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    max-width: 150px;
    width: 100%;
}

.skip-section {
    margin-top: 1rem;
}

.skip-message {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 8px;
}

.to-skip-btn {
    background-color: #ffffff;
    color: #ffcf4b;
    padding: 12px 24px;
    font-size: 1rem;
    border: 2px solid #ffcf4b;
    border-radius: 5px;
    cursor: pointer;
    max-width: 150px;
    width: 100%;
}

.to-skip-btn:hover {
    background-color: #ffcf4b;
    color: #fff;
    transition: background-color 0.3s ease;
}

.options-grid1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.mile-opt1 {
    padding: 12px;
    background-color: white;
    border: 2px solid #ffcf4b;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

.mile-opt1.selected {
    background-color: #ffcf4b;
    color: #000;
    border-color: #ffcf4b;
}

.warranty-urgency-opt1 {
    padding: 12px;
    background-color: white;
    border: 2px solid #ffcf4b;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

.warranty-urgency-opt1.selected {
    background-color: #ffcf4b;
    color: #000;
    border-color: #ffcf4b;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .car-quiz-modal.show {
        flex-direction: column;
        overflow-y: auto;
    }

    .car-quiz-split {
        flex-direction: column;
        height: auto;
    }

    .car-quiz-left,
    .car-quiz-right {
        width: 100%;
        padding: 2rem 1.5rem;
        overflow: unset;
    }

    .car-quiz-left {
        min-height: 100vh;
    }

    .car-quiz-right {
        background-color: #000;
        color: #fff;
        text-align: center;
    }

    .car-quiz-close {
        top: 10px;
        right: 15px;
    }
    .car-quiz-close1 {
        top: 10px;
        right: 15px;
    }
}

.success-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.success-modal-content {
    background: white;
    width: 100vw;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

/* Right Grey Section (now on the right) */
.modal-left-section {
    background: #a4a9ae;
    width: 75%;
    padding: 20px;
    color: white;
    position: relative;
    overflow-y: auto;
}

.modal-left-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/><circle cx="20" cy="20" r="1" fill="white" opacity="0.05"/><circle cx="80" cy="30" r="1.5" fill="white" opacity="0.08"/><circle cx="30" cy="80" r="1" fill="white" opacity="0.06"/></svg>')
        repeat;
    opacity: 0.3;
}

#search-results {
    position: relative;
    z-index: 1;
    height: 100%;
    width: 100%;
}

/* Left Content Section (now on the left) */
.modal-right-section {
    width: 25%;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.content-wrapper {
    margin-top: 10px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 15px;
}

.plans-heading {
    padding: 0rem 0rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #ffffff;
    align-self: flex-start;
}

.success-header {
    text-align: center;
    margin-top: -77px; /* adjust as needed */
}

.success-header h3 {
    color: #2c3e50;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.lead-destination-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #ffcf4b;
}

.lead-destination-info {
    margin: 0;
    font-size: 15px;
    color: #2c3e50;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.what-happens-next {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.what-happens-next h4 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-item {
    display: flex;
    gap: 10px;
}

.step-number {
    background: #ffcf4b;
    color: #2c3e50;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 12px;
}

.step-content p {
    margin: 0;
    color: #495057;
    font-size: 13px;
    line-height: 1.4;
}

.awareness-section {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
}

.awareness-section h5 {
    color: #856404;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    text-align: center;
}

.awareness-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.awareness-item {
    display: flex;
    gap: 8px;
}

.awareness-number {
    background: #ffc107;
    color: #856404;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 11px;
}

.awareness-item p {
    margin: 0;
    color: #856404;
    font-size: 12px;
    line-height: 1.4;
}

.btn-continue {
    background: #ffcf4b;
    color: #2c3e50;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 200px;
}

.btn-continue:hover {
    background: #ffd700;
    transform: translateY(-2px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .success-modal-container {
        padding: 0px 0; /* add top & bottom padding */
        overflow-y: auto;
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center; /* horizontal centering */
        justify-content: center; /* vertical centering */
        box-sizing: border-box;
    }

    .success-modal-content {
        flex-direction: column;
        width: 100%;
        max-height: 90vh; /* slightly less than container to allow padding */
        overflow-y: auto;
        padding: 0;
        margin: 0 auto;
    }

    .modal-left-section,
    .modal-right-section {
        width: 100%;
        padding: 20px 15px;
        box-sizing: border-box;
        height: auto;
        overflow: visible;
    }

    .modal-left-section {
        background: #a4a9ae;
        color: white;
        text-align: center;
        padding-top: 10px;
    }

    .modal-right-section {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: 10px;
        margin-bottom: 40px;
    }

    .content-wrapper {
        width: 100%;
        max-width: 600px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        text-align: center;
    }

    .success-header {
        margin-top: 0;
    }

    .success-header h1 {
        font-size: 22px;
        line-height: 1.4;
    }

    .btn-continue {
        width: 100%;
        max-width: 300px;
        font-size: 15px;
        padding: 14px;
        margin: 0 auto;
        display: block;
    }

    .plans-heading h1 {
        font-size: 20px;
    }
    .plans-heading p {
        font-size: 11px;
    }
}
.quiz-progress-container {
    width: 100%;
    background-color: #eee;
    border-radius: 20px;
    height: 25px;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.quiz-progress-bar {
    background: linear-gradient(to right, #ffcf4b, #ffcf4ba7);
    height: 100%;
    width: 10%;
    border-radius: 20px;
    transition: width 0.4s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

#quiz-progress-text {
    font-size: 13px;
    font-weight: bold;
    color: white;
}

#chaizModal.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    padding: 20px 40px 40px 40px; /* add padding around content */
    margin: 0;
    overflow-y: auto;
    box-sizing: border-box; /* important for padding */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
    color: #222;
}

#chaizModal .modal-content {
    flex: 1;
    position: relative;
    background-color: transparent;
    box-sizing: border-box;
    padding-top: 20px;
    padding-right: 60px; /* extra right padding so content won’t hide behind close button */
}

#chaizModal .close {
    position: fixed; /* fixed so it stays visible even if modal scrolls */
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: #ffcf4b;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    z-index: 10000; /* highest so it’s always on top */
    transition: color 0.3s ease;
    background: none;
    border: none;
}

#chaizModal .close:hover {
    color: #d4a51f;
}

#chaizModal #search-results {
    width: 100%;
    height: 100%;
    background-color: transparent;
    overflow-y: auto;
    box-sizing: border-box;
}
#chaizModal h3,
#chaizModal p {
    color: #000000;
    text-align: center;
    margin: 0 auto 10px auto; /* top 0, horizontal auto, bottom 20px */
    max-width: 600px; /* optional max width for better reading */
}

@media (max-width: 768px) {
    #chaizModal.modal {
        padding: 15px 20px 20px 20px;
    }

    #chaizModal .modal-content {
        padding-right: 50px;
        padding-top: 15px;
    }

    #chaizModal .close {
        top: 15px;
        right: 15px;
        font-size: 28px;
    }
}
