@charset "UTF-8";

/* フォーム全体 */
.trial-form {
    margin-top: -24px;
  /* background-color: #f8f8f8;
  padding: 40px 20px; */
  position: relative;
  z-index: 3;
}

.trial-form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* ステップインジケーター */
.step-indicator {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #E74545;
}

.step-text {
  font-size: clamp(16px, 4vw, 18px);
  font-weight: 700;
  color: #333333;
}

.current-step {
  color: #E74545;
  font-size: clamp(20px, 5vw, 24px);
}

/* フォームステップ */
.form-step {
  display: none;
  -webkit-animation: fadeIn 0.5s ease;
  animation: fadeIn 0.5s ease;
}

.form-step.active {
  display: block;
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(10px);
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(10px);
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

/* フォームタイトル */
.form-head{
font-size: clamp(16px, 4vw, 20px);
font-weight: 700;
line-height: 1.5;
text-align: center;
}
.form-head .large{
  font-size: clamp(22px, 4vw, 25px);
}

.form-title {
  font-size: clamp(16px, 3vw, 18px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.6;
}

.form-subtitle {
  font-size: clamp(14px, 3.5vw, 16px);
  color: #666666;
  text-align: center;
  margin-bottom: 30px;
}

/* チェックボックスグループ */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}

.checkbox-label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 10px 5px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  background-color: #fff;
}

.checkbox-label:hover {
  border-color: #E74545;
  background-color: #fffbf0;
}

.checkbox-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-right: 5px;
  cursor: pointer;
  accent-color: #E74545;
}

.checkbox-label input[type="checkbox"]:checked + span {
  font-weight: 700;
  color: #E74545;
}

.checkbox-label span {
  font-size: clamp(12px, 2vw, 13px);
  color: #333333;
  line-height: 1.5;
}

/* ラジオボタングループ */
.radio-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.radio-label {
  display: block;
  padding: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  background-color: #fff;
  position: relative;
}

.radio-label:hover {
  border-color: #E74545;
  background-color: #fffbf0;
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-label input[type="radio"]:checked ~ .radio-content {
  color: #E74545;
}

.radio-label input[type="radio"]:checked ~ .radio-content .radio-title {
  font-weight: 700;
}

.radio-label:has(input[type="radio"]:checked) {
  border-color: #E74545;
  background-color: #fffbf0;
}

.radio-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 5px;
}

.radio-title {
  font-size: clamp(15px, 3.75vw, 16px);
  font-weight: 500;
  color: #333333;
  margin-bottom: 5px;
}

.radio-detail {
  font-size: clamp(12px, 3vw, 13px);
  color: #666666;
}

/* 日付選択グループ */
.date-selection-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.date-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 8px;
}

.date-label {
  font-size: clamp(15px, 3.75vw, 16px);
  font-weight: 700;
  color: #333333;
}

.required-badge {
  color: #E74545;
  font-size: clamp(13px, 3.25vw, 14px);
  margin-left: 5px;
}

.optional-badge {
  color: #999999;
  font-size: clamp(13px, 3.25vw, 14px);
  margin-left: 5px;
}

.date-inputs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
}

.date-input{
    max-width: 40%;
}
.date-input,
.time-select {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  padding: 8px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: clamp(14px, 3.5vw, 15px);
  -webkit-transition: border-color 0.3s ease;
  transition: border-color 0.3s ease;
  width: 100%;
}


.date-input:focus,
.time-select:focus {
  outline: none;
  border-color: #E74545;
}

/* 入力グループ */
.input-group {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  font-size: clamp(15px, 3.75vw, 16px);
  font-weight: 700;
  color: #333333;
  margin-bottom: 8px;
}

.text-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: clamp(14px, 3.5vw, 15px);
  -webkit-transition: border-color 0.3s ease;
  transition: border-color 0.3s ease;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.text-input:focus {
  outline: none;
  border-color: #E74545;
}

/* 確認画面 */
.confirmation-content {
  background-color: #f8f8f8;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.confirm-item {
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
}

.confirm-item:last-child {
  border-bottom: none;
}

.confirm-label {
  font-size: clamp(13px, 3.25vw, 14px);
  color: #666666;
  margin-bottom: 5px;
}

.confirm-value {
  font-size: clamp(15px, 3.75vw, 16px);
  font-weight: 500;
  color: #333333;
  line-height: 1.6;
}

/* エラーメッセージ */
.error-message {
  color: #E74545;
  font-size: clamp(13px, 3.25vw, 14px);
  min-height: 20px;
  text-align: center;
  font-weight: 500;
}

/* ボタングループ */
.button-group {
    margin-top: 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 15px;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.btn-prev,
.btn-next,
.btn-submit {
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: clamp(15px, 3.75vw, 16px);
  font-weight: 700;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  min-width: 140px;
}

.btn-prev {
  background-color: #fff;
  color: #666666;
  border: 2px solid #e0e0e0;
}

.btn-prev:hover {
  background-color: #f8f8f8;
  border-color: #cccccc;
}

.btn-next,
.btn-submit {
  background-color: #E74545;
  color: #fff;
}

.btn-next:hover,
.btn-submit:hover {
  background-color: #d63939;
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  -webkit-box-shadow: 0 4px 12px rgba(231, 69, 69, 0.4);
  box-shadow: 0 4px 12px rgba(231, 69, 69, 0.4);
}

/* ローディング */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #E74545;
  border-radius: 50%;
  -webkit-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.loading-overlay p {
  color: #fff;
  font-size: clamp(16px, 4vw, 18px);
  font-weight: 700;
}

