/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Options Container */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.option-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.option-input input[type="radio"] {
    width: auto;
    margin: 0;
}

.option-input input[type="text"] {
    flex: 1;
    margin: 0;
}

/* Eval Container */
.eval-container {
    margin-top: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 12px;
    border: 2px solid #bbdefb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.eval-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #bbdefb;
}

.eval-header h4 {
    color: #1565c0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.eval-instruction {
    color: #1976d2;
    font-size: 0.9rem;
    margin: 0;
}

.eval-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.eval-option {
    background: white;
    border: 2px solid #e1f5fe;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.eval-option:hover {
    border-color: #81d4fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.eval-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.eval-number {
    background: #2196f3;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.eval-toggle {
    position: relative;
    display: inline-block;
}

.eval-toggle input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.eval-toggle-label {
    display: block;
    width: 60px;
    height: 30px;
    background: #dc3545;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.eval-toggle-label::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.eval-toggle input:checked + .eval-toggle-label {
    background: #28a745;
}

.eval-toggle input:checked + .eval-toggle-label::before {
    transform: translateX(30px);
}

.eval-toggle-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.eval-toggle-text:first-child {
    left: 8px;
}

.eval-toggle-text:last-child {
    right: 8px;
}

.eval-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1f5fe;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.eval-input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.eval-preview {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.eval-preview h5 {
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.eval-preview-result {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
    background: white;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    text-align: center;
}

/* Fill Blank Container */
.fill-blank-container {
    margin-top: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-radius: 12px;
    border: 2px solid #c3e6c3;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.fill-blank-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #c3e6c3;
}

.fill-blank-header h4 {
    color: #2d5a2d;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.fill-blank-instruction {
    color: #4a7c4a;
    font-size: 0.9rem;
    margin: 0;
}

.fill-blank-answers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.answer-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.answer-input-group label {
    font-weight: 600;
    color: #2d5a2d;
    font-size: 0.9rem;
}

.fill-input {
    padding: 0.75rem;
    border: 2px solid #c3e6c3;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.fill-input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.fill-input::placeholder {
    color: #6c757d;
    font-style: italic;
}

.fill-blank-note {
    background: #d4edda;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.fill-blank-note small {
    color: #155724;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Mobile Responsive for Forms */
@media (max-width: 768px) {
    .eval-option-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .fill-blank-answers {
        gap: 0.75rem;
    }
}
