:root {
    --primary: #D48C95;
    --accent: #B05364;
    --accent-hover: #8F3E4D;
    --text-main: #4A3B3E;
    --text-light: #7D6C70;
    --bg-overlay: rgba(255, 245, 246, 0.85);
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(176, 83, 100, 0.15);
    --radius: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #EAC6F0;
    /* Soft Pink Background from reference */
    background-image: none;
    /* Remove texture if any, for solid color */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.background-overlay {
    display: none;
    /* Remove overlay to show solid color */
}

#quiz-container {
    width: 90%;
    max-width: 400px;
    /* Reduced width as requested */
    background: transparent;
    /* Remove white box */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    position: relative;
    margin: 20px 0;
    border: none;
    transition: var(--transition);
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Inter', sans-serif;
    /* Modern font from reference */
    color: #000;
    /* Black text */
    margin-bottom: 25px;
    line-height: 1.3;
}

h1 {
    font-size: 1.6rem;
    text-align: center;
    font-weight: 800;
}

h2 {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    color: #000;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Logo */
.quiz-logo {
    display: block;
    max-width: 75px;
    /* Reduced by half from 150px */
    height: auto;
    margin: 0 auto 10px auto;
    /* Centered with bottom margin */
    /* mix-blend-mode: multiply; if white background to enhance blend */
}

/* Progress Bar */
.progress-container {
    width: 100%;
    background-color: #F3E5E7;
    height: 8px;
    border-radius: 10px;
    margin-bottom: 35px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: #C77080;
    /* Soft pink-red */
    width: 0%;
    transition: width 0.6s ease-in-out;
    border-radius: 10px;
}

/* Buttons & Inputs */
.btn-primary {
    display: block;
    width: 100%;
    max-width: 320px;
    /* Nice width limit */
    padding: 18px 25px;
    background: #6A1B9A;
    /* Purple matching landing page */
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 25px auto 0 auto;
    /* Center alignment */
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.3);
    text-align: center;
    animation: pulse-purple 2s infinite;
}

@keyframes pulse-purple {
    0% {
        box-shadow: 0 0 0 0 rgba(106, 27, 154, 0.7);
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(106, 27, 154, 0);
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.btn-primary:hover {
    background: #4A148C;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(106, 27, 154, 0.4);
}

.btn-primary:active {
    transform: translateY(1px);
}

/* New Animation for Focus */
@keyframes pulse-light {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(106, 27, 154, 0.3);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 8px 25px rgba(106, 27, 154, 0.5);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(106, 27, 154, 0.3);
    }
}

.btn-primary,
.btn-cta-animated {
    animation: pulse-light 2s infinite ease-in-out;
}

.option-card {
    background: rgba(255, 255, 255, 0.25);
    /* Glassy see-through purple tint */
    border: 1px solid #9C27B0;
    /* Purple border */
    border-radius: 10px;
    min-height: 48px;
    /* Changed from fixed height */
    height: auto;
    /* Allow growth */
    padding: 8px 15px;
    /* Added vertical padding */
    margin-bottom: 10px;
    /* Reduced gap */
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    color: #000;
    font-weight: 600;
    font-size: 0.75rem;
    /* Down from 0.85rem */
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.option-card.selected {
    background-color: rgba(156, 39, 176, 0.15);
    /* Slightly darker select */
    border-color: #7B1FA2;
    color: #000;
}

.option-card::before {
    display: none;
}

/* Pseudo-element for checkbox on ALL cards (mocking the style) */
.option-card::after {
    content: '';
    margin-left: auto;
    /* Push to right */
    width: 22px;
    height: 22px;
    border: 1.5px solid #9C27B0;
    border-radius: 6px;
    background: transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.option-card.selected::after {
    background-color: #7B1FA2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='16px' height='16px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

/* Starry Effect */
@keyframes twinkling {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkling 3s infinite ease-in-out;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.multi-select {
    justify-content: space-between;
}

.multi-select::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: all 0.2s;
}

.multi-select.selected::after {
    background-color: #A64D5C;
    border-color: #A64D5C;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='16px' height='16px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

.option-text {
    flex-grow: 1;
    font-size: 1.05rem;
}

.option-emoji {
    font-size: 1.5rem;
    margin-right: 15px;
}

/* Image Options */
.image-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.image-option-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.image-option-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.image-option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.image-option-card.selected {
    border-color: var(--accent);
    background-color: #FFF0F3;
}

/* Input Fields */
input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 1.1rem;
    margin-bottom: 20px;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

input[type="text"]:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(176, 83, 100, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.step-card {
    display: none;
    /* Hidden by default */
}

.step-card.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

/* Special Slides */
.alert-box {
    background: #FFF4E5;
    border-left: 5px solid #FF9800;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: left;
}

.alert-title {
    color: #E65100;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.result-card {
    text-align: center;
}

.result-graph {
    margin: 20px 0;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 15px;
}

.bar-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.bar-label {
    width: 30%;
    text-align: left;
    font-size: 0.9rem;
}

.bar-container {
    width: 70%;
    background: #eee;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--accent);
    width: 0;
    transition: width 1s ease-out;
}

.negative-box {
    background: #FFEBEB;
    border: 1px solid #FFCCD2;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

.positive-box {
    background: #E8F5E9;
    border: 1px solid #C8E6C9;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

/* Footer */
footer {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 600px) {
    #quiz-container {
        width: 100%;
        margin: 0;
        min-height: 100vh;
        border-radius: 0;
        padding: 25px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn-primary {
        padding: 15px 20px;
    }
}

.step-subtitle {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: -5px;
    margin-bottom: 20px;
    width: 100%;
}