:root {
    --primary: #c946a0;
    --primary-dark: #a83581;
    --primary-light: #e8a6d8;
    --secondary: #7c6b8f;
    --accent: #ffd700;
    --bg: #faf8fc;
    --bg-light: #f5f0fa;
    --text-dark: #2d2d2d;
    --text-light: #6b6b6b;
    --white: #ffffff;
    --border-color: #e0d5f0;
    --success: #6db886;
    --warning: #ff6b6b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(135deg, var(--bg) 0%, rgba(232, 166, 216, 0.05) 100%);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ HEADER ============ */
.quiz-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(201, 70, 160, 0.2);
}

.quiz-header h1 {
    font-size: 2.2rem;
    margin: 15px 0;
}

.quiz-header .quiz-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.95);
}

.back-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    display: inline-block;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--white);
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .quiz-header h1 {
        font-size: 1.6rem;
    }

    .quiz-header .quiz-subtitle {
        font-size: 0.95rem;
    }
}

/* ============ QUIZ CONTAINER ============ */
.quiz-container {
    padding: 40px 0;
    min-height: 100vh;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(201, 70, 160, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    width: 10%;
    transition: width 0.4s ease;
    border-radius: 10px;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 500;
}

/* ============ QUIZ INTRO ============ */
.quiz-intro {
    background: linear-gradient(135deg, rgba(201, 70, 160, 0.08) 0%, rgba(217, 70, 239, 0.08) 100%);
    padding: 35px;
    border-radius: 15px;
    border: 2px solid var(--primary-light);
    margin-bottom: 40px;
    animation: slideIn 0.5s ease;
}

.quiz-intro h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.quiz-intro p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.quiz-intro p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .quiz-intro {
        padding: 25px;
    }

    .quiz-intro h2 {
        font-size: 1.2rem;
    }

    .quiz-intro p {
        font-size: 0.9rem;
    }
}

/* ============ QUESTION CARD ============ */
.question-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(201, 70, 160, 0.12);
    animation: slideIn 0.4s ease;
    margin-bottom: 30px;
}

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

.question-image {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    max-height: 220px;
    width: 100%;
}

.question-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.question-card h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-dark);
}

/* ============ ANSWERS ============ */
.answers {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer-option {
    display: flex;
    align-items: flex-start;
    padding: 18px 20px;
    background-color: var(--bg-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.answer-option:hover {
    background-color: rgba(201, 70, 160, 0.08);
    transform: translateX(5px);
}

.answer-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.answer-option input[type="radio"]:checked + .option-text {
    color: var(--primary-dark);
    font-weight: 600;
}

.answer-option input[type="radio"]:checked {
    accent-color: var(--primary-dark);
}

.answer-option input[type="radio"]:checked ~ .option-text {
    color: var(--primary-dark);
    font-weight: 600;
}

.option-text {
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.answer-option input[type="radio"]:checked + .option-text {
    color: var(--primary-dark);
    font-weight: 600;
}

@media (max-width: 768px) {
    .question-card {
        padding: 25px 20px;
    }

    .question-card h2 {
        font-size: 1.3rem;
    }

    .question-image {
        max-height: 180px;
    }

    .answer-option {
        padding: 15px 15px;
    }

    .option-text {
        font-size: 0.95rem;
    }
}

/* ============ BUTTONS ============ */
.quiz-buttons {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 40px;
}

.btn-nav {
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    flex: 1;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 70, 160, 0.3);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--primary);
    flex: 1;
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--primary);
    color: var(--white);
}

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

@media (max-width: 768px) {
    .quiz-buttons {
        gap: 10px;
    }

    .btn-nav {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ============ RESULTS SECTION ============ */
.results-section {
    padding: 40px 20px;
}

.result-card {
    background: var(--white);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(201, 70, 160, 0.15);
    text-align: center;
    animation: slideIn 0.5s ease;
}

.result-badge {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto 25px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: block;
}

.result-badge.great {
    box-shadow: 0 8px 20px rgba(109, 184, 134, 0.2);
}

.result-badge.perfect {
    box-shadow: 0 10px 30px rgba(201, 70, 160, 0.3);
}

.result-badge.perfect::after {
    content: '';
}

.result-title {
    font-size: 2.2rem;
    margin: 20px 0;
    color: var(--primary-dark);
}

.result-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.result-details {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    text-align: left;
}

.result-details h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.result-details ul {
    list-style: none;
    margin-bottom: 15px;
}

.result-details li {
    padding: 8px 0;
    color: var(--text-dark);
    font-weight: 500;
}

.result-details li::before {
    content: '✓ ';
    color: var(--success);
    font-weight: 800;
    margin-right: 10px;
}

.result-details li.concern::before {
    content: '⚠ ';
    color: var(--warning);
}

.result-score {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 20px 0;
}

.result-score-label {
    font-size: 0.95rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ============ RESULT MESSAGES ============ */
.result-message {
    background-color: var(--white);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid;
}

.result-message.great {
    border-left-color: var(--success);
    background-color: rgba(109, 184, 134, 0.08);
}

.result-message.okay {
    border-left-color: var(--accent);
    background-color: rgba(255, 215, 0, 0.08);
}

.result-message.bad {
    border-left-color: var(--warning);
    background-color: rgba(255, 107, 107, 0.08);
}

.result-message p {
    color: var(--text-dark);
    font-weight: 500;
}

/* ============ CTA BUTTONS ============ */
.result-cta {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cta-button {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(201, 70, 160, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 70, 160, 0.4);
}

.cta-secondary {
    background-color: var(--bg-light);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.cta-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.contact-info-result {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(201, 70, 160, 0.08) 0%, rgba(232, 166, 216, 0.08) 100%);
    border-radius: 15px;
}

.contact-info-result p {
    margin: 10px 0;
    font-weight: 500;
}

.contact-info-result .contact-detail {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

@media (max-width: 768px) {
    .result-card {
        padding: 30px 20px;
    }

    .result-title {
        font-size: 1.7rem;
    }

    .result-score {
        font-size: 2.8rem;
    }

    .result-cta {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
    }
}

