:root {
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-color: #1f2937;
    --text-light: #6b7280;
    --option-bg: #f3f4f6;
    --option-hover: #e5e7eb;
    --d-color: #ef4444;
    --i-color: #eab308;
    --s-color: #22c55e;
    --c-color: #3b82f6;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background-gradient);
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
}

.card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

p {
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

/* Wizard & Progress */
.progress-container {
    margin-bottom: 2rem;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Test Interface */
.question-step {
    display: none;
    /* Hidden by default */
    animation: fadeIn 0.5s ease;
}

.question-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.question-number {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.question-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Option Cards */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-card {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.option-card:hover {
    border-color: #e5e7eb;
    background: #f9fafb;
}

.option-card.selected-most {
    border-color: var(--primary-color);
    background: #eff6ff;
}

.option-card.selected-least {
    border-color: var(--d-color);
    background: #fef2f2;
}

.option-text {
    font-weight: 500;
}

.selection-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 1rem;
    cursor: pointer;
}

.selection-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-light);
}

/* Custom Radio Buttons */
input[type="radio"] {
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: grid;
    place-content: center;
}

input[type="radio"]::before {
    content: "";
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    transform: scale(0);
    transition: 0.2s transform ease-in-out;
    box-shadow: inset 1em 1em white;
}

input[type="radio"]:checked::before {
    transform: scale(1);
}

/* Most - Primary Color */
.radio-most:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Least - Red Color */
.radio-least:checked {
    background-color: var(--d-color);
    border-color: var(--d-color);
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background: #d1d5db;
}

/* Result Page */
.result-summary {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 1rem;
}

.bg-D {
    background-color: var(--d-color);
}

.bg-I {
    background-color: var(--i-color);
}

.bg-S {
    background-color: var(--s-color);
}

.bg-C {
    background-color: var(--c-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.communication-section {
    margin-top: 2rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
}

.comm-box {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.comm-box h3 {
    margin-top: 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .option-card {
        grid-template-columns: 1fr auto auto;
        gap: 0.5rem;
    }
}