/* 読者レビュー投稿フォーム */

/* フォームコンテナ */
.reader-review-form-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.reader-review-form-container h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 3px solid #00acc1;
  padding-bottom: 10px;
}

.form-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* フォームグループ */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.form-group.required label::after {
  content: "";
}

.required-mark {
  color: #e74c3c;
  font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00acc1;
  box-shadow: 0 0 0 3px rgba(0,172,193,0.1);
}

.help-text {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

.help-text.important {
  color: #e74c3c;
  font-weight: bold;
}

/* ラジオボタン */
.radio-group,
.rating-group {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.radio-group label,
.rating-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-weight: normal;
}

/* 文字カウンター */
.char-count {
  text-align: right;
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

/* 注意事項 */
.review-form-notices {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 20px;
  margin: 30px 0;
  font-size: 13px;
}

.review-form-notices h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #333;
}

.review-form-notices h5 {
  font-size: 14px;
  margin-top: 15px;
  margin-bottom: 10px;
  color: #555;
}

.review-form-notices ul {
  margin-left: 20px;
  margin-bottom: 10px;
}

.review-form-notices li {
  margin-bottom: 5px;
  line-height: 1.6;
}

.notice-section {
  margin-bottom: 15px;
}

/* 同意チェックボックス */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: normal !important;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* 送信ボタン */
.form-actions {
  text-align: center;
  margin-top: 30px;
}

.submit-btn {
  background: linear-gradient(135deg, #00acc1 0%, #0097a7 100%);
  color: #fff;
  border: none;
  padding: 15px 40px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 3px 0 #00838f;
  transition: all 0.3s;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #0097a7 0%, #00838f 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #00838f;
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 0 #00838f;
}

.submit-btn:disabled {
  background: #ccc;
  box-shadow: none;
  cursor: not-allowed;
}

.loading-spinner {
  display: inline-block;
  margin-left: 10px;
  color: #00acc1;
}

/* メッセージエリア */
.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
  text-align: center;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .reader-review-form-container {
    padding: 20px;
    margin: 20px 10px;
  }
  
  .radio-group,
  .rating-group {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .submit-btn {
    width: 100%;
  }
}
