/* --- Perfected Component Styles --- */
.interactive-container-amazing {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    font-family: 'Inter', sans-serif;
    /* background-color: #ffffff; */
    /* White background for mobile */
}

/* --- Left Panel: Text Options --- */
.text-options-panel {
    padding: 32px 20px;
    box-sizing: border-box;
}

.options-list {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- The Magic Moving Indicator --- */
.active-indicator {
    position: absolute;
    left: 0;
    width: 100%;
    background-color: #f3f4f6;
    /* Softer gray */
    border-radius: 12px;
    z-index: 1;
    transition: top 0.4s cubic-bezier(0.22, 1, 0.36, 1), height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.options-list li {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 1px solid #e5e7eb;
}

.options-list li:hover {
    transform: scale(1.02);
}

.options-list .percentage {
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
    width: 50px;
    text-align: right;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.options-list .label {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    transition: color 0.3s ease;

}

/* Active State Styling */
.options-list li.active .percentage {
    color: #2563eb;
}

.options-list li.active .label {
    color: #1e40af;
    font-weight: 700;
}

/* --- Right Panel: Image Display (Mobile First) --- */
.image-panel {
    margin: 0 16px 32px 16px;
    /* Spacing for mobile view */
    border-radius: 24px;
    /* PERFECT 4-SIDED BORDER RADIUS */
    overflow: hidden;
    /* Key for applying border-radius to the image */
    box-shadow: 0 10px 30px -5px rgba(27, 35, 49, 0.2);
    aspect-ratio: 4 / 3;
    /* Ensures a consistent shape */
}

.image-wrapper {
    width: 100%;
    height: 100%;
}

.display-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.5s ease-in-out, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transform: scale(1.05);
    opacity: 0;
}

.display-image.is-visible {
    transform: scale(1);
    opacity: 1;
}

/* --- Media Query for Desktop (The "Glass Card" Effect) --- */
@media (min-width: 992px) {
    .interactive-container-amazing {
        flex-direction: row;
        /* max-width: 1050px; */
        height: 600px;
        margin: 3em auto;
        border-radius: 28px;
        /* box-shadow: 0 25px 50px -12px rgba(27, 35, 49, 0.15); */

        /* background: rgba(255, 255, 255, 0.8); */
        /* Translucent background */
        /* backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px); */
    }

    .text-options-panel {
        flex: 45%;
        padding: 40px;
        background: none;
        /* Remove background to show the glass effect */
    }

    .options-list .label {
        font-size: 17px;
    }

    .image-panel {
        flex: 55%;
        margin: 0;
        /* border-radius: 0; */
        /* Remove radius to be flush with container */
        box-shadow: none;
        aspect-ratio: auto;
    }
}