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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #dbeafe 0%, #ffffff 50%, #dcfce7 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: #374151;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 10;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transition: width 0.5s ease-out;
    width: 0%;
}

.progress-bar.hidden {
    display: none;
}

/* Main Container */
.quiz-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Steps */
.step {
    display: none;
    width: 100%;
    max-width: 512px;
    animation: fadeIn 0.3s ease-out;
}

.step.active {
    display: block;
}

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

.step-content {
    text-align: center;
    space-y: 1.5rem;
}

/* Welcome Step */
.hero-section {
    margin-bottom: 2rem;
}

.hero-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.hero-icon > div {
    background: linear-gradient(90deg, #3b82f6, #10b981);
    padding: 1rem;
    border-radius: 50%;
}

.credit-card-icon {
    width: 48px;
    height: 48px;
    color: white;
}

.hero-section h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

.feature-card {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.feature-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 0.5rem;
    color: #3b82f6;
}

.feature-icon.green {
    color: #10b981;
}

.feature-icon.yellow {
    color: #f59e0b;
}

.feature-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.feature-description {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Question Steps */
.question-header {
    margin-bottom: 2rem;
}

.question-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .question-header h2 {
        font-size: 1.875rem;
    }
}

.question-header p {
    color: #6b7280;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.option-button {
    width: 100%;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    background: white;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.option-button:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.option-button.selected {
    border-color: #3b82f6;
    background-color: #dbeafe;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.option-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.option-emoji {
    font-size: 1.5rem;
}

.option-label {
    font-weight: 500;
    color: #111827;
}

.option-check {
    color: #3b82f6;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.option-button.selected .option-check {
    opacity: 1;
}

.social-proof {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-top: 1.5rem;
}

.social-proof p {
    color: #166534;
    font-size: 0.875rem;
}

/* Email Capture */
.capture-header {
    margin-bottom: 2rem;
}

.capture-icon {
    background: linear-gradient(90deg, #a855f7, #ec4899);
    padding: 1rem;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.capture-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.capture-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .capture-header h2 {
        font-size: 1.875rem;
    }
}

.capture-header p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.security-note {
    color: #2563eb !important;
    font-weight: 500;
    font-size: 0.875rem;
}

.capture-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #9ca3af;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    background: white;
    transition: border-color 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
}

.input-group input.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    text-align: left;
    display: none;
}

.error-message.show {
    display: block;
}

/* Thank You Step */
.thank-you-header {
    margin-bottom: 2rem;
}

.success-icon {
    background: linear-gradient(90deg, #10b981, #3b82f6);
    padding: 1rem;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 48px;
    height: 48px;
    color: white;
}

.thank-you-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .thank-you-header h2 {
        font-size: 1.875rem;
    }
}

.status-banner {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.status-banner p {
    color: #1e40af;
    font-weight: 500;
}

.bonus-banner {
    background: linear-gradient(90deg, #fef3c7, #fed7aa);
    border: 1px solid #fde68a;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1.5rem 0;
}

.bonus-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.bonus-header svg {
    width: 20px;
    height: 20px;
    color: #d97706;
}

.bonus-banner p {
    color: #92400e;
}

.bonus-banner p strong {
    color: #92400e;
}

/* Results Step */
.results-header {
    margin-bottom: 2rem;
}

.results-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .results-header h2 {
        font-size: 1.875rem;
    }
}

.limited-time-banner {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.limited-time-banner p {
    color: #166534;
    font-weight: 500;
    text-align: center;
}

.cards-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-info h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.5rem;
}

.best-match {
    background: #fef3c7;
    color: #92400e;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stars {
    display: flex;
    color: #fbbf24;
}

.stars svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.rating-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.card-highlight {
    font-size: 0.875rem;
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.card-icon {
    padding: 0.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.card-bonus {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.card-bonus svg {
    width: 20px;
    height: 20px;
    color: #10b981;
}

.bonus-text {
    font-weight: 600;
    color: #166534;
}

.card-apr {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.card-features h4 {
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.5rem;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.features-list svg {
    width: 16px;
    height: 16px;
    color: #3b82f6;
}

.card-cta {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.card-cta:hover {
    opacity: 0.9;
}

.card-cta svg {
    width: 16px;
    height: 16px;
}

.congratulations-banner {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

.congratulations-banner p:first-child {
    color: #1e40af;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.congratulations-banner p:last-child {
    color: #1d4ed8;
    font-size: 0.875rem;
}

.final-disclaimer {
    text-align: center;
    padding-top: 1rem;
}

.final-disclaimer p {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Buttons */
.cta-button {
    width: 100%;
    background: linear-gradient(90deg, #2563eb, #10b981);
    color: white;
    font-weight: 600;
    padding: 1rem;
    font-size: 1.125rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    margin: 1.5rem 0;
}

.cta-button:hover {
    transform: scale(1.02);
    background: linear-gradient(90deg, #1d4ed8, #059669);
}

/* Banners */
.urgency-banner {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1.5rem 0;
}

.urgency-banner.small {
    margin: 1rem 0;
}

.urgency-banner p:first-child {
    color: #92400e;
    font-weight: 500;
    font-size: 0.875rem;
}

.urgency-subtitle {
    color: #b45309;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Disclaimer */
.disclaimer {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 1rem;
}

.disclaimer.small {
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 640px) {
    .quiz-container {
        padding: 0.5rem;
    }
    
    .step-content {
        padding: 0.5rem;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .question-header h2 {
        font-size: 1.25rem;
    }
    
    .capture-header h2,
    .thank-you-header h2,
    .results-header h2 {
        font-size: 1.25rem;
    }
}
