/* select.css - Styles for the Selection Page */

/* Base Layout Wrapper */
.select-page-wrapper {
    width: 100%;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    /* Consistent with template */
}

/* --- Section: How To Get Your Band Score --- */
.steps-section {
    background-color: #0b2241;
    /* Dark blue background from source visual cue */
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.steps-heading {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #ffffff;
    text-transform: uppercase;
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping by default (mobile) */
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}



.step-card {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.step-link {
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.step-link:hover {
    transform: scale(1.05);
    /* Indication of clickable */
}

.step-image {
    height: 180px;
    /* Fixed height for alignment */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 25px;
}

/* .step-card:hover .step-image {
    transform: scale(1.05);
} */

.step-title {
    font-size: 19px;
    font-weight: 700;
    color: #4da6ff;
    /* Light blue accent */
    margin-bottom: 10px;
    text-transform: uppercase;
    min-height: 50px;
    /* Aligns text rows */
}

.step-price {
    font-size: 16px;
    font-weight: 600;
}

.step-price .original-price {
    text-decoration: line-through;
    color: #a0a0a0;
    margin-right: 10px;
}

.step-price .current-price {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
}

/* Desktop Connector Line */
.step-connector-desktop {
    width: 60px;
    height: 10px;
    /* Thicker line */
    background-color: #ffffff;
    margin-top: 250px;
    /* Aligned to vertically center with the pill (205px top offset + 30px half-height - 5px half-line) */
    display: none;
    flex-shrink: 0;
}

/* Section Divider Arrow */
.section-divider {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 60px;
    /* Space from step cards */
    padding-bottom: 0;
}




/* --- Section: Get Started --- */
.selection-section {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.selection-heading {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 40px;
    color: #0b2241;
    text-transform: uppercase;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.selection-card {
    background: #f4f4f4;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.selection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #4da6ff;
}

.selection-card img {
    width: 100%;
    height: auto;
    display: block;
}

.selection-card h3 {
    padding: 15px;
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 700;
}

/* Recommended Badge Style */
.recommended-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: auto;
    z-index: 10;
}


/* --- Selection Card Enhancements --- */

/* Get Started Section Gradient */
.selection-section {
    /* Light blue gradient background */
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 100%);
    position: relative;
    padding-top: 40px;
    /* Reduced gap before Get Started */
    /* More padding for visuals */
}

/* Steps Pricing Correction */
.step-price .original-price {
    display: block;
    /* Force new line above */
    font-size: 18px;
    color: #e0e0e0;
    margin-right: 0;
    margin-bottom: 5px;
    font-weight: 500;
}

.step-price .current-price {
    display: block;
    font-size: 48px;
    /* Larger "FREE" text */
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

/* Step Title Pills */
.step-title-pill {
    background-color: #fff;
    color: #0b2241;
    text-decoration: none;
    /* Remove underline */
    padding: 0 10px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 18px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Center multiline text */
    width: 100%;
    /* Fill card width to touch edges */
    height: 80px;
    /* Increased height for desktop */
    line-height: 1.2;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Smooth color transition */
    cursor: pointer;
}

.step-title-pill:hover {
    background-color: #e6f7ff;
    /* Light blue on hover */
    color: #0b2241;
    /* Keep dark text */
    transform: none;
    /* Explicitly no scale */
}

/* Updated Step Images */
.step-image {
    max-width: 200px;
    /* Slightly larger */
    margin-bottom: 25px;
}


/* --- Mobile Connector Line --- */
.step-connector-mobile {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.step-line {
    width: 14px;
    /* Even Thicker line */
    height: 80px;
    background-color: #fff;
    margin-bottom: -2px;
    border-radius: 2px;
    /* Smoother cap */
}

.step-arrow-mobile {
    width: 40px;
    height: auto;
    display: block;
    margin-top: -1px;
    margin-bottom: 20px;
}

/* --- Card Indicators (Bars) --- */
.card-content {
    padding: 15px;
    background: #fff;
    /* Ensure text area is white if card has other bg */
}

.card-indicators {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
}

.bar {
    width: 25px;
    height: 6px;
    border-radius: 3px;
    background-color: #e0e0e0;
    /* Default Gray */
}

.bar.yellow {
    background-color: #ffcc00;
}

.bar.green {
    background-color: #00cc66;
}

.bar.blue {
    background-color: #0099ff;
}

.bar.red {
    background-color: #ff3333;
}

.bar.gray {
    background-color: #e0e0e0;
}

/* Complete Test Special Styling */
.recommended-text {
    position: absolute;
    top: -30px;
    /* Floating above card */
    left: 0;
    right: 0;
    text-align: center;
    color: #0099ff;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.selection-card {
    overflow: visible;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background: transparent;
}

/* We need to ensure the image still has rounded corners if overflow is visible */
.selection-card img {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.selection-card .card-content {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Thumbs Up Badge Position */
.recommended-badge {
    position: absolute;
    top: -15px;
    right: -10px;
    width: 40px;
    z-index: 20;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Start grid for cards again to ensure alignment */
.selection-grid {
    align-items: flex-end;
    /* Align bottom so recommended text doesn't break grid row? */
    margin-top: 40px;
    /* Space for recommended text */
}


/* Desktop Layout Rules */
@media (min-width: 1025px) {
    .steps-container {
        flex-wrap: nowrap;
        width: 100%;
        max-width: 1400px;
        justify-content: space-between;
        /* Ensure spread */
    }

    .step-card {
        flex: 1;
        /* Allow cards to grow/shrink filling space */
        width: auto;
        /* Reset fixed widths */
        min-width: 0;
        /* Allow shrinking below content size if strictly needed */
        padding: 20px 0;
    }

    .step-title-pill {
        display: flex;
        width: 100%;
        /* Stretch to touch card edges/connectors */
        font-size: 17px;
        /* Slightly smaller base font for safety */
        padding: 0 10px;
        /* Increased padding for internal margin */
    }

    .step-connector-desktop {
        display: block;
        flex: 0 0 30px;
        /* Fixed width for connector */
        width: 30px;
        height: 10px;
        margin-top: 55px;
        /* Aligned to new top position of pill (20px pad + 40px center - 5px) */
    }

    /* Reorder Selection Cards: Complete Test (1) to Middle (3) */
    .selection-card:nth-child(1) {
        order: 3;
        /* Complete Test */
    }

    .selection-card:nth-child(2) {
        order: 1;
        /* Listening */
    }

    .selection-card:nth-child(3) {
        order: 2;
        /* Reading */
    }

    .selection-card:nth-child(4) {
        order: 4;
        /* Writing */
    }

    .selection-card:nth-child(5) {
        order: 5;
        /* Speaking */
    }
}


/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {

    .step-card {
        width: 100%;
        max-width: none;
        /* Allow full width */
        padding-left: 20px;
        /* Space between line and content */
        margin-bottom: 40px;
        /* Spacing between steps */
        text-align: left;
        /* Align content to left */
        align-items: flex-start;
        /* Align flex items to left */
    }

    .step-title-pill {
        display: flex;
        width: calc(100% + 55px);
        /* Extend background width to overlap left */
        min-width: 0;
        max-width: none;
        margin: 0 0 20px -55px;
        /* Pull left to intersect line (30px container pad + 20px card pad + extra) */
        padding: 0 10px 0 50px;
        /* Add left padding to balance text position */
        text-align: center;
        /* Keep text centered locally */
        height: auto;
        /* Allow height to adapt */
        min-height: 60px;
        border-radius: 0 50px 50px 0;
        /* Flat left edge, rounded right */
        justify-content: center;
    }

    /* Mobile Connectors */
    .step-connector-mobile {
        display: none !important;
        /* Hide arrows */
    }

    /* Timeline Line Container */
    .steps-container {
        display: flex;
        flex-direction: column;
        position: relative;
        padding-left: 40px;
        margin-left: 20px;
        /* Line created by pseudo-element below */
    }

    /* The Continuous Line */
    .steps-container::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        /* Starts exactly at top, flush with first pill */
        bottom: 0;
        width: 8px;
        /* Thicker line as requested */
        background-color: #ffffff;
        border-radius: 4px;
    }

    .step-card {
        width: 100%;
        max-width: none;
        padding-left: 20px;
        margin-bottom: 40px;
        text-align: center;
        /* Center text content */
        align-items: stretch;
        /* Stretch to allow full width pill */
        display: flex;
        flex-direction: column;
    }

    .step-link,
    .step-price {
        align-self: center;
        /* Center the image link and price */
    }

    .step-title-pill {
        display: flex;
        width: calc(100% + 55px);
        /* Extend background width to overlap left */
        min-width: 0;
        max-width: none;
        margin: 0 0 20px -55px;
        /* Pull left to intersect line */
        padding: 0 10px 0 50px;
        /* Add left padding to balance text position */
        text-align: center;
        height: auto;
        min-height: 60px;
        border-radius: 0 50px 50px 0;
        justify-content: center;
        align-self: flex-start;
        font-size: 18px;
        /* Ensure pill aligns left/start relative to card */
    }

    .steps-heading {
        font-size: 32px;
        padding: 0 20px;
    }

    /* Adjust selection grid for mobile */
    .selection-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 70px auto 0 auto;
        /* Increased gap after text on mobile */
        gap: 30px;
    }

    .selection-card {
        margin-bottom: 0;
    }
}

/* Extra Spacing for Wide Screens */
@media (min-width: 1400px) {
    .step-connector-desktop {
        flex: 0 0 80px;
        /* Wider connectors on large screens */
        width: 80px;
    }

    .steps-container {
        max-width: 1440px;
        /* Allow container to grow slightly to accommodate */
    }
}