/* =================================================================
   PHASE A1 CLASSIFICATION SELECT
   ================================================================= */


.classification-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    background-color: white;
    font-size: 1rem;
    color: var(--color-secondary-ligth);
    cursor: pointer;
    transition: all 0.3s;
    padding-right: 3rem;
    font-family: inherit;
}

.classification-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.2);
}

.classification-select option {
    padding: 0.5rem;
}

.dropdown-classification {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.dropdown-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #718096;
}

/* Hover effect on options */
.classification-select option:hover {
    background-color: var(--color-primary) !important;
    color: white;
}

/* =====================================
   EVALUATION FORM
===================================== */

.evaluation-form {
    margin-top: 10px;
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers content */
}

.form-content {
    width: 80%; /* Controls the width of the form content */
    max-width: 600px; /* Maximum width for large screens */
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%; /* Ensures all groups occupy the same width */
}

.form-label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--color-secondary);
    width: 100%;
}

.required-field {
    color: #e74c3c;
}

.form-input,
.form-select,
.form-textarea {
    font-family: inherit;
    width: 100%;
    min-width: 100%; /* Forces the same width */
    max-width: 100%; /* Prevents overflow */
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box; /* Includes padding in width */
}

/* Specific style for selects to match height */
.form-select {
    height: calc(0.75rem * 2 + 1em + 2px); /* Same height as inputs */
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em;
    padding: 0.5rem;
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

/* Remaining styles remain the same */
.character-counter {
    display: block;
    margin-top: 0.25rem;
    color: #7f8c8d;
    font-size: 0.875rem;
}

.hidden {
    display: none;
}

optgroup {
    font-weight: bold;
    color: #555;
    font-style: normal;
    padding: 0.5rem 0;
}

optgroup option {
    font-weight: normal;
    padding-left: 1.5rem;
}

/* =====================================
   RADIO AND CHECKBOX QUESTIONS
===================================== */

/* Styles for radio questions */
.radio-group {
    margin-bottom: 1.5rem;
}

.radio-options {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 1.75rem;
}

.radio-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-checkmark {
    position: absolute;
    left: 0;
    height: 1.2rem;
    width: 1.2rem;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    transition: all 0.3s;
}

.radio-option:hover .radio-checkmark {
    border-color: var(--color-primary);
}

.radio-option input:checked ~ .radio-checkmark {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.radio-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: white;
}

.radio-option input:checked ~ .radio-checkmark:after {
    display: block;    
}

/* Styles for checkboxes */
.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-options {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.checkbox-option {
    margin-bottom: 0.8rem;
}

.checkbox-option label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    color: var(--color-text);
}

.checkbox-option input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

/* Character counters */
.character-counter {
    display: block;
    margin-top: 0.25rem;
    color: #7f8c8d;
    font-size: 0.875rem;
}

/* Add to styles block */
.required-field {
    color: #e74c3c;
    margin-left: 0.25rem;
}

.form-textarea:required,
.form-input:required {
    border-left: 3px solid #e74c3c;
}

.form-footer {
    margin-top: 1.5rem;
    text-align: right;
}

.submit-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}