:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --success-color: #4cc9f0;
    --warning-color: #f72585;
    --info-color: #480ca8;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    background-color: #f5f7ff;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.assessment-container {
    max-width: 900px;
    margin: 0 auto;
}

.assessment-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

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

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

.assessment-section.active {
    display: block;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card-header {
    background-color: white;
    border-bottom: none;
    padding: 25px 25px 0;
    border-radius: 15px 15px 0 0 !important;
}

.card-body {
    padding: 25px;
}

.form-check {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.form-check:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-check.selected {
    border-color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.05);
}

.form-check-input {
    margin-right: 10px;
}

.form-check-label {
    font-weight: 500;
    width: 100%;
    padding-left: 15px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}

.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg,
            var(--primary-color),
            var(--secondary-color));
    transition: width 0.6s ease;
}

.btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.btn-outline-secondary {
    color: var(--dark-color);
    border-color: #ced4da;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: var(--dark-color);
    transform: translateY(-2px);
}

.section-title {
    color: var(--dark-color);
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg,
            var(--primary-color),
            var(--secondary-color));
    border-radius: 10px;
}

.question-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
}

.question-text {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.emoji-rating {
    margin-bottom: 15px;
}

.emoji-option {
    font-size: 32px;
    margin: 0 10px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.emoji-option:hover,
.emoji-option.active {
    opacity: 1;
    transform: scale(1.2);
}

.navigation-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.navigation-controls-single {
    display: flex;
    justify-content: end;
    margin-top: 40px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.step {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.step.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.step.completed {
    background-color: var(--success-color);
    color: white;
}

.step-line {
    height: 3px;
    flex-grow: 1;
    background-color: #e9ecef;
    align-self: center;
    margin: 0 5px;
}

.step-line.active {
    background-color: var(--success-color);
}

.animated-check {
    margin-bottom: 30px;
}

.result-card {
    border-radius: 15px;
    margin-bottom: 20px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: white;
    border-left: 5px solid var(--primary-color);
}

.result-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.feedback-emoji {
    font-size: 28px;
    margin-right: 10px;
}

.options-container {
    position: relative;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.visual-slider {
    position: relative;
    height: 60px;
    margin: 30px 0;
    background-color: #f8f9fa;
    border-radius: 30px;
    padding: 5px;
}

.slider-option {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25%;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.slider-option:nth-child(1) {
    left: 0;
}

.slider-option:nth-child(2) {
    left: 25%;
}

.slider-option:nth-child(3) {
    left: 50%;
}

.slider-option:nth-child(4) {
    left: 75%;
}

.slider-option.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.visual-scale {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
}

.scale-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scale-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #e9ecef;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.scale-point.active .scale-marker {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

.scale-label {
    font-size: 12px;
    text-align: center;
    color: #6c757d;
}

.scale-point.active .scale-label {
    color: var(--primary-color);
    font-weight: 600;
}

.toggle-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.toggle-option:hover {
    transform: translateX(5px);
}

.toggle-option.active {
    border-color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.05);
}

.toggle-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ced4da;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.3s ease;
}

.toggle-option.active .toggle-check {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.feedback {
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
    display: none;
}

.feedback.show {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.feedback-positive {
    background-color: rgba(72, 187, 120, 0.1);
    border: 1px solid rgba(72, 187, 120, 0.2);
    color: #2f855a;
}

.feedback-negative {
    background-color: rgba(245, 101, 101, 0.1);
    border: 1px solid rgba(245, 101, 101, 0.2);
    color: #c53030;
}

.avatar-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.avatar-bubble {
    display: none;
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    position: absolute;
    bottom: 70px;
    right: 0;
    animation: fadeIn 0.5s;
}

.avatar-bubble.show {
    display: block;
}

.avatar-bubble:after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.avatar-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    transition: transform 0.3s ease;
}

.avatar-icon:hover {
    transform: scale(1.1);
}

.reward-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

.reward-animation.show {
    display: block;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    opacity: 0.8;
    animation: confetti-fall 4s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.radio-tile-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.radio-tile-container {
    position: relative;
    width: 180px;
}

.radio-tile-input {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.radio-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s ease;
    background-color: white;
}

.radio-tile-input:checked+.radio-tile {
    border-color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.05);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.1);
    transform: translateY(-5px);
}

.radio-tile-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: #6c757d;
    transition: color 0.3s ease;
}

.radio-tile-input:checked+.radio-tile .radio-tile-icon {
    color: var(--primary-color);
}

.radio-tile-label {
    color: #6c757d;
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
}

.radio-tile-input:checked+.radio-tile .radio-tile-label {
    color: var(--primary-color);
    font-weight: 600;
}