/*-----------------------------------*\
 * #quote.css
\*-----------------------------------*/

/**
 * RESET & BASE
 */

*{
    overflow-x: hidden;
}

.quote-hero {
    /* Epic Background */
    background-image: url('../images/hero.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    
    padding-block: 80px 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    
    position: relative;
}

/* Add a pseudo-element for the blur effect */
.quote-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Dark translucent overlay */
    backdrop-filter: blur(8px); /* The main blur effect */
    z-index: 0;
}

.quote-calculator-wrapper {
    /* Glassmorphism Main Card */
    background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* Glass blur */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Light border */
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); /* Epic shadow */
    padding: 40px;
    position: relative;
    z-index: 1; 
    margin-top: 100px;
}

/* Ensure text inside wrapper is bright and readable */
.quote-calculator-wrapper, 
.quote-calculator-wrapper .step-subtitle {
    color: var(--white);
}

.quote-calculator-wrapper .step-title {
    color: var(--yale-blue); /* Gold accent for title */
}

.price-summary-box {
    text-align: right;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom-color: rgba(255, 255, 255, 0.3); /* Lighter divider */
}

.price-summary-box .price-label,
.price-summary-box .disclaimer-text {
    color: var(--cultured);
}

.price-summary-box .current-price {
    font-family: var(--ff-montserrat);
    font-weight: var(--fw-800);
    font-size: var(--fs-2);
    color: var(--yale-blue);
    display: block;
}


/**
 * STEP CONTAINER & TRANSITIONS
 */
.step-container {
    position: relative;
    min-height: 450px; /* Increased height for better transitions */
}

.quote-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    padding: 10px 0;
}

.quote-step.active {
    opacity: 1;
    transform: translateX(0);
    position: relative; 
    pointer-events: auto;
}

.quote-step.out-left {
    opacity: 0;
    transform: translateX(-100%);
}

.quote-step.out-right {
    opacity: 0;
    transform: translateX(100%);
}

.step-title {
    color: var(--yale-blue);
    font-size: var(--fs-3);
    margin-bottom: 10px;
    text-align: center;
}

.navigation-btns {
    display: flex;
    justify-content: space-around; /* Changed to space-around for 3 buttons */
    margin-top: 40px;
}

.navigation-btns .btn,
.quote-step:not(.final-step) > .btn-primary {
    --padding: 12px 20px;
    font-size: var(--fs-6);
}

/* New Restart Button Style */
.navigation-btns .restart-btn {
    --padding: 12px 20px;
    background-color: transparent; 
    color: var(--cultured);
    border: 1px solid var(--spanish-gray);
    transition: all 0.3s;
    font-size: var(--fs-7);
}
.navigation-btns .restart-btn:hover {
    background-color: var(--spanish-gray); 
}

.navigation-btns .prev-btn {
    background-color: transparent;
    border-color: var(--cultured);
    color: var(--cultured);
}


/* Form Inputs for Glassmorphism */
.input-group {
    max-width: 400px;
    margin: 0 auto;
}

.input-field {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-15);
    font-size: var(--fs-6);
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent background */
    transition: border-color 0.3s;
    text-align: center;
}
.input-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.input-field:focus {
    border-color: var(--yale-blue);
    outline: none;
}
.location-cost-display {
    color: var(--yale-blue);
}

/**
 * IMAGE CARD OPTIONS (Step 3) - Glass Card Style
 */
.card-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.card-option, .car-option {
    padding: 0;
    /* Glass Card Style */
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border-radius: var(--radius-15);
}

.card-option:hover, .car-option:hover {
    border-color: var(--yale-blue);
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.card-option.selected, .car-option.selected {
    border-color: var(--yale-blue);
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px var(--yale-blue);
}

.card-option figure {
    height: 100px;
    overflow: hidden;
}
.card-option img, .car-options img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-option h3, .car-option h3 {
    color: var(--cultured); 
    margin: 10px 0;
    font-size: var(--fs-6);
    font-weight: var(--fw-600);
}

/* Vehicle Images for Step 7.2.1 */
.car-options .car-option {
    padding: 15px 15px 10px;
}
.car-options img {
    height: 70px;
    border-radius: 5px;
}


/**
 * YES/NO OPTIONS (Steps 7.1 & 7.2)
 */
.yes-no-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.yes-no-option {
    /* Updated for Glassmorphism background */
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--cultured);
    font-size: var(--fs-5);
    min-width: 150px;
}

.yes-no-option.selected {
    background-color: var(--yale-blue);
    border-color: var(--yale-blue);
    color: var(--oxford-blue);
}

/* Disable buttons when no selection made */
.btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/**
 * FINAL STEP
 */
.final-result-content {
    background-color: rgba(0, 0, 0, 0.4); /* Darker, less blurred background for readability */
    padding: 30px;
    border-radius: var(--radius-15);
    max-width: 500px;
    margin: 30px auto 0;
}

.final-message {
    color: var(--cultured);
}

.final-price-large {
    color: var(--yale-blue);
}

.final-summary, .contact-prompt {
    color: var(--cultured);
}