/* Premium Quiz Design - Integrated with Global Styles */

/* Quiz Section Container */
.quiz-section {
    padding: var(--spacing-2xl) 0;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(233, 190, 121, 0.05) 50%, rgba(255, 255, 255, 0) 100%);
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6),
        inset 0 15px 15px -15px rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(233, 190, 121, 0.2);
    /* Subtle gold border */
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 20px 20px -20px rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

/* Typography Overrides */
.fraunces-title {
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-weight: 600;
}

.quiz-description {
    font-family: var(--font-body);
    color: var(--color-gray-medium);
    line-height: 1.8;
}

/* Personality Grid */
.personality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.personality-card {
    padding: var(--spacing-lg);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.personality-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(233, 190, 121, 0.3);
}

.personality-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    font-size: 20px;
    transition: transform 0.3s ease;
}

.personality-card:hover .personality-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Premium Button Styling */
.btn-premium {
    padding: 16px 40px;
    font-size: 15px;
    font-family: var(--font-button);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: var(--color-dark);
    color: var(--color-gold);
    border: 1px solid var(--color-dark);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.btn-premium:hover {
    background: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 190, 121, 0.3);
}

/* Quiz Options - Premium Cards */
.quiz-option-label {
    display: flex;
    align-items: center;
    padding: 22px 30px;
    background: var(--color-white);
    border: 1px solid #EAEAEA;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 16px;
    color: var(--color-gray-dark);
    margin-bottom: 16px;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.quiz-option-label:hover {
    border-color: var(--color-gold);
    background: #FFFCF5;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(233, 190, 121, 0.15);
}

.quiz-option-label.selected {
    border-color: var(--color-gold);
    background: linear-gradient(90deg, #FFFCF5 0%, #FFF5E0 100%);
    color: var(--color-dark);
    font-weight: 600;
    box-shadow: 0 0 0 1px var(--color-gold),
        0 10px 25px rgba(233, 190, 121, 0.2),
        inset 0 0 15px rgba(233, 190, 121, 0.1);
    transform: translateY(-2px);
    animation: selectionPulse 0.4s ease-out;
}

@keyframes selectionPulse {
    0% {
        transform: translateY(-2px) scale(1);
    }

    50% {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 0 0 4px rgba(233, 190, 121, 0.2);
    }

    100% {
        transform: translateY(-2px) scale(1);
    }
}

.quiz-option-label input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    margin-right: 20px;
    width: 22px;
    height: 22px;
    border: 2px solid #D1D1D1;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.quiz-option-label input[type="radio"]:checked {
    border-color: var(--color-gold);
    background-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(233, 190, 121, 0.2);
}

.quiz-option-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

/* Quiz Progress */
.quiz-progress-track {
    background: #F5F5F5;
    border-radius: 10px;
    height: 8px;
    /* Slightly thicker */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.quiz-progress-fill {
    background: linear-gradient(90deg, #E9BE79 0%, #F4D091 50%, #E9BE79 100%);
    background-size: 200% 100%;
    box-shadow: 0 0 15px rgba(233, 190, 121, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quiz-progress-container {
    margin-bottom: 35px;
    width: 100%;
}

.quiz-heading-serif {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    margin-bottom: 25px;
    color: #000;
}

.question-text-left,
#question-text.quiz-heading {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.3;
    color: #111;
}

.quiz-options-container,
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

.quiz-progress-track {
    background: #F5F5F5;
    border-radius: 10px;
    height: 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    width: 100%;
}

.result-title {
    font-family: 'Fraunces', serif;
    font-size: 32px;
    margin-bottom: 15px;
    color: #000;
}

.result-desc {
    margin-bottom: 30px;
}

.quiz-subtitle {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 10px;
}

.quiz-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0) 30%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0) 70%,
            transparent 100%);
    transform: translateX(-100%);
    animation: shimmer 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.glide-in {
    animation: fadeInUp 0.7s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Energy Specific Glows */
.energy-glow-red {
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.3));
}

.energy-glow-blue {
    filter: drop-shadow(0 0 20px rgba(0, 100, 255, 0.3));
}

.energy-glow-yellow {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
}

.energy-glow-green {
    filter: drop-shadow(0 0 20px rgba(0, 255, 100, 0.3));
}

.quiz-img {
    transition: all 1s ease-in-out;
}

.btn-outline-dark {
    background: transparent;
    border: 1px solid #333;
    color: #333;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline-dark:hover {
    background: #333;
    color: #fff;
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}



/* Quiz Note Box */
.quiz-note-box {
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
    border-left: 3px solid var(--color-gold);
    padding: 25px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* =========================================
   User Defined Structure Styles
   ========================================= */

.quiz-wrapper.user-structure {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    overflow: visible;
    min-height: 550px;
    height: auto;
    margin-bottom: 50px;
}

/* Also ensure base quiz-wrapper has flex if not using user-structure */
.quiz-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

/* Left Panel: Content Card */
.quiz-content-card {
    flex: 1 1 55%;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #fdfbfb;
    background: linear-gradient(135deg, #fdfbfb 0%, #f4e8f0 100%);
    min-height: 100%;
    height: auto;
}

.quiz-heading {
    font-family: 'Fraunces', serif;
    font-size: 36px;
    color: #000;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.quiz-description {
    font-size: 16px;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 400px;
}

.quiz-questions-container-intro {
    max-width: 400px;
}

.quiz-input-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.question-label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
    font-size: 14px;
}

.quiz-input {
    width: 100%;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    font-style: italic;
}

.btn-quiz-action {
    background: #000;
    color: #e6c07b;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
    margin-top: 25px;
}

.btn-quiz-action:hover {
    transform: translateY(-2px);
    background: #222;
    color: #e6c07b;
}

/* Right Panel: Visual Card */
.quiz-visual-card {
    flex: 1 1 45%;
    position: relative;
    background: #000;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 40px;
    overflow: hidden;
}

.quiz-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.5s;
}

.quiz-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 60%, #000 100%);
    pointer-events: none;
    z-index: 1;
}

.btn-image-overlay {
    position: relative;
    z-index: 2;
    background: #e6c07b;
    color: #000;
    border: none;
    padding: 15px 0;
    width: 100%;
    max-width: 250px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: background 0.3s;
}

.btn-image-overlay:hover {
    background: #d4af6a;
}

/* Quiz Product Link Styling */
.quiz-product-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #eee;
    /* Fallback border */
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.quiz-product-link:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background: #fafafa;
}

.quiz-product-link .link-arrow {
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.quiz-product-link:hover .link-arrow {
    transform: translateX(3px);
}

@media (max-width: 991px) {

    .quiz-content-card,
    .quiz-visual-card {
        flex: 1 1 100%;
    }

    .quiz-visual-card {
        min-height: 350px;
    }
}

/* =========================================
   New Split Layout & Exact Reference Match
   ========================================= */

/* Split Layout Container - Matches the soft gradient card */
/* =========================================
   New Split Layout & Exact Reference Match
   ========================================= */

/* Split Layout Container */
.quiz-split-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    background: linear-gradient(135deg, #f5e6fa 0%, #fefbf4 100%);
    border-radius: 30px;
    position: relative;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
}

@media (max-width: 991px) {
    .quiz-split-layout {
        display: flex;
        /* Stack flex */
        flex-direction: column-reverse;
        /* Image on top or bottom? User structure puts image second. Let's stack standard. */
        flex-direction: column;
        background: #fdfbfb;
        padding-bottom: 0;
        overflow: hidden;
    }

    .quiz-left-panel {
        padding: 60px 30px !important;
        min-height: auto !important;
        text-align: center;
        justify-content: flex-start !important;
    }

    .quiz-right-panel {
        width: 100%;
        margin: 0 !important;
        min-height: 300px !important;
        border-radius: 0 0 30px 30px;
        /* Round bottom only if at bottom */
        transform: none !important;
    }

    .quiz-content-card {
        padding: 60px 30px !important;
        justify-content: flex-start !important;
    }

    .quiz-visual-card {
        min-height: 300px !important;
    }

    .quiz-heading {
        font-size: 28px !important;
    }

    .quiz-question-box h3 {
        font-size: 22px !important;
    }
}

.quiz-left-panel {
    padding: 60px;
    min-height: 500px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Intro Content */
.quiz-intro-content {
    max-width: 450px;
    margin: 0 auto 0 0;
    /* Align left */
}

.quiz-main-title {
    font-size: 38px;
    margin-bottom: 15px;
    color: #000;
    font-weight: 700;
    line-height: 1.2;
}

.quiz-intro-desc {
    font-size: 16px;
    color: #555;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* Input Simulation (White Box) */
.quiz-input-simulation {
    background: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.quiz-input-simulation:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.quiz-input-simulation label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
}

.fake-input {
    font-size: 14px;
    color: #aaa;
    font-style: italic;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    font-family: var(--font-body);
}

/* Start Button - Gold Design (Match Second Image) */
.btn-start-quiz {
    background: #e6c07b !important;
    /* Gold */
    color: #2c2c2c !important;
    /* Dark Text */
    border: none !important;
    padding: 14px 35px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    /* "Find My Crystal" not CAPS */
    border-radius: 8px !important;
    /* Soft round, not pill? Image 1 looks like standard rounded rect */
    font-size: 15px;
    box-shadow: 0 5px 15px rgba(230, 192, 123, 0.3) !important;
    width: auto;
    display: inline-block;
}

.btn-start-quiz:hover {
    background: #d4af6a !important;
    transform: translateY(-2px);
}

/* Right Panel - Dark Card */
.quiz-right-panel {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 550px;
    background: #050505;
    /* Deep black */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    margin: -40px 40px 40px 0;
    /* Overlap right/top */
    transform: scale(1.02);
}

@media (max-width: 991px) {
    .quiz-right-panel {
        margin: 20px;
        min-height: 450px;
        transform: none;
    }
}

.quiz-image-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-image: url('../assets/images/shop3.jpg');
    opacity: 0.9;
    transition: background-image 0.5s ease;
}

.quiz-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.9) 100%);
    pointer-events: none;
}

/* Add to Cart Button inside the Right Panel */
.quiz-product-action {
    position: relative;
    z-index: 5;
    padding: 30px;
    width: 100%;
    text-align: center;
}

.btn-gold {
    background: #e6c07b;
    color: #2c2c2c;
    font-weight: 600;
    padding: 14px 0;
    width: 100%;
    border-radius: 8px;
    border: none;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: #d4af6a;
}