/* Mobile-first styles for Health Navigator SPA */

:root {
        --color-primary: #4f46e5; /* Indigo 600 */
        --color-primary-light: #e0e7ff; /* Indigo 100 */
        --color-text-dark: #1f2937; /* Gray 900 */
        --color-text-medium: #4b5563; /* Gray 700 */
        --color-text-light: #6b7280; /* Gray 500 */
        --color-background-light: #f9fafb; /* Gray 50 */
        --color-border: #d1d5db; /* Gray 300 */
        --color-success: #10b981; /* Green 500 */
        --color-warning: #f59e0b; /* Yellow 500 */
        --color-danger: #ef4444; /* Red 500 */
}

body {
        font-family: 'Inter', sans-serif;
        margin: 0;
        padding: 0;
        background-color: var(--color-background-light);
        color: var(--color-text-dark);
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
}

.container {
        max-width: 100%;
        padding: 1rem;
        margin: 0 auto;
}

/* Flexbox for centering content */
.flex-center {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: calc(100vh - 4rem); /* Adjust based on header/footer if any */
        text-align: center;
}

/* Question Block */
.question-block {
        background-color: #fff;
        border: 1px solid var(--color-border);
        border-radius: 0.5rem;
        padding: 1.5rem;
        margin-bottom: 1rem;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.question-block h3 {
        color: var(--color-text-dark);
        font-size: 1.125rem; /* text-lg */
        font-weight: 600; /* font-semibold */
        margin-bottom: 0.75rem;
}

/* Answer Options */
.answer-option input[type=\"radio\"],
.answer-option input[type=\"checkbox\"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
}

.answer-label {
        display: block;
        padding: 0.75rem 1rem;
        border: 1px solid var(--color-border);
        border-radius: 0.375rem; /* rounded-md */
        margin-bottom: 0.5rem;
        cursor: pointer;
        transition: all 0.15s ease-in-out;
        color: var(--color-text-medium);
        text-align: left;
}

.answer-label:hover {
        background-color: var(--color-background-light);
}

.answer-option input:checked + .answer-label {
        background-color: var(--color-primary-light);
        border-color: var(--color-primary);
        color: var(--color-primary);
        box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.5); /* ring-2 with indigo-500 */
}

/* Buttons */
.btn {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 0.375rem;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.15s ease-in-out;
        border: none;
        height: 56px; /* Minimum height for touch targets */
}

.btn-primary {
        background-color: var(--color-primary);
        color: #fff;
}

.btn-primary:hover {
        background-color: #4338ca; /* Indigo 700 */
}

.btn-secondary {
        background-color: #e5e7eb; /* Gray 200 */
        color: var(--color-text-dark);
}

.btn-secondary:hover {
        background-color: #d1d5db; /* Gray 300 */
}

.btn-outline {
        background-color: transparent;
        color: var(--color-primary);
        border: 1px solid var(--color-primary);
}

.btn-outline:hover {
        background-color: var(--color-primary-light);
}

/* Error Message */
.error-message {
        color: var(--color-danger);
        background-color: #fef2f2; /* Red 50 */
        border: 1px solid var(--color-danger);
        border-radius: 0.375rem;
        padding: 0.75rem;
        margin-bottom: 1rem;
}

/* Results Container */
.results-container {
        background-color: #fff;
        border-radius: 0.5rem;
        padding: 1.5rem;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.results-container h2 {
        color: var(--color-text-dark);
        font-size: 1.5rem; /* text-2xl */
        font-weight: 700; /* font-bold */
        margin-bottom: 1rem;
}

.score-display {
        font-size: 1.25rem; /* text-xl */
        font-weight: 600;
        margin-bottom: 1rem;
}

.text-green-600 {
        color: #059669;
}

.text-yellow-600 {
        color: #d97706;
}

.text-red-600 {
        color: #dc2626;
}

.text-gray-600 {
        color: #4b5563;
}

.recommendation-list li {
        margin-bottom: 0.75rem;
}

.recommendation-list li:last-child {
        margin-bottom: 0;
}

.detailed-answers-section h3 {
        color: var(--color-text-dark);
        font-size: 1.25rem; /* text-xl */
        font-weight: 600;
        margin-top: 2rem;
        margin-bottom: 1rem;
}

.answers-list li {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid #e5e7eb; /* border-gray-100 */
}

.answers-list li:last-child {
        border-bottom: none;
}

.answers-list p {
        margin: 0;
}

.answers-list p.font-semibold {
        color: var(--color-text-dark);
}

.answers-list p.italic {
        color: var(--color-text-medium);
}

.no-problems-message {
        color: var(--color-success);
        font-weight: 500;
        margin-top: 1rem;
}

/* Utility classes (mimicking Tailwind for consistency) */
.hidden {
        display: none !important;
}

.p-4 {
        padding: 1rem;
}

.mt-4 {
        margin-top: 1rem;
}

.mb-4 {
        margin-bottom: 1rem;
}

.mb-2 {
        margin-bottom: 0.5rem;
}

.mb-3 {
        margin-bottom: 0.75rem;
}

.w-full {
        width: 100%;
}

.text-lg {
        font-size: 1.125rem;
        line-height: 1.75rem;
}

.font-semibold {
        font-weight: 600;
}

.text-gray-800 {
        color: #1f2937;
}

.text-gray-700 {
        color: #374151;
}

.text-red-500 {
        color: #ef4444;
}

.bg-gray-50 {
        background-color: #f9fafb;
}

.bg-indigo-100 {
        background-color: #e0e7ff;
}

.border-gray-300 {
        border-color: #d1d5db;
}

.border-indigo-500 {
        border-color: #6366f1;
}

.rounded-lg {
        border-radius: 0.5rem;
}

.rounded-md {
        border-radius: 0.375rem;
}

.ring-2 {
        box-shadow: 0 0 0 2px;
}

.ring-indigo-500 {
        box-shadow: 0 0 0 2px #6366f1;
}

.transition {
        transition-property: all;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        transition-duration: 150ms;
}

.ease-in-out {
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.block {
        display: block;
}

.cursor-pointer {
        cursor: pointer;
}

.italic {
        font-style: italic;
}

.border-l-4 {
        border-left-width: 4px;
}

.last\:border-b-0:last-child {
        border-bottom: 0;
}

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

.text-sm {
        font-size: 0.875rem;
}

.text-white {
        color: #fff;
}

.bg-red-50 {
        background-color: #fef2f2;
}

.border-red-500 {
        border-color: #ef4444;
}

.max-w-md {
        max-width: 28rem; /* 448px */
}

.mx-auto {
        margin-left: auto;
        margin-right: auto;
}

.space-y-4 > *:not([hidden]) ~ *:not([hidden]) {
        margin-top: 1rem;
}

.relative {
        position: relative;
}

.h-2 {
        height: 0.5rem;
}

.bg-gray-200 {
        background-color: #e5e7eb;
}

.rounded-full {
        border-radius: 9999px;
}

.absolute {
        position: absolute;
}

.top-0 {
        top: 0;
}

.left-0 {
        left: 0;
}

.bg-indigo-600 {
        background-color: #4f46e5;
}

.progress-text {
        position: absolute;
        width: 100%;
        text-align: center;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.75rem;
        color: #000; /* Or a darker color for contrast */
        font-weight: 500;
}

.text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
}

.font-bold {
        font-weight: 700;
}

.mt-1 {
        margin-top: 0.25rem;
}

.mt-2 {
        margin-top: 0.5rem;
}

.mt-3 {
        margin-top: 0.75rem;
}

.gap-4 {
        gap: 1rem;
}

.flex {
        display: flex;
}

.flex-col {
        flex-direction: column;
}

.items-center {
        align-items: center;
}

.justify-center {
        justify-content: center;
}

.h-screen {
        height: 100vh;
}

.whitespace-pre-wrap {
        white-space: pre-wrap;
}

#distributor-contacts img {
        width: 2em;
}