* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #8B7EC8;
    --light-purple: #B5A8E8;
    --dark-purple: #6B5CAB;
    --accent-pink: #F5B4C6;
    --accent-coral: #FFB4A2;
    --shein-black: #222222;
    --shein-white: #FFFFFF;
    --gray-light: #F5F5F7;
    --gray-medium: #E8E8ED;
    --gray-dark: #666666;
    --text-primary: #1D1D1F;
    --text-secondary: #6E6E73;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--gray-light) 0%, #E8E4F3 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow-x: hidden;
}

/* Top Banner */
.top-banner {
    width: 100%;
    background: var(--shein-black);
    color: var(--shein-white);
    text-align: center;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Welcome Copy */
.welcome-copy {
    width: 100%;
    max-width: 480px;
    text-align: center;
    padding: 20px 25px;
    margin-top: 60px;
    margin-bottom: -10px;
}

.welcome-copy h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.welcome-copy p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.quiz-container {
    width: 100%;
    max-width: 480px;
    background: var(--shein-white);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 30px 25px;
    position: relative;
    min-height: 600px;
    overflow: hidden;
    margin: 0 20px 20px 20px;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--gray-medium);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-purple), var(--light-purple));
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 10%;
}

/* Progress Dots */
.progress-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-medium);
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-purple);
    width: 24px;
    border-radius: 4px;
}

/* Slides */
.slide {
    display: none;
    animation: fadeIn 0.5s ease;
    min-height: 400px;
}

.slide.active {
    display: block;
}

.slide.slide-out-left {
    animation: slideOutLeft 0.4s ease;
}

.slide.slide-out-right {
    animation: slideOutRight 0.4s ease;
}

.slide.slide-in-left {
    animation: slideInLeft 0.4s ease;
}

.slide.slide-in-right {
    animation: slideInRight 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-content {
    text-align: center;
    position: relative;
}

/* Decorative Shapes */
.decorative-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.shape-1 {
    width: 100px;
    height: 100px;
    background: var(--primary-purple);
    top: -20px;
    right: -20px;
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: var(--accent-pink);
    bottom: 50px;
    left: -10px;
}

.shape-3 {
    width: 80px;
    height: 80px;
    background: var(--accent-coral);
    top: 150px;
    right: 10px;
}

.shape-4 {
    width: 120px;
    height: 120px;
    background: var(--light-purple);
    top: -30px;
    left: -30px;
}

.shape-5 {
    width: 90px;
    height: 90px;
    background: var(--primary-purple);
    top: 20px;
    left: 20px;
    animation: float 3s ease-in-out infinite;
}

.shape-6 {
    width: 70px;
    height: 70px;
    background: var(--accent-pink);
    bottom: 60px;
    right: 30px;
    animation: float 4s ease-in-out infinite;
}

.shape-7 {
    width: 50px;
    height: 50px;
    background: var(--accent-coral);
    top: 100px;
    left: 10px;
    animation: float 3.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.emoji-icon {
    font-size: 64px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.emoji-icon.large {
    font-size: 80px;
}

.slide-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.slide-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* Welcome Screen */
.welcome-image {
    margin: 30px 0;
}

.gift-card-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 48px;
}

.sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle:nth-child(2) {
    animation-delay: 0.5s;
}

.sparkle:nth-child(3) {
    animation-delay: 1s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.option-card {
    position: relative;
    cursor: pointer;
}

.option-card input {
    position: absolute;
    opacity: 0;
}

.option-content {
    background: var(--gray-light);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-height: 100px;
    justify-content: center;
}

.option-card.large .option-content {
    min-height: 110px;
}

.option-icon {
    font-size: 32px;
}

.option-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.option-card input:checked + .option-content {
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    border-color: var(--dark-purple);
    color: white;
    transform: scale(1.05);
}

.option-card input:checked + .option-content .option-text {
    color: white;
}

.option-card:hover .option-content {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 126, 200, 0.2);
}

/* Options List */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-button {
    position: relative;
    cursor: pointer;
}

.option-button input {
    position: absolute;
    opacity: 0;
}

.button-content {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--gray-light);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.button-icon {
    font-size: 24px;
}

.option-button input:checked + .button-content {
    background: linear-gradient(90deg, var(--primary-purple), var(--light-purple));
    border-color: var(--dark-purple);
    color: white;
    transform: translateX(5px);
}

.option-button:hover .button-content {
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(139, 126, 200, 0.2);
}

/* Star Rating */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
    margin: 30px 0 20px;
}

.star-rating input {
    display: none;
}

.star-rating .star {
    font-size: 48px;
    color: var(--gray-medium);
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating .star:hover,
.star-rating .star:hover ~ .star,
.star-rating input:checked ~ .star {
    color: #FFD700;
    transform: scale(1.1);
}

.rating-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* Scale Rating */
.scale-rating {
    margin: 30px 0;
}

.scale-numbers {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 15px;
}

.scale-item {
    flex: 1;
    cursor: pointer;
}

.scale-item input {
    display: none;
}

.scale-number {
    display: block;
    background: var(--gray-light);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 12px 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    transition: all 0.3s ease;
}

.scale-item input:checked + .scale-number {
    background: var(--primary-purple);
    border-color: var(--dark-purple);
    color: white;
    transform: scale(1.1);
}

.scale-item:hover .scale-number {
    transform: scale(1.05);
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Email Form */
.email-form {
    max-width: 400px;
    margin: 0 auto;
}

.email-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--gray-medium);
    border-radius: 16px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.email-input:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 4px rgba(139, 126, 200, 0.1);
}

.form-note {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.checkbox-option {
    margin-top: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    text-align: left;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-purple);
    margin-top: 2px;
}

.checkbox-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Final Slide */
.final-slide {
    padding: 20px 0;
}

.gift-card-offer {
    margin: 30px 0;
}

.offer-card {
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    border-radius: 24px;
    padding: 30px 25px;
    box-shadow: 0 10px 40px rgba(139, 126, 200, 0.3);
    position: relative;
    overflow: hidden;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.offer-badge {
    display: inline-block;
    background: var(--shein-black);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offer-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.offer-amount {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin: 15px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.offer-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.cta-button {
    display: block;
    width: 100%;
    background: var(--shein-black);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

.social-proof {
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 40px;
}

.nav-button {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.prev-button {
    background: var(--gray-light);
    color: var(--text-primary);
}

.prev-button:hover {
    background: var(--gray-medium);
    transform: translateX(-3px);
}

.next-button {
    background: linear-gradient(90deg, var(--primary-purple), var(--light-purple));
    color: white;
}

.next-button:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(139, 126, 200, 0.3);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-button:disabled:hover {
    transform: none;
}

/* Responsive */
@media (max-width: 480px) {
    .top-banner {
        font-size: 14px;
        padding: 10px 20px;
    }

    .welcome-copy {
        padding: 15px 20px;
        margin-top: 50px;
    }

    .welcome-copy h2 {
        font-size: 20px;
    }

    .welcome-copy p {
        font-size: 14px;
    }

    .quiz-container {
        border-radius: 20px;
        padding: 25px 20px;
        margin: 0 10px 10px 10px;
    }

    .slide-title {
        font-size: 24px;
    }

    .slide-description {
        font-size: 14px;
    }

    .emoji-icon {
        font-size: 52px;
    }

    .options-grid {
        gap: 10px;
    }

    .option-content {
        padding: 15px 10px;
        min-height: 90px;
    }

    .option-icon {
        font-size: 28px;
    }

    .option-text {
        font-size: 13px;
    }

    .star-rating .star {
        font-size: 40px;
    }

    .scale-numbers {
        gap: 4px;
    }

    .scale-number {
        padding: 10px 6px;
        font-size: 14px;
    }

    .offer-amount {
        font-size: 40px;
    }

    .offer-title {
        font-size: 20px;
    }
}

@media (max-width: 360px) {
    .emoji-icon {
        font-size: 48px;
    }

    .slide-title {
        font-size: 22px;
    }

    .star-rating .star {
        font-size: 36px;
        gap: 6px;
    }

    .scale-number {
        font-size: 12px;
        padding: 8px 4px;
    }
}

