/* 全体 */
.diagnosis-wrapper {
  max-width: 700px;
  margin: 40px auto;
}

.diagnosis-container {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* プログレスバー */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  width: 20%;
  transition: width 0.4s ease;
}

.progress-text {
  text-align: right;
  font-size: 14px;
  color: #888;
  margin-bottom: 30px;
}

/* 質問 */
.question {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #333;
}

/* 回答ボタン */
.answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.answer-btn {
  padding: 18px 24px;
  font-size: 16px;
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.answer-btn:hover {
  background: #667eea;
  color: #fff;
  border-color: #667eea;
  transform: translateX(8px);
}

/* 結果 */
.result-box {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  color: #fff;
  margin-bottom: 30px;
}

.result-label {
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.result-title {
  font-size: 32px;
  margin-bottom: 20px;
}

.result-description {
  font-size: 16px;
  line-height: 1.8;
}

/* メールフォーム */
.email-form-box {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.email-form-box h3 {
  margin-bottom: 20px;
  font-size: 18px;
}

.email-form-box input[type="text"],
.email-form-box input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

.email-form-box input:focus {
  outline: none;
  border-color: #667eea;
}

#submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s;
}

#submit-btn:hover {
  opacity: 0.9;
}

#submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#form-message {
  margin-top: 15px;
  font-size: 14px;
}

.success {
  color: #28a745;
}

.error {
  color: #dc3545;
}

/* やり直しボタン */
.restart-btn {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 2px solid #667eea;
  color: #667eea;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.restart-btn:hover {
  background: #667eea;
  color: #fff;
}

/* レスポンシブ */
@media (max-width: 600px) {
  .diagnosis-container {
    padding: 24px;
  }
  
  .question {
    font-size: 18px;
  }
  
  .result-title {
    font-size: 26px;
  }
}