/* Flow/wwwroot/css/site.css */

/* CSS Variables - These will be overridden by inline styles from the view */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --text-color: #000000;
    --background-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --neutral-bg: #f5f5f7;
    --neutral-dark: #1d1d1f;
    --neutral-light: #ffffff;
    --error-color: #ff3b30;
    --success-color: #34c759;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
}

.disclaimer {
    font-size: 10px;
    color: #808080;
    text-align: center;
    margin-top: 10px;
}

/* Main container */
.survey-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    position: relative;
    overflow: hidden;
}

/* Brand background images */
.brand-background {
    position: fixed;
    inset: 0;
    z-index: -4;
    overflow: hidden;
}

.brand-background-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: blur(2px);
}

.desktop-image {
    display: block;
}

.mobile-image {
    display: none;
}

@media (max-width: 768px) {
    .desktop-image {
        display: none;
    }

    .mobile-image {
        display: block;
    }

    .survey-container {
        min-height: auto;
    }
}

/* Background effects */
.background-gradient {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(ellipse at bottom left, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    z-index: -3;
}

.gradient-orbs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -2;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(0, 0, 0, 0.05);
    bottom: -150px;
    left: -150px;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Content card */
.content-card {
    max-width: 600px;
    width: 100%;
    background: var(--neutral-light);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 30px;
    padding: 60px 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12), 0 10px 25px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

/* Enhanced card style when brand images are present */
.has-brand-background .content-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2), 0 15px 35px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

/* Progress bar */
.progress-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Step container */
.step-container {
    display: none;
    animation: stepEntry 0.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

    .step-container.active {
        display: block;
    }

@keyframes stepEntry {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reward image */
.reward-image-wrapper {
    position: relative;
    margin: 0 auto 40px;
    max-width: 200px;
    height: 180px;
    margin-bottom: 64px;
}

.reward-image-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
    opacity: 0.2;
    filter: blur(40px);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.reward-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.15));
    position: relative;
    z-index: 1;
}

/* Typography */
.question-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    color: var(--neutral-dark);
    margin-top: 5rem;
}

.question-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: black;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    display: block;
    text-align: center;
}

/* Answer buttons */
.answers-grid {
    display: grid;
    gap: 16px;
    margin-top: 32px;
}

.answer-button {
    position: relative;
    padding: 20px 32px;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border: none;
    border-radius: 16px;
    background: var(--background-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
}

    .answer-button:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
        filter: brightness(1.1);
    }

    .answer-button:active {
        transform: translateY(-1px) scale(0.98);
        transition-duration: 0.1s;
    }

/* Gender buttons */
.gender-options {
    display: grid;
    gap: 16px;
    margin-top: 32px;
}

.gender-button {
    position: relative;
    padding: 20px 32px;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border: none;
    border-radius: 16px;
    background: var(--background-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
}

    .gender-button:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
        filter: brightness(1.1);
    }

    .gender-button:active {
        transform: translateY(-1px) scale(0.98);
        transition-duration: 0.1s;
    }

    .gender-button.selected {
        background: var(--primary-color);
        color: white;
    }

    /* Light text variant for gender buttons */
    .gender-button.light-text {
        color: var(--neutral-dark);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.05) inset;
    }

        .gender-button.light-text:hover {
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05) inset;
        }

/* Date of Birth Selectors */
.dob-selectors {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 12px;
    margin-bottom: 16px;
}

.form-select {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.125rem;
    font-weight: 500;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
    color: var(--neutral-dark);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 44px;
}

    .form-select:focus {
        outline: none;
        border-color: var(--primary-color);
        background-color: white;
        box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
    }

    .form-select.error {
        border-color: var(--error-color);
    }

/* Mobile optimization for date selectors */
@media (max-width: 640px) {
    .dob-selectors {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #86868b;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.125rem;
    font-weight: 500;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
    color: var(--neutral-dark);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

    .form-input:focus {
        outline: none;
        border-color: var(--primary-color);
        background: white;
        box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
    }

    .form-input.error {
        border-color: var(--error-color);
    }

.error-message {
    font-size: 0.875rem;
    color: var(--error-color);
    margin-top: 8px;
    display: none;
}

    .error-message.show {
        display: block;
        animation: shake 0.5s ease-in-out;
    }

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Continue button */
.continue-button {
    width: 100%;
    padding: 18px 32px;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    border: none;
    border-radius: 16px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    margin-top: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

    .continue-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
        filter: brightness(1.05);
    }

    .continue-button:active {
        transform: translateY(0);
    }

    .continue-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

/* Success state */
.success-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    animation: successIconPop 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes successIconPop {
    0% {
        transform: scale(0) rotate(-180deg);
    }

    50% {
        transform: scale(1.2) rotate(10deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

.success-checkmark {
    width: 60px;
    height: 60px;
    stroke: white;
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: checkmarkDraw 0.6s 0.3s ease-out forwards;
}

@keyframes checkmarkDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.thank-you-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    color: var(--neutral-dark);
    text-align: center;
}

.thank-you-message {
    font-size: 1.25rem;
    font-weight: 500;
    color: #86868b;
    text-align: center;
    line-height: 1.5;
}

/* Step counter */
.step-counter {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #86868b;
    display: none;
}

/* Light text variant styles */
.answer-button.light-text {
    color: var(--neutral-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.05) inset;
}

    .answer-button.light-text:hover {
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05) inset;
    }

/* Responsive */
@media (max-width: 640px) {
    .content-card {
        padding: 40px 24px;
        border-radius: 24px;
        min-height: 90vh;
    }

    .reward-image-wrapper {
        max-width: 200px;
        height: 140px;
    }

    .gender-options {
        grid-template-columns: 1fr;
    }

    .step-counter {
        top: 16px;
        right: 16px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Upsell Step - Professional with Pizzazz */
.rewards-unlocked-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.rewards-unlocked-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.rewards-unlocked-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    font-weight: 400;
    opacity: 0;
    animation: fade-in 0.6s ease 0.3s forwards;
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

/* Offers Container */
.upsell-offers-container {
    margin: 0 auto 2rem;
    max-width: 420px;
    padding: 0 1rem;
}

.loading-spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: #666;
}

    .loading-spinner-container .loading-spinner {
        width: 48px;
        height: 48px;
        border: 3px solid #f0f0f0;
        border-top-color: #4CAF50;
        border-right-color: #FF6347;
        border-bottom-color: #FFD700;
        border-left-color: #4169E1;
        border-radius: 50%;
        animation: rainbow-spin 1s linear infinite;
        margin-bottom: 1.5rem;
    }

@keyframes rainbow-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Offers Grid - Vertical Stack */
.offers-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
    width: 100%;
}

/* FIXED: Reward Offer Cards */
.reward-offer-card {
    position: relative;
    display: block;
    width: 100%;
    max-width: 380px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: white;
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    animation: sexy-slide-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

    /* Keep the staggered animations */
    .reward-offer-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .reward-offer-card:nth-child(2) {
        animation-delay: 0.25s;
    }

    .reward-offer-card:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes sexy-slide-in {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* FIXED: Hover state - no more disappearing! */
.reward-offer-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(74, 144, 226, 0.3);
}

/* Remove the problematic pseudo-element and animations */
.reward-offer-card::before {
    display: none;
}

.reward-offer-image {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    padding-bottom: 15px;
}

/* FIXED: CTA Badge - Positioned properly at bottom */
.click-me-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #FF1744 0%, #F50057 100%);
    color: white;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    text-align: center;
    border-radius: 0 0 14px 14px;
}

/* Simple hover effect for the badge */
.reward-offer-card:hover .click-me-badge {
    background: linear-gradient(135deg, #F50057 0%, #FF1744 100%);
    padding: 14px 20px;
}

/* Skip Button */
.skip-button {
    display: inline-block;
    margin: 2.5rem auto 0;
    padding: 0;
    background: none;
    border: none;
    color: #999;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
    opacity: 0;
    animation: fade-in 0.6s ease 1s forwards;
}

    .skip-button:hover {
        color: #666;
        text-underline-offset: 5px;
    }

/* Professional loading text */
.loading-spinner-container p {
    font-size: 1rem;
    color: #666;
    margin: 0;
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .rewards-unlocked-title {
        font-size: 1.5rem;
    }

    .rewards-unlocked-subtitle {
        font-size: 1rem;
    }

    .reward-offer-card {
        max-width: 350px;
    }

    .click-me-badge {
        font-size: 0.85rem;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .rewards-unlocked-title {
        font-size: 1.375rem;
    }

    .reward-offer-card {
        max-width: 320px;
        border-radius: 14px;
    }

    .click-me-badge {
        font-size: 0.8rem;
        padding: 10px 14px;
    }

    .upsell-offers-container {
        padding: 0 0.75rem;
    }
}
/* Upsell Container Base */
.upsell-container {
    text-align: center;
    padding: 2rem 1rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Upsell Headers */
.upsell-title {
    font-size: 2.25rem;
    font-weight: 800;
    /*     background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
*/
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 25%, var(--primary-color) 50%, #96CEB4 75%, #FECA57 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    margin: 0 0 1rem 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.upsell-subtitle {
    font-size: 1.125rem;
    color: #666;
    margin: 0 0 2.5rem 0;
    font-weight: 500;
    opacity: 0;
    animation: fade-slide-up 0.8s ease 0.3s forwards;
}

@keyframes fade-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Single Offer Container */
.single-offer-container {
    width: 100%;
    max-width: 380px;
    margin: 0 auto 2rem;
}


/* Upsell Offer Card */
.upsell-offer-card {
    position: relative;
    width: 100%;
    margin: 0 auto;
    border-radius: 20px;
    overflow: visible;
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    animation: flashy-entrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 60px; /* Increased margin to accommodate the lower badge */
}


    .upsell-offer-card.stack-card {
        animation: stack-entrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

        .upsell-offer-card.stack-card:nth-child(1) {
            animation-delay: 0.1s;
        }

        .upsell-offer-card.stack-card:nth-child(2) {
            animation-delay: 0.25s;
        }

        .upsell-offer-card.stack-card:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes flashy-entrance {
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotateY(360deg);
    }
}

@keyframes stack-entrance {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.upsell-offer-card:hover {
    transform: translateY(-10px) scale(1.05);
}

.upsell-offer-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1, #96CEB4, #FECA57, #FF6B6B);
    background-size: 300% 300%;
    border-radius: 20px;
    animation: rainbow-border 3s linear infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upsell-offer-card:hover::before {
    opacity: 1;
}

@keyframes rainbow-border {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* Offer Image */
.upsell-offer-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    background: white;
}

/* Tap to Claim Badge */
.tap-to-claim {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FF0844 0%, #FFB700 100%);
    color: white;
    padding: 16px 32px;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(255, 8, 68, 0.4);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(255, 8, 68, 0.4);
        transform: translateX(-50%) scale(1);
    }

    50% {
        box-shadow: 0 8px 40px rgba(255, 8, 68, 0.6), 0 0 60px rgba(255, 8, 68, 0.3);
        transform: translateX(-50%) scale(1.05);
    }
}

.tap-text {
    position: relative;
    z-index: 2;
    display: inline-block;
    animation: text-shine 3s linear infinite;
}

@keyframes text-shine {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }

    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 255, 255, 0.8);
    }

    100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
}

.pulse-ring {
    position: absolute;
    inset: -20px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.upsell-offer-card:hover .tap-to-claim {
    background: linear-gradient(135deg, #FFB700 0%, #FF0844 100%);
    transform: translateX(-50%) translateY(-5px) scale(1.1);
    box-shadow: 0 12px 48px rgba(255, 8, 68, 0.5), 0 0 80px rgba(255, 183, 0, 0.3);
}

/* Skip Button - Enhanced */
.skip-button {
    margin-top: auto;
    padding: 12px 24px;
    background: none;
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: #999;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 0;
    animation: fade-slide-up 0.8s ease 1s forwards;
}

    .skip-button:hover {
        border-color: rgba(0, 0, 0, 0.2);
        color: #666;
        background: rgba(0, 0, 0, 0.02);
        transform: translateY(-2px);
    }

/* Loading Spinner - Colorful */
.loading-spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: #666;
}

.loading-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid #f0f0f0;
    border-radius: 50%;
    position: relative;
    animation: spinner-rotate 1s linear infinite;
    margin-bottom: 1.5rem;
}

    .loading-spinner::before {
        content: '';
        position: absolute;
        inset: -4px;
        border: 4px solid transparent;
        border-top-color: #FF0844;
        border-right-color: #FFB700;
        border-radius: 50%;
        animation: spinner-colors 2s linear infinite;
    }

@keyframes spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinner-colors {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(720deg);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .upsell-title {
        font-size: 1.875rem;
    }

    .upsell-subtitle {
        font-size: 1rem;
    }

    .single-offer-container,
    .stack-offers-container {
        max-width: 340px;
    }

    .tap-to-claim {
        font-size: 1rem;
        padding: 14px 28px;
    }
}

@media (max-width: 480px) {
    .upsell-title {
        font-size: 1.625rem;
    }

    .single-offer-container,
    .stack-offers-container {
        max-width: 300px;
    }

    .tap-to-claim {
        font-size: 0.95rem;
        padding: 12px 24px;
        bottom: -30px;
        width: 75%;
    }

    .upsell-offer-card {
        border-radius: 16px;
    }

    .stack-offers-container {
        gap: 1.25rem;
    }
}
/* Fulfillment Page Styles */
.fulfillment-container {
    padding: 0;
    max-width: 100%;
    position: relative;
}

/* Animation container */
.fulfillment-animation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

    .fulfillment-animation-container.hide {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
        pointer-events: none;
    }

/* Reward badge with progress ring */
.reward-badge {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 2rem;
}

.reward-badge-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    z-index: 2;
}

.success-ring {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
}

.circular-progress {
    width: 140px;
    height: 140px;
}

.circle-bg {
    fill: none;
    stroke: rgba(0, 0, 0, 0.05);
    stroke-width: 2;
}

.circle {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes progress {
    to {
        stroke-dashoffset: 0;
    }
}

.checkmark-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(90deg);
    opacity: 0;
    animation: checkmarkFadeIn 0.3s 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes checkmarkFadeIn {
    to {
        opacity: 1;
    }
}

.checkmark {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: checkmarkDraw 0.4s 2.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes checkmarkDraw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Analyzing text - Apple style */
.analyzing-text {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    animation: textFadeIn 0.4s 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes textFadeIn {
    to {
        opacity: 1;
    }
}

/* Main content */
.fulfillment-content {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

    .fulfillment-content.show {
        opacity: 1 !important;
    }

/* Fulfillment header with reward image */
.fulfillment-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.fulfillment-reward-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.fulfillment-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.02em;
    color: var(--neutral-dark);
}

.recommendations-container {
    margin: 0;
    padding: 0;
}

/* Card design */
.recommendation-card {
    display: block;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
    background: white;
}

    .recommendation-card:last-child {
        border-bottom: none;
    }

    .recommendation-card:hover {
        background: rgba(0, 0, 0, 0.01);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }

    .recommendation-card:first-child {
        border-top: 2px solid #34C759;
    }

    .recommendation-card:nth-child(2) {
        border-top: 2px solid #007AFF;
    }

    .recommendation-card:nth-child(3) {
        border-top: 2px solid #FF9500;
    }

/* Header with logo and title */
.recommendation-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.recommendation-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
    background: #f5f5f7;
    padding: 8px;
    flex-shrink: 0;
}

.recommendation-title-section {
    flex: 1;
}

.recommendation-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.recommendation-trust {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
}

.recommendation-stars {
    color: #FFD60A;
    letter-spacing: 1px;
}

.recommendation-legitimacy {
    color: #86868b;
}

/* Speed to $75 highlight */
.speed-to-75 {
    position: absolute;
    right: 2rem;
    top: 1.5rem;
    text-align: center;
    background: #f5f5f7;
    color: var(--neutral-dark);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.speed-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #86868b;
    display: block;
}

.speed-time {
    font-size: 1rem;
    font-weight: 600;
    display: block;
    color: #34C759;
}

/* Key metrics grid */
.recommendation-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.6875rem;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--neutral-dark);
    letter-spacing: -0.01em;
}

    .metric-value.highlight {
        color: #34C759;
    }

/* Sales pitch */
.recommendation-pitch {
    font-size: 0.875rem;
    color: #3a3a3c;
    line-height: 1.5;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

/* Features and disqualification */
.recommendation-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.recommendation-features {
    flex: 1;
}

.features-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.feature-tag {
    font-size: 0.6875rem;
    background: #f5f5f7;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    color: #6e6e73;
    font-weight: 500;
}

.disqualification-info {
    font-size: 0.8125rem;
    color: #333;
    text-align: left;
    line-height: 1.4;
}

/* Get Started CTA */
.get-started-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #007AFF;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.recommendation-card:hover .get-started-cta {
    transform: translateX(3px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .recommendations-container {
        margin: 0 -24px -24px;
    }

    .recommendation-card {
        padding: 1.25rem;
    }

    .fulfillment-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .speed-to-75 {
        position: static;
        margin-bottom: 1rem;
        display: inline-block;
    }


    .metric:nth-child(2) {
        grid-column: span 2;
    }

    .recommendation-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .disqualification-info {
        text-align: left;
        max-width: 100%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Recommendation Step Styles */
.recommendation-container {
    text-align: center;
    padding: 0rem 0rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



.recommendation-content {
    width: 100%;
    max-width: 600px;
    min-height: 300px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-container {
    width: 100%;
    min-height: 250px;
    background: #f5f5f7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    /* Loading state for ad container */
    .ad-container:empty::before {
        content: "Loading recommendations...";
        color: #86868b;
        font-size: 1rem;
        font-weight: 500;
    }

    .ad-container:empty::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 32px;
        height: 32px;
        margin: -16px 0 0 -16px;
        border: 3px solid #e0e0e0;
        border-top-color: var(--primary-color);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

@media (max-width: 768px) {
    .recommendation-title {
        font-size: 1.75rem;
    }

    .recommendation-content {
        padding: 0rem;
    }
}
/* Stack Upsell - Either/Or Layout - Updated for mobile side-by-side */
.stack-offers-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 1rem;
}

/* Either/Or Divider */
.offer-divider {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 20;
    border: 2px solid #f0f0f0;
}

/* Side-by-side images container */
.stack-offers-images-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    width: 100%;
    max-width: 700px;
    margin: 0 auto 3rem;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 1rem;
}

/* Offer images styling */
.cash-offer-image-wrapper {
    flex: 1;
    max-width: 320px;
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    animation: image-slide-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .cash-offer-image-wrapper:nth-child(1) {
        animation-delay: 0.1s;
    }

    .cash-offer-image-wrapper:nth-child(2) {
        animation-delay: 0.25s;
    }

@keyframes image-slide-in {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cash-offer-image-wrapper:hover {
    transform: translateY(-8px) scale(1.03);
}

.cash-offer-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: block;
}

/* Either/Or Divider */
.offer-divider {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border: 2px solid #f0f0f0;
    pointer-events: none;
}

/* Cash offer button enhancements */
.cash-offer-button {
    position: relative;
    overflow: visible;
}

    .cash-offer-button .offer-badge {
        position: absolute;
        top: -8px;
        right: -8px;
        background: linear-gradient(135deg, #34C759, #30D158);
        color: white;
        font-size: 0.75rem;
        font-weight: 700;
        padding: 4px 12px;
        border-radius: 20px;
        box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

/* Skip button styled as disabled answer button */
.skip-answer-button {
    opacity: 0.6;
    background: rgba(0, 0, 0, 0.03);
    cursor: pointer;
}

    .skip-answer-button:hover {
        opacity: 0.8;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    }

/* Mobile responsive */
@media (max-width: 768px) {
    .stack-offers-images-container {
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .cash-offer-image-wrapper {
        max-width: 280px;
    }

    .offer-divider {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .stack-offers-images-container {
        gap: 0.75rem;
        padding: 0 0.5rem;
    }

    .cash-offer-image {
        border-radius: 12px;
    }

    .offer-divider {
        font-size: 0.625rem;
        padding: 0.375rem 0.5rem;
    }
}

.upsell-container .answers-grid {
    width: 100%;
}

.upsell-container .answer-button {
    text-align: center;
}

/* Enhanced Step 1 with Brand Background Showcase */

/* Hero background for Step 1 */
#step-1 {
    position: relative;
    overflow: visible;
}

    #step-1 .brand-hero {
        position: absolute;
        top: -60px;
        left: -40px;
        right: -40px;
        height: 350px;
        overflow: hidden;
        border-radius: 30px 30px 0 0;
        z-index: -1;
    }

    #step-1 .brand-hero-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Gradient overlay for smooth transition */
    #step-1 .brand-hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 30%, rgba(255, 255, 255, 0.7) 60%, rgba(255, 255, 255, 0.9) 80%, #ffffff 100%);
        pointer-events: none;
    }

    /* Adjust reward wrapper positioning */
    #step-1 .reward-image-wrapper {
        position: relative;
        margin-bottom: 32px;
        z-index: 1;
    }

    /* Enhanced reward image presentation */
    #step-1 .reward-image {
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    }




/* Mobile responsive */
@media (max-width: 768px) {
    #step-1 .brand-hero {
        top: -40px;
        left: -24px;
        right: -24px;
        border-radius: 24px 24px 0 0;
    }


        #step-1 .brand-hero::after {
            background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 40%, rgba(255, 255, 255, 0.9) 70%, #ffffff 100%);
        }
}

/* Animation for hero image entrance */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#step-1 .brand-hero {
    animation: heroFadeIn 1s ease-out;
}

#step-1 .brand-hero {
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
}
/* Step 1 - Bold and Urgent */
#step-1 .reward-image-wrapper {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
}

#step-1 .reward-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(40px);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
}

#step-1 .reward-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    animation: floatBounce 3s ease-in-out infinite;
}

@keyframes floatBounce {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }

    25% {
        transform: translateY(-15px) rotate(2deg);
    }

    75% {
        transform: translateY(5px) rotate(-1deg);
    }
}

/* Headline - Big and Bold */
#step-1 .main-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

#step-1 .headline-your {
    display: block;
    font-size: 0.6em;
    color: #666;
    font-weight: 600;
}

#step-1 .headline-reward {
    display: block;
    color: black;
   
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

#step-1 .headline-waiting {
    display: block;
    font-size: 0.7em;
    color: var(--neutral-dark);
}

/* Sexy Urgent Timer */
.timer-urgent {
    position: absolute;
    top: 1rem;
    right: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.10rem;
    margin: 0 auto 0rem;
    padding: 0.25rem 0.5rem;
    background: darkorange;
    border-radius: 50px;
}

.timer-icon {
    font-size: 1.5rem;
    animation: ring 1s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(-10deg);
    }

    20% {
        transform: rotate(10deg);
    }

    30% {
        transform: rotate(-10deg);
    }

    40% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(0deg);
    }
}

.timer-display {
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}



#step-1 .question-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: var(--neutral-dark);
    padding-top: 10px;
    margin:0;
}


@media (max-width: 768px) {
    #step-1 .reward-image {
        width: 200px;
        height: 150px;
    }

    #step-1 .main-headline {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    #step-1 .timer-urgent {
        transform: scale(0.9);
    }
}
.timer-wrapper {
text-align: center;


}
.headline-reward sup {

font-size:1rem;
}
