/* Light Cosmic Romance Design System */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap');

:root {
    --cosmic-bg: linear-gradient(135deg, #fff5f8 0%, #f0f4ff 100%);
    --primary-pink: #e0006f;
    --accent-purple: #8e44ad;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(224, 0, 111, 0.1);
    --text-dark: #1e1e24;
    --text-dim: #585860;
    --card-shadow: 0 10px 40px rgba(224, 0, 111, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.cosmic-theme {
    background: var(--cosmic-bg);
    color: var(--text-dark);
    font-family: 'Lexend', sans-serif;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: background 1s ease;
}

.cosmic-theme::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 600px;
    opacity: 0.5;
    pointer-events: none;
    transition: filter 1s ease;
}

/* Chapter Themes */
.theme-ch-0 {
    --cosmic-bg: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
}

/* Green */
.theme-ch-1 {
    --cosmic-bg: linear-gradient(135deg, #fff5f8 0%, #ffffff 100%);
}

/* Pink */
.theme-ch-2 {
    --cosmic-bg: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
}

/* Blue */
.theme-ch-3 {
    --cosmic-bg: linear-gradient(135deg, #f5f0ff 0%, #ffffff 100%);
}

/* Purple */
.theme-ch-4 {
    --cosmic-bg: linear-gradient(135deg, #fffcf0 0%, #ffffff 100%);
}

/* Gold/Yellow */

.theme-ch-0::before {
    opacity: 0.3;
}

.theme-ch-1::before {
    opacity: 0.3;
}

.theme-ch-2::before {
    opacity: 0.3;
}

.theme-ch-3::before {
    opacity: 0.3;
}

.theme-ch-4::before {
    opacity: 0.3;
}

.jodoo-quiz-container {
    width: 100%;
    max-width: 900px;
    /* Increased for landing page feel */
    position: relative;
    z-index: 2;
}

/* Landing Page Styles */
.landing-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.hero-image img {
    max-width: 400px;
    width: 100%;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 20px rgba(224, 0, 111, 0.3));
}

.trust-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--primary-pink);
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 40px;
}

.chapter-card {
    padding: 30px !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.chapter-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-pink);
    background: rgba(224, 0, 111, 0.05);
}

.ch-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.chapter-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}

.chapter-card p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    min-height: 40px;
}

.ch-meta {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
    color: var(--text-dim);
}

.landing-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-size: 1.8rem;
    color: var(--text-dark);
}

.stat-item span {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.big-btn {
    font-size: 1.4rem;
    padding: 22px 50px;
    width: auto;
}

.no-reg-info {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.glass:hover {
    transform: translateY(-8px);
    border-color: rgba(224, 0, 111, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(224, 0, 111, 0.15);
}

/* Shine effect on hover */
.glass::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.03),
            transparent);
    transform: rotate(45deg);
    transition: 0.8s;
    pointer-events: none;
}

.glass:hover::after {
    left: 100%;
    top: 100%;
}

/* Header & Progress */
.quiz-header {
    margin-bottom: 30px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-track {
    flex-grow: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-purple), var(--primary-pink));
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        left: 150%;
    }
}

.heart-energy {
    background: var(--glass-bg);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chapter-badge {
    display: inline-block;
    background: var(--primary-pink);
    color: white;
    padding: 4px 15px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Typography */
h1,
h2 {
    font-family: 'Lexend', serif;
    font-weight: 700;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 30px;
    font-weight: 600;
}

p {
    color: #000000;
    line-height: 1.6;
    font-size: 1.1rem;
}

#prologue-text {
    font-size: 1.4rem;
    font-weight: 400;
    text-align: center;
    line-height: 1.7;
    margin-bottom: 40px;
    color: var(--text-dark);
}

/* Forms & Inputs */
.gate-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.input-group input[type="email"],
.input-group input[type="tel"],
.input-group input[type="text"],
.input-group input[type="number"] {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 12px;
    color: var(--text-dark);
    font-size: 1rem;
    outline: none;
    font-family: 'Lexend', sans-serif;
}

.input-group input:focus {
    border-color: var(--primary-pink);
}

.styled-input-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.styled-input-box:focus-within {
    border-color: var(--primary-pink);
    background: rgba(255, 255, 255, 0.1);
}

.styled-input-box input {
    background: transparent !important;
    border: none !important;
    color: var(--text-dark);
    font-size: 1.2rem;
    width: 100%;
    outline: none;
    font-family: 'Lexend', sans-serif;
}

.input-icon {
    font-size: 1.4rem;
    opacity: 0.7;
}

.input-group.checkbox {
    flex-direction: row;
    align-items: center;
    font-size: 0.85rem;
}

/* CTA Buttons */
.cta-btn {
    background: var(--primary-pink);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(224, 0, 111, 0.3);
}

.cta-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.outline-btn {
    background: transparent !important;
    border: 2px solid var(--primary-pink) !important;
    color: var(--primary-pink) !important;
    padding: 16px 20px !important;
    font-weight: 600;
}

.outline-btn:hover {
    background: rgba(224, 0, 111, 0.1) !important;
    color: white !important;
}

.btn-grid-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    width: 100%;
    flex-wrap: wrap;
}

.btn-grid-row .cta-btn {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    margin-top: 0;
}

@media (max-width: 480px) {
    .btn-grid-row {
        grid-template-columns: 1fr;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(224, 0, 111, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(224, 0, 111, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(224, 0, 111, 0);
    }
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.option-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    opacity: 0;
    animation: slideUpFade 0.5s ease forwards;
}

.option-item:nth-child(1) {
    animation-delay: 0.1s;
}

.option-item:nth-child(2) {
    animation-delay: 0.2s;
}

.option-item:nth-child(3) {
    animation-delay: 0.3s;
}

.option-item:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.option-item:hover {
    background: #ffffff;
    border-color: var(--primary-pink);
    transform: translateX(8px) scale(1.01);
    box-shadow: 0 8px 25px rgba(224, 0, 111, 0.08);
}

.option-label {
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.option-item:hover .option-label {
    background: var(--primary-pink);
    color: white !important;
}

/* Steps Management */
.quiz-step {
    display: none;
    animation: fadeIn 0.6s ease-out;
}

.quiz-step.active {
    display: block;
}

/* Loading Animation Styles */
.loading-animation {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart-pulse {
    font-size: 3rem;
    animation: heartBeat 1.2s infinite ease-in-out;
    z-index: 2;
}

.loading-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 4px solid rgba(224, 0, 111, 0.1);
    border-top: 4px solid var(--primary-pink);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px var(--primary-pink));
    }

    15% {
        transform: scale(1.3);
        filter: drop-shadow(0 0 15px var(--primary-pink));
    }

    30% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px var(--primary-pink));
    }

    45% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 8px var(--primary-pink));
    }

    60% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px var(--primary-pink));
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Completion Step */
.text-center {
    text-align: center;
}

.completion-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.result-animation {
    font-size: 5rem;
    animation: bouncePop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bouncePop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Results Customization */
.result-card {
    text-align: center;
}

.result-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(to bottom, var(--text-dark), var(--primary-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 10px;
}

/* Verdict Typewriter Styles */
.verdict-box {
    margin: 30px 0;
    padding: 25px;
    background: rgba(224, 0, 111, 0.03);
    border-radius: 16px;
    border-left: 4px solid var(--primary-pink);
    position: relative;
    text-align: left;
    min-height: 80px;
}

.verdict-quote-icon {
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 3rem;
    color: rgba(224, 0, 111, 0.1);
    font-family: serif;
}

#result-verdict {
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
}

#result-verdict::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--primary-pink);
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.traits-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
}

.trait-tag {
    background: rgba(224, 0, 111, 0.1);
    border: 1px solid rgba(224, 0, 111, 0.3);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #ff85b6;
}

/* Journey Summary Styles */
.journey-summary {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed rgba(224, 0, 111, 0.2);
    text-align: center;
}

.summary-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.chapter-insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Force 2 columns */
    gap: 15px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.5) !important;
    padding: 20px !important;
    text-align: left !important;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-card:hover {
    transform: translateY(-5px);
    background: #ffffff !important;
    box-shadow: 0 10px 20px rgba(224, 0, 111, 0.05);
    border-color: var(--primary-pink);
}

.summary-icon {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.summary-card h4 {
    font-size: 0.95rem;
    margin: 0;
    color: var(--primary-pink);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.summary-card p {
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
    color: var(--text-dark);
    opacity: 0.9;
}

/* Mobile: Fallback to 1 column */
@media (max-width: 600px) {
    .chapter-insights-grid {
        grid-template-columns: 1fr;
    }

    .chapter-5-full {
        grid-column: span 1 !important;
    }
}

.chapter-5-full {
    grid-column: span 2;
    margin-top: 10px;
    background: rgba(224, 0, 111, 0.05) !important;
    border: 1px dashed var(--primary-pink);
}

/* Jodoo Specific Button Styles (No Conflict) */
#jodoo-quiz-wrapper .cta-btn,
#jodoo-quiz-wrapper .share-btn {
    padding: 15px 35px !important;
    min-width: 200px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 10px;
}

#jodoo-quiz-wrapper .share-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary-pink);
    color: #fff;
}

.compatibility-box {
    background: rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: 16px;
    margin-top: 30px;
    border: 1px dashed var(--glass-border);
}

/* Footer Info */
.quiz-footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Flatpickr Custom Styling */
.flatpickr-calendar {
    background: #ffffff !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 15px 35px rgba(224, 0, 111, 0.1) !important;
    border-radius: 20px !important;
    font-family: 'Lexend', sans-serif !important;
    padding: 10px !important;
}

.flatpickr-day.selected {
    background: var(--primary-pink) !important;
    border-color: var(--primary-pink) !important;
    border-radius: 12px !important;
}

.flatpickr-day:hover {
    background: rgba(224, 0, 111, 0.1) !important;
    border-radius: 12px !important;
}

.flatpickr-months .flatpickr-month {
    color: var(--text-dark) !important;
    fill: var(--text-dark) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 600 !important;
}

.flatpickr-weekday {
    color: var(--primary-pink) !important;
    font-weight: 600 !important;
}

.flatpickr-day {
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
}

.flatpickr-input {
    cursor: pointer !important;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .cosmic-theme {
        padding: 10px;
        border-radius: 0;
    }

    .glass {
        padding: 25px;
    }

    h3 {
        font-size: 1.2rem;
    }
}