/* Wellness Quiz Styles */

.wellness-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.wellness-modal.active {
    display: flex;
}

.wellness-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s ease-out;
}

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

.wellness-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.wellness-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.wellness-container {
    padding: 60px 40px 40px;
}

.wellness-screen {
    display: none;
}

.wellness-screen.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Start Screen */
.wellness-icon-large {
    font-size: 80px;
    text-align: center;
    margin-bottom: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.wellness-screen h2 {
    font-size: 36px;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.wellness-intro {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 32px;
}

.wellness-benefits {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.wellness-benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--text-dark);
}

.benefit-icon {
    font-size: 24px;
}

.btn-large {
    padding: 18px 48px;
    font-size: 18px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

/* Quiz Screen */
.progress-container {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

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

.progress-text {
    display: block;
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
}

.question-card {
    background: linear-gradient(135deg, var(--accent-light) 0%, white 100%);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.animate-in {
    animation: slideInQuestion 0.5s ease-out;
}

@keyframes slideInQuestion {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.question-icon {
    font-size: 64px;
    text-align: center;
    margin-bottom: 24px;
}

.question-text {
    font-size: 24px;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 32px;
    line-height: 1.4;
}

.options-container {
    display: grid;
    gap: 16px;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 16px;
    width: 100%;
}

.option-btn:hover {
    border-color: var(--primary-color);
    background: var(--accent-light);
    transform: translateX(8px);
}

.option-btn.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: scale(0.98);
}

.option-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent-color);
    color: var(--primary-dark);
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.option-btn.selected .option-number {
    background: white;
    color: var(--primary-color);
}

.option-text {
    flex: 1;
    line-height: 1.5;
}

/* Results Screen */
.results-container {
    text-align: center;
}

.score-circle {
    width: 220px;
    height: 220px;
    margin: 0 auto 32px;
    position: relative;
}

.score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 12;
}

.score-progress {
    fill: none;
    stroke: var(--score-color);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 565;
    stroke-dashoffset: 565;
    transition: stroke-dashoffset 1.5s ease-out;
    filter: drop-shadow(0 0 8px var(--score-color));
}

.score-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.score-number {
    font-size: 56px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.score-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
}

.results-container h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.result-description {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.recommended-services {
    background: var(--accent-light);
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 32px;
    text-align: left;
}

.recommended-services h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 24px;
    text-align: center;
}

.services-list {
    display: grid;
    gap: 16px;
}

.service-recommendation {
    display: flex;
    gap: 16px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.service-recommendation:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-rec-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.service-rec-content h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.service-rec-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.result-message {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.result-message p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.result-actions .btn {
    width: 100%;
    max-width: 400px;
}

/* Responsive */
@media (max-width: 768px) {
    .wellness-modal {
        padding: 0;
    }

    .wellness-modal-content {
        max-width: 100%;
        width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }

    .wellness-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 32px;
        background: rgba(0, 0, 0, 0.1);
    }

    .wellness-container {
        padding: 60px 20px 20px;
        height: 100vh;
        overflow-y: auto;
    }

    .wellness-screen h2 {
        font-size: 28px;
    }

    .wellness-intro {
        font-size: 16px;
    }

    .wellness-benefits {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .question-card {
        padding: 24px;
    }

    .question-icon {
        font-size: 48px;
    }

    .question-text {
        font-size: 20px;
    }

    .option-btn {
        padding: 18px 20px;
        font-size: 15px;
        min-height: 60px;
    }

    .btn-large {
        padding: 16px 32px;
        font-size: 17px;
        min-height: 54px;
    }

    .result-actions .btn {
        min-height: 50px;
        font-size: 16px;
    }

    .score-circle {
        width: 180px;
        height: 180px;
    }

    .score-number {
        font-size: 48px;
    }

    .results-container h2 {
        font-size: 24px;
    }

    .result-description {
        font-size: 16px;
    }

    .recommended-services {
        padding: 24px 16px;
    }

    .recommended-services h3 {
        font-size: 20px;
    }

    .service-recommendation {
        padding: 16px;
    }

    .service-rec-icon {
        font-size: 32px;
    }

    .service-rec-content h4 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .wellness-modal-content {
        border-radius: 12px;
    }

    .wellness-container {
        padding: 32px 16px 16px;
    }

    .wellness-icon-large {
        font-size: 60px;
    }

    .wellness-screen h2 {
        font-size: 24px;
    }

    .btn-large {
        padding: 16px 32px;
        font-size: 16px;
    }

    .option-btn {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Add pointer cursor to circle */
.visual-circle {
    cursor: pointer;
    user-select: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.visual-circle:hover {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.circle-content {
    cursor: pointer;
    transition: all 0.3s ease;
}

.circle-content:hover {
    transform: scale(1.02);
}

.circle-content:hover .circle-text {
    color: var(--primary-color);
}

.circle-content:hover .circle-subtext {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Add a subtle pulse animation to attract attention */
@keyframes circlePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(45, 106, 79, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(45, 106, 79, 0);
    }
}

.visual-circle {
    animation: circlePulse 3s ease-in-out infinite;
}
