.lierac-counselor-container {
    max-width: 800px;
 margin: 50px auto;
    padding: 20px;
    /* font-family: 'Helvetica Neue', Arial, sans-serif; */
    /* background-color: #f8f6f3; */
    min-height: 100vh;
    direction: rtl;

}
.container {
    max-width: 100vw !important;
}
main#content {
    background: url(/images/counselor.jpg);
    background-size: auto 100%;
    background-repeat: no-repeat;
}
.question-step .main-title {
    text-align: center;
    color: #2c2c2c;
}

.counselor-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.progress-text {
    font-size: 1em;
    color: #666;
    font-weight: 400;
    text-align: center;
    margin-bottom: 15px;
}

.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.step-indicator {
    width: 50px;
    height: 4px;
    background-color: #ddd;
    border-radius: 3px;
    position: relative;
    transition: background-color 0.3s ease;
}

.step-indicator.active {
    background-color: #2c2c2c;
}

.step-indicator.completed {
    background-color: #2c2c2c;
}

.progress-text {
    font-size: 0.9em;
    color: #666;
    font-weight: 400;
    text-align: center;
    margin-bottom: 15px;
}

.question-step {
    display: none;
    margin-bottom: 30px;
    background: white;
    border-radius: 8px;
    padding: 40px 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.question-step.active {
    display: block;
}

.question-step h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c2c2c;
    font-size: 1.2em;
    font-weight: 500;
}

.intro-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.intro-content p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 20px;
}

.options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.age-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.option-card {
    border: 1px solid #ddd;
     box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
       border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
    min-height: 50px;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    font-size: 1.1em;
}

.option-card:hover {
    border-color: #2c2c2c;
    background-color: #f8f8f8;
}

.option-card input[type="radio"] {
    display: none;
}

.option-card input:checked+.option-content {
    color: white;
    font-weight: 500;
}

.option-card input:checked {
    border-color: #2c2c2c;
    background-color: #2c2c2c;
    color: white;
}

/* Modern browsers with :has() support */
.option-card:has(input:checked) {
    border-color: #2c2c2c;
    background-color: #2c2c2c;
    color: white;
}

.option-card:has(input:checked) .option-title {
    color: white;
}

/* Fallback for older browsers */
.option-card.selected {
    border-color: #2c2c2c;
    background-color: #2c2c2c;
    color: white;
}

.option-card.selected .option-title {
    color: white;
}

.option-content {
    position: relative;
    display: block;
    width: 100%;
}

.option-title {
    font-weight: 500;
    font-size: 1.1em;
    display: block;
    color: #2c2c2c;
    line-height: 1.3;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: #2c2c2c;
    color: white;
}

.btn-primary:hover {
    background-color: #1a1a1a;
}

.btn-secondary {
    background-color: transparent;
    color: #2c2c2c;
    border: 1px solid #2c2c2c;
}

.btn-secondary:hover {
    background-color: #2c2c2c;
    color: white;
}

.btn-success {
    background-color: #2c2c2c;
    color: white;
}

.btn-success:hover {
    background-color: #1a1a1a;
}

@media (max-width: 768px) {
    .lierac-counselor-container {
        padding: 20px 10px;
    }

    .counselor-header {
        padding: 30px 20px;
    }

    .question-step {
        padding: 40px 20px;
    }

    .options-grid {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .age-options {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .option-card {
        min-width: 120px;
        padding: 15px 10px;
        min-height: 60px;
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .progress-steps {
        gap: 15px;
    }

    .step-indicator {
        width: 40px;
        height: 4px;
    }
}

@media (max-width: 480px) {
    .options-grid {
        flex-direction: column;
        align-items: center;
    }

    .age-options {
        flex-direction: column;
        align-items: center;
    }

    .option-card {
        width: 100%;
        max-width: 280px;
    }

    .counselor-header h1 {
        font-size: 1.8em;
    }

    .question-step h2 {
        font-size: 1.2em;
    }
}
