/* プロンプト演習提出フォーム用のスタイル */

.exercise-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.exercise-selector {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.exercise-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.exercise-selector select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
}

.exercise-form-section {
    display: none;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.exercise-form-section h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.task-container {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f5f7fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.task-container h4 {
    margin-top: 0;
    color: #2c3e50;
}

.template-container {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f5f7fa;
    border-radius: 6px;
    border-left: 4px solid #9b59b6;
}

.template-container h4 {
    margin-top: 0;
    color: #2c3e50;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.btn-submit {
    padding: 12px 30px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #2980b9;
}

.btn-submit:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.status-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.status-message.info {
    background-color: #d6eaf8;
    color: #2980b9;
}

.status-message.success {
    background-color: #d4efdf;
    color: #27ae60;
}

.status-message.error {
    background-color: #f8d7da;
    color: #c0392b;
}

/* 練習用フォーム通知 */
.practice-notice {
    display: flex;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.notice-icon {
    font-size: 24px;
    color: #856404;
    margin-right: 15px;
}

.notice-content h3 {
    color: #856404;
    margin-top: 0;
    margin-bottom: 5px;
}

.notice-content p {
    margin: 0;
    color: #856404;
}

.notice-content strong {
    font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .exercise-form-container {
        padding: 15px;
    }
    
    .form-group input[type="text"],
    .form-group textarea {
        font-size: 14px;
    }
    
    .btn-submit {
        width: 100%;
    }
}
