@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ===== CONTAINER ===== */
.skincare-quiz-container {
    max-width: 820px;
    margin: 2rem auto;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(145deg, #ffffff, #f9fbf9);
    border-radius: 48px;
    padding: 2.5rem;
    box-shadow: 0 30px 80px rgba(0,0,0,0.06);
    border: 1px solid rgba(45,106,79,0.06);
    position: relative;
    overflow: hidden;
}
.skincare-quiz-container::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45,106,79,0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ===== HEADER ===== */
.quiz-header { text-align: center; position: relative; z-index: 1; }
.quiz-header h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #1B4332;
    letter-spacing: -0.03em;
    margin-bottom: 0.3rem;
}
.subtitle {
    font-size: 1.1rem;
    color: #4a6a4a;
    max-width: 550px;
    margin: 0 auto 0.8rem;
    line-height: 1.6;
}
.brand-tag {
    display: inline-block;
    background: #2D6A4F;
    color: #fff;
    padding: 0.25rem 1.2rem;
    border-radius: 60px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== PROGRESS ===== */
.progress-wrapper {
    background: #eef4ee;
    border-radius: 60px;
    height: 12px;
    margin: 2rem 0 0.5rem;
    overflow: hidden;
}
.progress-bar {
    background: linear-gradient(90deg, #2D6A4F, #52B788);
    height: 100%;
    width: 0%;
    border-radius: 60px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #5a7a5a;
    font-weight: 500;
}
.question-counter {
    background: #eef4ee;
    padding: 0.15rem 1rem;
    border-radius: 60px;
    font-size: 0.75rem;
}

/* ===== QUESTIONS WRAPPER ===== */
.questions-wrapper {
    position: relative;
    transition: height 0.4s ease;
    overflow: hidden;
    z-index: 1;
    min-height: 260px;
}
.question {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 0.5rem 0;
}
.question.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.question h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1B4332;
    margin-bottom: 1.8rem;
    letter-spacing: -0.02em;
    line-height: 1.4;
}
.q-number {
    display: inline-block;
    background: #2D6A4F;
    color: #fff;
    width: 34px;
    height: 34px;
    text-align: center;
    line-height: 34px;
    border-radius: 50%;
    font-size: 0.9rem;
    margin-right: 0.6rem;
}

/* ===== OPTIONS (Cards) ===== */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.option {
    background: #ffffff;
    border: 2px solid #e2ece2;
    border-radius: 28px;
    padding: 1rem 1.4rem;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
    color: #1a2c1a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.option:hover {
    border-color: #52B788;
    background: #f6fbf8;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(45,106,79,0.08);
}
.option.selected {
    background: #e3f0e3;
    border-color: #2D6A4F;
    box-shadow: 0 8px 20px rgba(45,106,79,0.12);
}
.option input[type="radio"],
.option input[type="checkbox"] {
    accent-color: #2D6A4F;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.opt-icon { font-size: 1.4rem; line-height: 1; }

/* ===== EMAIL INPUT ===== */
.email-input {
    width: 100%;
    padding: 1.1rem 1.5rem;
    border-radius: 60px;
    border: 2px solid #d0ddd0;
    font-size: 1rem;
    transition: all 0.2s;
    background: #fcfdfc;
}
.email-input:focus {
    border-color: #2D6A4F;
    outline: none;
    box-shadow: 0 0 0 6px rgba(45,106,79,0.06);
}
.email-note {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: #7a9a7a;
}

/* ===== BUTTONS ===== */
.buttons-container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
}
button {
    background: #2D6A4F;
    color: #fff;
    border: none;
    padding: 0.9rem 2.4rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 8px 24px rgba(45,106,79,0.15);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
button:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(45,106,79,0.25);
    background: #1B4332;
}
button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
#prevBtn {
    background: #e2ece2;
    color: #2D6A4F;
    box-shadow: none;
}
#prevBtn:hover:not(:disabled) {
    background: #d0e0d0;
}

/* ===== QUALIFICATION MESSAGE ===== */
#qualification-message {
    background: #fff3f0;
    border-left: 5px solid #e76f51;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    color: #6b3a2a;
    margin-top: 1.5rem;
    font-weight: 500;
}

/* ===== RESULTS ===== */
#quiz-results { animation: fadeSlideUp 0.6s ease; }
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.result-hero { text-align: center; padding: 1rem 0; }
.result-hero h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1B4332;
    letter-spacing: -0.02em;
}
.hero-sub {
    font-size: 1.05rem;
    color: #4a6a4a;
    max-width: 600px;
    margin: 0.3rem auto;
    line-height: 1.6;
}
.result-section { margin: 3.2rem 0; }
.section-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1B4332;
    margin-bottom: 1.8rem;
    letter-spacing: -0.02em;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2D6A4F, #52B788);
    border-radius: 4px;
    margin-top: 0.3rem;
}

/* Profile Grid */
.premium-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    background: #f6fbf8;
    padding: 1.8rem;
    border-radius: 32px;
}
.premium-profile-grid .profile-item {
    background: #fff;
    padding: 1rem 1.2rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.premium-profile-grid .profile-item strong {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #2D6A4F;
    margin-bottom: 0.1rem;
}

/* Learned */
.learned-card {
    background: #f6fbf8;
    padding: 2rem;
    border-radius: 32px;
    font-size: 1rem;
    line-height: 1.8;
    color: #2d3d2d;
}

/* Factors */
.premium-factors {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.8rem;
}
.premium-factors li {
    background: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
}
.premium-factors .factor-icon { color: #2D6A4F; }

/* Priorities */
.premium-priorities {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.premium-priority {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: #f6fbf8;
    padding: 0.8rem 1.6rem;
    border-radius: 60px;
    transition: all 0.2s;
}
.premium-priority:hover {
    transform: translateX(6px);
    background: #eaf3ea;
}
.priority-number {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #2D6A4F, #52B788);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* Offer */
.offer-section-premium {
    background: linear-gradient(145deg, #f6fbf8, #fff);
    border-radius: 40px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 12px 40px rgba(45,106,79,0.06);
}
.offer-card-premium { max-width: 520px; margin: 0 auto; text-align: center; }
.offer-title { font-size: 2.2rem; font-weight: 700; color: #1B4332; }
.offer-sub { font-size: 1.1rem; color: #4a6a4a; margin-bottom: 1.5rem; }
.offer-price-box {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}
.offer-price {
    font-size: 3.8rem;
    font-weight: 800;
    color: #1B4332;
}
.offer-price-note {
    font-size: 0.9rem;
    background: #e8f0e8;
    padding: 0.2rem 1.2rem;
    border-radius: 40px;
    color: #3a5a3a;
}
.offer-benefits-premium {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 300px;
    margin: 1.5rem auto;
}
.offer-benefits-premium li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #eef3ee;
}
.offer-urgency {
    background: #faf6ed;
    border-radius: 28px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
}
.urgency-icon { font-size: 1.4rem; margin-right: 0.5rem; }
.urgency-text {
    margin-top: 0.4rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #3d4f3d;
}
.offer-footer {
    margin-top: 1.2rem;
    font-style: italic;
    color: #6a8a6a;
}
.cta-button.premium-cta {
    display: inline-block;
    background: linear-gradient(135deg, #2D6A4F, #52B788);
    color: #fff;
    padding: 18px 48px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(45,106,79,0.2);
    transition: all 0.3s;
    margin: 0.5rem 0;
}
.cta-button.premium-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(45,106,79,0.3);
    background: #1B4332;
}

/* Trust */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1rem;
}
.trust-item {
    background: #fff;
    padding: 1rem 0.5rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: all 0.2s;
}
.trust-item:hover { transform: translateY(-4px); }
.trust-icon { font-size: 2.2rem; display: block; margin-bottom: 0.2rem; }
.trust-label { font-size: 0.8rem; font-weight: 500; color: #1B4332; }

/* Routine */
.routine-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.routine-card {
    background: #f6fbf8;
    padding: 1.8rem;
    border-radius: 28px;
    line-height: 1.9;
}
.routine-card strong {
    display: block;
    font-size: 1.1rem;
    color: #1B4332;
    margin-bottom: 0.3rem;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-left: 1.2rem;
    border-left: 3px solid #d0ddd0;
}
.timeline-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #f6fbf8;
    padding: 0.8rem 1.6rem;
    border-radius: 60px;
}
.timeline-number {
    width: 34px;
    height: 34px;
    background: #2D6A4F;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* FAQ */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.faq-item {
    background: #f6fbf8;
    border-radius: 28px;
    padding: 0 1.8rem;
}
.faq-question {
    padding: 1.2rem 0;
    font-weight: 600;
    color: #1B4332;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: '+';
    font-size: 1.6rem;
    font-weight: 300;
    color: #2D6A4F;
    transition: transform 0.2s;
}
.faq-question.open::after { transform: rotate(45deg); }
.faq-answer {
    display: none;
    padding-bottom: 1.2rem;
    color: #4a5f4a;
    line-height: 1.6;
}
.faq-answer.show { display: block; }

/* Final CTA */
.final-cta-section {
    text-align: center;
    padding: 2.5rem 1rem;
    background: linear-gradient(145deg, #f6fbf8, #fff);
    border-radius: 40px;
}
.final-cta-heading {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1B4332;
    margin-bottom: 1.5rem;
}

/* Messages */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    font-weight: 500;
}
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Start Over */
#startOverBtn {
    display: block;
    margin: 2rem auto 0;
    background: #e2ece2;
    color: #2D6A4F;
    box-shadow: none;
}
#startOverBtn:hover { background: #d0e0d0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .skincare-quiz-container { padding: 1.5rem; }
    .quiz-header h1 { font-size: 2rem; }
    .question h3 { font-size: 1.3rem; }
    .options-grid { grid-template-columns: 1fr 1fr; }
    .premium-profile-grid { grid-template-columns: 1fr 1fr; padding: 1.2rem; }
    .routine-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: repeat(3, 1fr); }
    .offer-price { font-size: 2.8rem; }
    .buttons-container { flex-wrap: wrap; justify-content: center; }
    button { flex: 1; min-width: 120px; justify-content: center; }
}
@media (max-width: 480px) {
    .options-grid { grid-template-columns: 1fr; }
    .premium-profile-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
    .timeline-item { padding: 0.6rem 1.2rem; gap: 1rem; }
    .cta-button.premium-cta { padding: 14px 24px; font-size: 1rem; }
}