/* public/assets/css/style.css */

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

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

h1 {
    text-align: center;
    color: #0f172a;
    margin-bottom: 5px;
}

.subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Legend Styles */
.scale-legend {
    display: flex;
    justify-content: space-between;
    max-width: 500px;
    margin: 0 auto 40px;
    text-align: center;
    position: relative;
}

.legend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
}

.legend-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.legend-label {
    font-size: 0.8rem;
    line-height: 1.2;
    color: #334155;
    font-weight: 600;
}

/* Colors matching the reference image concept (Red -> Green) */
.color-1 {
    background-color: #fee2e2;
    border: 2px solid #ef4444;
}

/* Totally Disagree */
.color-2 {
    background-color: #ffedd5;
    border: 2px solid #f97316;
}

.color-3 {
    background-color: #f1f5f9;
    border: 2px solid #94a3b8;
}

/* Neutral */
.color-4 {
    background-color: #dcfce7;
    border: 2px solid #22c55e;
}

.color-5 {
    background-color: #d1fae5;
    border: 2px solid #10b981;
}

/* Totally Agree */


/* Question Card */
.question-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    margin-bottom: 24px;
    text-align: center;
    transition: transform 0.2s ease;
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.question-text {
    font-size: 1.2rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.options-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Custom Radio Buttons */
.option-label {
    cursor: pointer;
    position: relative;
    width: 50px;
    height: 50px;
}

.option-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    transition: all 0.2s;
    /* Default unfilled state */
    background-color: transparent;
}

/* Define borders for each option index */
.option-label:nth-child(1) .checkmark {
    border: 2px solid #ef4444;
    background-color: #fff;
}

.option-label:nth-child(2) .checkmark {
    border: 2px solid #f97316;
    background-color: #fff;
}

.option-label:nth-child(3) .checkmark {
    border: 2px solid #94a3b8;
    background-color: #fff;
}

.option-label:nth-child(4) .checkmark {
    border: 2px solid #22c55e;
    background-color: #fff;
}

.option-label:nth-child(5) .checkmark {
    border: 2px solid #10b981;
    background-color: #fff;
}

/* Checked State - Fill with color */
.option-label:nth-child(1) .option-input:checked~.checkmark {
    background-color: #fee2e2;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px #fee2e280;
}

.option-label:nth-child(2) .option-input:checked~.checkmark {
    background-color: #ffedd5;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px #ffedd580;
}

.option-label:nth-child(3) .option-input:checked~.checkmark {
    background-color: #f1f5f9;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px #f1f5f980;
}

.option-label:nth-child(4) .option-input:checked~.checkmark {
    background-color: #dcfce7;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px #dcfce780;
}

.option-label:nth-child(5) .option-input:checked~.checkmark {
    background-color: #d1fae5;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px #d1fae580;
}


/* Hover Effects */
.option-label:hover .checkmark {
    background-color: #f8fafc;
    transform: scale(1.05);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 40px;
}

/* Stepped Form Styles */
.step-container {
    display: none;
    /* Hidden by default, JS will show active */
    animation: fadeIn 0.5s;
}

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

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

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

/* Progress Bar */
.progress-wrapper {
    margin-bottom: 30px;
    background-color: #e2e8f0;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #3b82f6;
    width: 0%;
    transition: width 0.3s ease;
}

.step-indicator {
    text-align: center;
    color: #64748b;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 20px;
}

.nav-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-prev {
    background-color: #cbd5e1;
    color: #334155;
}

.btn-prev:hover {
    background-color: #94a3b8;
}

.btn-next {
    background-color: #3b82f6;
    color: white;
}

.btn-next:hover {
    background-color: #2563eb;
}

/* Hide submit button initially, handled by JS */
.submit-btn {
    display: none;
}