/* =========================================
   KD MOBILE DETAILING
   RECOMMENDATION QUIZ
========================================= */

.recommendation-section {
    width: 100%;
    padding: 100px 20px;
    background: transparent;
}

.recommendation-wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

.recommendation-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 45px;
}

.recommendation-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: .65;
}

.recommendation-header h2 {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.recommendation-header p {
    margin: 18px auto 0;
    max-width: 600px;
    color: rgba(255,255,255,.65);
    line-height: 1.7;
}


/* =========================================
   MAIN CARD
========================================= */

.recommendation-card {
    position: relative;
    width: 100%;
    padding: 42px;
    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.08),
            rgba(255,255,255,.025)
        );

    border: 1px solid rgba(255,255,255,.10);

    box-shadow:
        0 25px 80px rgba(0,0,0,.35),
        inset 0 1px 0 rgba(255,255,255,.06);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}


/* =========================================
   PROGRESS
========================================= */

.recommendation-progress {
    margin-bottom: 45px;
}

.recommendation-progress-bar {
    width: 100%;
    height: 4px;

    overflow: hidden;

    border-radius: 20px;

    background: rgba(255,255,255,.08);
}

#recommendationProgress {
    width: 14.28%;
    height: 100%;

    border-radius: 20px;

    background: #fff;

    transition:
        width .45s cubic-bezier(.4,0,.2,1);
}

#recommendationStep {
    display: block;
    margin-top: 12px;

    font-size: 13px;
    color: rgba(255,255,255,.45);
}


/* =========================================
   QUESTIONS
========================================= */

.recommendation-question {
    display: none;
}

.recommendation-question.active {
    display: block;

    animation:
        recommendationQuestionIn
        .45s ease both;
}

/* Keep the answer cards consistent without forcing extra empty space
   on questions with fewer answers. */
.recommendation-question {
    width: 100%;
}

.recommendation-options {
    align-items: stretch;
    margin-top: 0;
}

.recommendation-option {
    min-height: 118px;
}

@keyframes recommendationQuestionIn {

    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================
   QUESTION TITLE
========================================= */

.question-number {
    display: block;

    margin-bottom: 10px;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;

    color: rgba(255,255,255,.45);
}

.recommendation-question h3 {
    margin: 0;

    font-size: clamp(28px, 4vw, 42px);

    line-height: 1.1;

    letter-spacing: -1px;
}

.recommendation-question > p {
    margin: 14px 0 32px;

    color: rgba(255,255,255,.55);

    line-height: 1.6;
}


/* =========================================
   ANSWER CARDS
========================================= */

.recommendation-options {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}


/* Each answer becomes a proper card */

.recommendation-option {
    position: relative;

    width: 100%;
    min-height: 125px;

    display: flex;
    align-items: center;

    gap: 18px;

    padding: 22px;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.075),
            rgba(255,255,255,.025)
        );

    color: #fff;

    text-align: left;

    cursor: pointer;

    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}


/* Hover */

.recommendation-option:hover {

    transform: translateY(-5px);

    border-color: rgba(255,255,255,.28);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.13),
            rgba(255,255,255,.045)
        );

    box-shadow:
        0 15px 35px rgba(0,0,0,.25);
}


/* Click */

.recommendation-option:active {
    transform: scale(.98);
}


/* =========================================
   ICON
========================================= */

.option-icon {

    width: 55px;
    height: 55px;

    min-width: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: rgba(255,255,255,.08);

    font-size: 25px;

    border: 1px solid rgba(255,255,255,.08);
}


/* =========================================
   ANSWER TEXT
========================================= */

.recommendation-option strong {

    display: block;

    margin-bottom: 6px;

    font-size: 16px;
    font-weight: 700;
}

.recommendation-option small {

    display: block;

    color: rgba(255,255,255,.48);

    font-size: 13px;

    line-height: 1.4;
}


/* =========================================
   RESULT
========================================= */

.recommendation-result {
    display: none;

    text-align: center;

    animation:
        recommendationQuestionIn
        .5s ease both;
}

.recommendation-result.active {
    display: block;
}

.result-icon {

    width: 80px;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 25px;

    border-radius: 24px;

    background: rgba(255,255,255,.08);

    border: 1px solid rgba(255,255,255,.10);

    font-size: 34px;
}

.recommendation-result h3 {

    margin: 8px 0 15px;

    font-size: clamp(32px, 5vw, 50px);

    letter-spacing: -1.5px;
}

.recommendation-result > p {

    max-width: 650px;

    margin: 0 auto;

    color: rgba(255,255,255,.62);

    line-height: 1.7;
}

.result-price {

    margin: 25px 0;

    font-size: 32px;

    font-weight: 800;
}

.result-reason {

    max-width: 650px;

    margin: 30px auto;

    padding: 22px;

    text-align: left;

    border-radius: 18px;

    background: rgba(255,255,255,.04);

    border: 1px solid rgba(255,255,255,.07);
}

.result-reason strong {

    display: block;

    margin-bottom: 8px;
}

.result-reason p {

    margin: 0;

    color: rgba(255,255,255,.55);

    line-height: 1.6;
}


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

.result-actions {

    display: flex;

    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;

    margin-top: 30px;
}

.result-primary,
.result-secondary {

    min-width: 180px;

    padding: 15px 24px;

    border-radius: 14px;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform .2s ease,
        opacity .2s ease;
}

.result-primary {

    background: #fff;

    color: #000;

    border: none;
}

.result-secondary {

    background: rgba(255,255,255,.07);

    color: #fff;

    border: 1px solid rgba(255,255,255,.12);
}

.result-primary:hover,
.result-secondary:hover {

    transform: translateY(-2px);

    opacity: .85;
}


/* =========================================
   RESTART
========================================= */

.recommendation-restart {

    margin-top: 25px;

    background: none;

    border: none;

    color: rgba(255,255,255,.4);

    font-size: 13px;

    cursor: pointer;

    text-decoration: underline;
}

.recommendation-restart:hover {
    color: #fff;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 750px) {


    .recommendation-card {
        padding: 28px;
    }

    .recommendation-options {
        grid-template-columns: 1fr;
    }

}


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

@media (max-width: 500px) {

    .recommendation-section {
        padding: 70px 15px;
    }

    .recommendation-card {
        padding: 22px;
        border-radius: 22px;
    }

    .recommendation-question h3 {
        font-size: 29px;
    }

    .recommendation-option {
        min-height: 105px;
        padding: 18px;
    }

    .option-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 21px;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-primary,
    .result-secondary {
        width: 100%;
    }

}