/* React見積もりコンポーネント用CSS */

.estimate-react-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.estimate-react-container .estimate__box__item {
  margin-bottom: 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.estimate-react-container .estimate__box__title {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
}

.estimate-react-container .estimate__box__title .step-icon {
  width: 40px;
  height: 40px;
}

.estimate-react-container .estimate__box__title h3 {
  color: #333;
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}

.estimate-react-container .estimate__box__content {
  padding: 20px;
}

.estimate-react-container .estimate__box__content__row {
  margin-bottom: 20px;
}

.estimate-react-container .step1 select,
.estimate-react-container .step2 select {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  background-color: #fff;
  transition: border-color 0.3s ease;
}

.estimate-react-container .step1 select:focus,
.estimate-react-container .step2 select:focus {
  outline: none;
  border-color: #007cba;
}

.estimate-react-container .estimate__box__content__row__head {
  margin-bottom: 15px;
}

.estimate-react-container .estimate__box__content__row__head input[type="radio"] {
  margin-right: 10px;
}

.estimate-react-container .estimate__box__content__row__head label {
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

.estimate-react-container .radio-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.estimate-react-container .radio-card {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 200px;
  text-align: center;
  position: relative;
}

.estimate-react-container .radio-card:hover {
  border-color: #007cba;
  box-shadow: 0 4px 8px rgba(0, 124, 186, 0.2);
  transform: translateY(-2px);
}

.estimate-react-container .radio-card input[type="radio"] {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.estimate-react-container .radio-card input[type="radio"]:checked ~ .card-content {
  background-color: #f0f8ff;
}

.estimate-react-container .radio-card input[type="radio"]:checked ~ .card-content .card-title {
  color: #007cba;
}

.estimate-react-container .card-content {
  transition: all 0.3s ease;
}

.estimate-react-container .card-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.estimate-react-container .hot-itemname {
  display: block;
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

.estimate-react-container .card-image {
  width: 100%;
  max-width: 120px;
  height: auto;
  margin: 15px 0;
}

.estimate-react-container .price {
  font-size: 18px;
  font-weight: bold;
  color: #d32f2f;
  margin-top: 15px;
}

.estimate-react-container .estimate__box__content__row__size {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  justify-content: center;
}

.estimate-react-container .size-select {
  display: flex;
  align-items: center;
  gap: 8px;
}

.estimate-react-container .size-select select {
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  min-width: 120px;
  transition: border-color 0.3s ease;
}

.estimate-react-container .size-select select:focus {
  outline: none;
  border-color: #007cba;
}

.estimate-react-container .size-select span {
  font-weight: bold;
  color: #666;
  font-size: 16px;
}

.estimate-react-container .price-display {
  background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
  border: 3px solid #4caf50;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  margin: 30px 0;
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
}

.estimate-react-container .price-display h3 {
  color: #2e7d32;
  font-size: 28px;
  margin: 0;
  font-weight: bold;
}

.estimate-react-container .submit_button {
  text-align: center;
  margin-top: 40px;
  padding: 20px 0;
}

.estimate-react-container .submit_button__button {
  background: linear-gradient(135deg, #007cba 0%, #005a8b 100%);
  color: white;
  border: none;
  padding: 20px 40px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
}

.estimate-react-container .submit_button__button:hover {
  background: linear-gradient(135deg, #005a8b 0%, #004068 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 124, 186, 0.4);
}

.estimate-react-container .submit_button__button:active {
  transform: translateY(0);
}

.estimate-react-container .estimate__box__content__row__text {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
  font-style: italic;
  text-align: center;
}

/* Step3の各セクション */
.estimate-react-container .step3-1,
.estimate-react-container .step3-2 {
  margin-bottom: 25px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

/* アニメーション */
.estimate-react-container .estimate__box__item {
  animation: fadeInUp 0.5s ease-in-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .estimate-react-container {
    padding: 10px;
  }
  
  .estimate-react-container .radio-cards {
    flex-direction: column;
  }
  
  .estimate-react-container .radio-card {
    min-width: auto;
  }
  
  .estimate-react-container .estimate__box__content__row__size {
    flex-direction: column;
    gap: 20px;
  }
  
  .estimate-react-container .size-select {
    justify-content: center;
  }
  
  .estimate-react-container .estimate__box__title {
    padding: 15px;
  }
  
  .estimate-react-container .estimate__box__content {
    padding: 15px;
  }
  
  .estimate-react-container .price-display h3 {
    font-size: 24px;
  }
  
  .estimate-react-container .submit_button__button {
    padding: 15px 30px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .estimate-react-container .estimate__box__title {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .estimate-react-container .estimate__box__title .step-icon {
    width: 32px;
    height: 32px;
  }
  
  .estimate-react-container .card-title {
    font-size: 16px;
  }
  
  .estimate-react-container .price-display h3 {
    font-size: 20px;
  }
}

/* フォーカス時のアクセシビリティ */
.estimate-react-container input[type="radio"]:focus {
  outline: 2px solid #007cba;
  outline-offset: 2px;
}

.estimate-react-container select:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* エラーメッセージ表示用（将来的に使用） */
.estimate-react-container .error-message {
  background-color: #ffebee;
  border: 1px solid #f44336;
  border-radius: 6px;
  padding: 12px;
  color: #d32f2f;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}

/* 成功メッセージ表示用（将来的に使用） */
.estimate-react-container .success-message {
  background-color: #e8f5e8;
  border: 1px solid #4caf50;
  border-radius: 6px;
  padding: 12px;
  color: #2e7d32;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}

/* 価格表示のスタイル（JavaScript動的生成用） */
.price-display {
  margin: 20px 0;
  padding: 20px;
  background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
  border-radius: 8px;
  border: 2px solid #4caf50;
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
}

.price-display__content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.price-display__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.price-display__item:last-child {
  border-bottom: none;
}

.price-display__item.total {
  font-weight: bold;
  font-size: 1.2em;
  color: #2e7d32;
  border-top: 2px solid #4caf50;
  padding-top: 15px;
}

.price-display__label {
  font-size: 1.1em;
  color: #333;
}

.price-display__value {
  font-size: 1.2em;
  font-weight: bold;
  color: #2e7d32;
}

.price-display__item.total .price-display__value {
  font-size: 1.4em;
  color: #2e7d32;
}

@media (max-width: 768px) {
  .price-display__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .price-display__item.total {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
} 