
.ai-feedback-form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ai-feedback-form h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group.error label {
    color: #dc3545;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
    background-color: #ffeaea;
}

.radio-group {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.radio-group label:hover {
    background-color: #f8f9fa;
}

.radio-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
    margin-bottom: 0;
}

.audio-recorder-section {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.audio-recorder-section p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.record-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.record-button:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.record-button.recording {
    background: #dc3545;
    animation: pulse 1.5s infinite;
}

.record-button.recording:hover {
    background: #c82333;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

.record-icon {
    font-size: 16px;
}

.recording-status {
    margin-top: 10px;
    color: #dc3545;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recording-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #dc3545;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.transcription-status {
    margin-top: 10px;
    color: #007cba;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.transcription-status::before {
    content: "⏳";
    animation: spin 2s linear infinite;
}

.transcription-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.transcription-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.transcription-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Specific styling for problem details recorder */
.problem-details-recorder {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.problem-details-recorder .record-button {
    background: #fd7e14;
}

.problem-details-recorder .record-button:hover {
    background: #e8590c;
}

.problem-details-recorder .record-button.recording {
    background: #dc3545;
}

/* Specific styling for suggestions recorder */
.suggestions-recorder {
    background: #d1ecf1;
    border-color: #bee5eb;
}

.suggestions-recorder .record-button {
    background: #17a2b8;
}

.suggestions-recorder .record-button:hover {
    background: #138496;
}

.suggestions-recorder .record-button.recording {
    background: #dc3545;
}

.submit-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #218838;
    transform: translateY(-1px);
}

.submit-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    font-weight: bold;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive design */
@media (max-width: 768px) {
    .ai-feedback-form-container {
        margin: 10px;
        padding: 15px;
    }
    
    .radio-group label {
        padding: 4px;
        font-size: 14px;
    }
    
    .audio-recorder-section {
        padding: 12px;
    }
    
    .record-button {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .submit-button {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* Animation for smooth showing/hiding of sections */
#problem-details-group {
    transition: all 0.3s ease;
}

#problem-details-group.showing {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
