/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 25%, #06b6d4 50%, #10b981 75%, #059669 100%);
    min-height: 100vh;
    color: #2d3748;
    line-height: 1.6;
    background-size: 400% 400%;
    animation: gradientShift 8s ease forwards;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Hero Screen */
.hero-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 25%, #06b6d4 50%, #10b981 75%, #059669 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease forwards;
    z-index: 1000;
}

.hero-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    animation: heroFadeIn 0.6s ease;
}

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

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 2.5rem;
    font-weight: 500;
    line-height: 1.5;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 52px;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.4);
}

.hero-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.hero-button:hover::before {
    left: 100%;
}

/* Container and Layout */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Header Styles */
.quiz-header {
    text-align: center;
    margin-bottom: 3rem;
}

.header-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.quiz-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.quiz-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.5;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(30, 58, 138, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6, #06b6d4, #10b981);
    background-size: 200% 100%;
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 8.33%; /* 1/12 for first question */
    position: relative;
    animation: progressGlow 2s ease-in-out infinite alternate;
}

@keyframes progressGlow {
    0% { 
        box-shadow: 0 0 5px rgba(30, 58, 138, 0.3);
    }
    100% { 
        box-shadow: 0 0 15px rgba(30, 58, 138, 0.6), 0 0 25px rgba(59, 130, 246, 0.3);
    }
}

.progress-text {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
}

/* Main Quiz Content */
.quiz-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.quiz-content {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInUp 0.6s ease;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

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

/* Question Group Styles */
.question-group-container {
    text-align: center;
}

.group-header {
    margin-bottom: 2rem;
}

.group-number {
    display: inline-block;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.group-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.group-instruction {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 2.5rem;
    font-weight: 500;
    line-height: 1.6;
}

.group-instruction-text {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-align: center;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: stretch;
}

.item-window {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: visible;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.item-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.1), transparent);
    transition: left 0.5s ease;
}

.item-window:hover::before {
    left: 100%;
}

.item-window::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(30, 58, 138, 0.2);
    transform: translate(-50%, -50%);
    opacity: 0;
}

.item-window:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

.item-window:hover {
    border-color: rgba(30, 58, 138, 0.3);
}

.item-window.selected {
    border-color: #1e3a8a;
    background: rgba(30, 58, 138, 0.15);
    animation: itemSelect 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-width: 3px;
}

.item-window.selected:hover {
    border-color: #1e3a8a;
}

@keyframes itemSelect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.01);
    }
    100% {
        transform: scale(1);
    }
}

.selected-indicator {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    background: #1e3a8a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(30, 58, 138, 0.3);
    animation: checkboxBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
}

@keyframes checkboxBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.item-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2d3748;
    line-height: 1.5;
    text-align: center;
    padding: 0 0.5rem;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
}

/* Answer Options */
.answer-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(30, 58, 138, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.answer-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.1), transparent);
    transition: left 0.5s ease;
}

.answer-option:hover::before {
    left: 100%;
}

.answer-option:hover {
    border-color: rgba(30, 58, 138, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.15);
}

.answer-option.selected {
    border-color: #1e3a8a;
    background: rgba(30, 58, 138, 0.1);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.2);
}

.answer-option input[type="radio"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    accent-color: #1e3a8a;
}

.answer-option label {
    font-size: 1rem;
    font-weight: 500;
    color: #2d3748;
    cursor: pointer;
    flex: 1;
}

/* Navigation Styles */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-button:hover::before {
    left: 100%;
}

.nav-button.primary {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
}

.nav-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.4);
}

.nav-button.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #1e3a8a;
    border: 2px solid rgba(30, 58, 138, 0.2);
}

.nav-button.secondary:hover {
    background: rgba(30, 58, 138, 0.1);
    border-color: #1e3a8a;
    transform: translateY(-2px);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.nav-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Results Section */
.results-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.results-container {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.6s ease;
    margin: 0 auto;
}

.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.results-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.results-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.5;
}

.results-content {
    margin-bottom: 2rem;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.action-button {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.action-button.primary {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
}

.action-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.4);
}

.action-button.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #1e3a8a;
    border: 2px solid rgba(30, 58, 138, 0.2);
}

.action-button.secondary:hover {
    background: rgba(30, 58, 138, 0.1);
    border-color: #1e3a8a;
    transform: translateY(-2px);
}

/* Results Score Display */
.overall-score-section {
    margin-bottom: 2rem;
}

.score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.score-gauge-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 180px;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.gauge-label {
    font-weight: 600;
}

.score-description {
    text-align: center;
    margin-top: 1.5rem;
}

.score-description h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.score-description p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.score-number {
    font-size: 3rem;
    font-weight: 800;
    color: #333;
    line-height: 1;
}

.score-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-top: 0.5rem;
    text-align: center;
}

/* Exit Button */
.exit-button {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(30, 58, 138, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e3a8a;
    cursor: pointer;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.exit-button:hover {
    background: rgba(30, 58, 138, 0.1);
    border-color: #1e3a8a;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.exit-button-inline {
    align-self: flex-end;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(30, 58, 138, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e3a8a;
    cursor: pointer;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.exit-button-inline:hover {
    background: rgba(30, 58, 138, 0.1);
    border-color: #1e3a8a;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: none !important;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(30, 58, 138, 0.1);
    border-left: 4px solid #1e3a8a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.loading-text {
    font-size: 1.1rem;
    color: #2d3748;
    font-weight: 500;
}

/* Detailed Results Page Styles */
.detailed-results-container {
    background: #ffffff;
    min-height: 100vh;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.detailed-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.detailed-results-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.back-to-results-btn {
    background: #F39C3D;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-results-btn:hover {
    background: #E67E22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 61, 0.3);
}

.detailed-results-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.detailed-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Score Section */
.score-display-large {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.health-score-circle.large {
    width: 200px;
    height: 200px;
    min-width: 200px;
}

.health-score-circle.large .score-content {
    width: 160px;
    height: 160px;
}

.score-explanation {
    flex: 1;
    min-width: 300px;
}

.score-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1rem;
}

.health-level {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    margin-top: 1rem;
}

/* Answers Grid */
.answers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.answer-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.answer-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.answer-card.growth-card {
}

.answer-card.strength-card {
}

.answer-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
}

.answer-response,
.answer-insight,
.answer-influence {
    margin-bottom: 1.5rem;
}

.response-label,
.insight-label,
.influence-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.response-text,
.insight-text,
.influence-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

.insight-text {
    font-style: italic;
    color: #666;
}

.influence-text {
    background: #f0f8ff;
    padding: 1rem;
    border-radius: 6px;
}

/* Next Steps Section */
.next-steps-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.next-steps-content p {
    margin-bottom: 1.5rem;
}

.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #F39C3D;
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

.action-buttons-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.action-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.action-button.primary {
    background: #F39C3D;
    color: white;
}

.action-button.primary:hover {
    background: #E67E22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 61, 0.3);
}

.action-button.secondary {
    background: white;
    color: #F39C3D;
    border: 2px solid #F39C3D;
}

.action-button.secondary:hover {
    background: #F39C3D;
    color: white;
}

/* Health Score Circle Base Styles */
.health-score-circle {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(
        from -90deg,
        #dc3545 0deg 120deg,
        #ffc107 120deg 240deg,
        #28a745 240deg 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.health-score-circle .score-content {
    position: relative;
    z-index: 5;
    background: white;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}



/* Answer Card Toggle Styles */
.answer-card-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.answer-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
}

.answer-card-header .answer-question {
    margin: 0;
    flex: 1;
    padding-right: 1rem;
}

.answer-toggle-icon {
    font-size: 1rem;
    color: #666;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.answer-card-content {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.answer-statistic {
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-container {
        padding: 1rem 0.5rem;
    }
    
    .header-content,
    .quiz-content,
    .results-container {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .quiz-title {
        font-size: 2.2rem;
    }
    
    .question-text {
        font-size: 1.2rem;
    }
    
    .items-grid {
        gap: 1.5rem;
    }
    
    .item-window {
        padding: 1.75rem;
        min-height: 130px;
    }
    
    .nav-button {
        padding: 1rem 2rem;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .action-button {
        width: 100%;
        max-width: 300px;
        min-height: 48px;
    }
    
    .progress-bar {
        height: 10px;
    }
    
    .detailed-results-container {
        padding: 1rem;
    }
    
    .detailed-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .detailed-results-header h1 {
        font-size: 1.75rem;
    }
    
    .score-display-large {
        flex-direction: column;
        text-align: center;
    }
    
    .answers-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons-group {
        flex-direction: column;
    }
    
    .action-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .quiz-title {
        font-size: 1.8rem;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .answer-option {
        padding: 1rem;
    }
    
    .items-grid {
        gap: 1.25rem;
    }
    
    .item-window {
        padding: 1.5rem;
        min-height: 120px;
    }
    
    .nav-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-height: 48px;
    }
    
    .header-content,
    .quiz-content,
    .results-container {
        padding: 1.5rem 1rem;
        margin: 0 0.25rem;
        max-width: calc(100% - 0.5rem);
    }
    
    .progress-bar {
        height: 8px;
    }
    
    .detailed-results-header h1 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .health-score-circle.large {
        width: 150px;
        height: 150px;
        min-width: 150px;
    }
    
    .answer-card {
        padding: 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.answer-option:focus-within,
.nav-button:focus,
.action-button:focus {
    outline: 2px solid #1e3a8a;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    
    .quiz-container {
        max-width: none;
        padding: 0;
    }
    
    .header-content,
    .quiz-content,
    .results-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
