@charset "utf-8";

/* ===========================
   事前確認フォーム用スタイル
   =========================== */

.screening-section {
  max-width: 600px;
  margin: 0 auto;
  padding: min(8vw, 40px) min(5vw, 20px) min(15vw, 60px);
}

.screening-title {
  text-align: center;
  font-size: min(5.5vw, 24px);
  color: var(--text-color);
  margin-bottom: 0.3em;
}

.screening-store-name {
  text-align: center;
  font-size: min(3.8vw, 16px);
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 0.5em;
}

.screening-lead {
  text-align: center;
  font-size: min(3.5vw, 15px);
  color: var(--light-text);
  margin-bottom: min(5vw, 24px);
}

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

.progress-fill {
  height: 100%;
  background: var(--accent-color);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  font-size: min(3vw, 13px);
  color: var(--light-text);
  margin-bottom: min(5vw, 24px);
}

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

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

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

/* 質問ラベル */
.question-label {
  font-size: min(4vw, 18px);
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: min(4vw, 20px);
  line-height: 1.6;
}

.question-note {
  display: inline-block;
  font-size: min(3vw, 13px);
  font-weight: 400;
  color: var(--light-text);
}

/* ラジオ・チェックボックスのカードUI */
.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: min(2.5vw, 12px);
  margin-bottom: min(5vw, 24px);
}

.radio-card,
.checkbox-card {
  display: block;
  cursor: pointer;
}

.radio-card input,
.checkbox-card input {
  display: none;
}

.card-body {
  display: flex;
  align-items: center;
  padding: min(3.5vw, 16px) min(4vw, 20px);
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: min(3.8vw, 16px);
  font-weight: 500;
  color: var(--text-color);
  transition: all 0.2s ease;
}

.card-body::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  margin-right: 12px;
  transition: all 0.2s ease;
  background: #fff;
}

.checkbox-card .card-body::before {
  border-radius: 4px;
}

.radio-card input:checked + .card-body,
.checkbox-card input:checked + .card-body {
  border-color: var(--accent-color);
  background: #fff5f5;
}

.radio-card input:checked + .card-body::before {
  border-color: var(--accent-color);
  background: var(--accent-color);
  box-shadow: inset 0 0 0 3px #fff;
}

.checkbox-card input:checked + .card-body::before {
  border-color: var(--accent-color);
  background: var(--accent-color);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* その他入力 */
.other-input-wrap {
  margin-bottom: min(5vw, 24px);
}

.other-label {
  display: block;
  font-size: min(3.5vw, 14px);
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.4em;
}

.other-input {
  width: 100%;
  padding: min(3vw, 12px) min(3.5vw, 14px);
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: min(3.8vw, 16px);
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
}

.other-input:focus {
  border-color: var(--accent-color);
  outline: none;
}

/* ナビゲーションボタン */
.step-nav {
  display: flex;
  gap: min(3vw, 12px);
}

.btn-next,
.btn-submit {
  display: block;
  width: 100%;
  padding: min(3.5vw, 16px);
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: min(4vw, 17px);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-next:hover,
.btn-submit:hover {
  background: #c73636;
}

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

.btn-prev {
  display: block;
  width: 40%;
  min-width: 80px;
  padding: min(3.5vw, 16px);
  background: #fff;
  color: var(--light-text);
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: min(3.5vw, 15px);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-prev:hover {
  background: #f5f5f5;
}

.step-nav .btn-next,
.step-nav .btn-submit {
  flex: 1;
}

/* 完了画面 */
.form-complete {
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.complete-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: min(18vw, 80px);
  height: min(18vw, 80px);
  background: var(--accent-color);
  color: #fff;
  border-radius: 50%;
  font-size: min(10vw, 40px);
  font-weight: 700;
  margin-bottom: min(4vw, 20px);
}

.complete-title {
  font-size: min(5vw, 22px);
  color: var(--text-color);
  margin-bottom: 0.5em;
}

.complete-lead {
  font-size: min(3.8vw, 16px);
  color: var(--text-color);
  margin-bottom: min(6vw, 30px);
  line-height: 1.8;
}

.btn-line-large {
  font-size: min(4.5vw, 20px) !important;
  padding: min(4vw, 20px) min(5vw, 30px) !important;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.complete-note {
  font-size: min(3vw, 13px);
  color: var(--light-text);
  margin-top: min(3vw, 12px);
}

/* バリデーションエラー */
.validation-error {
  color: var(--accent-color);
  font-size: min(3vw, 13px);
  margin-top: -0.8em;
  margin-bottom: 1em;
  display: none;
}

.validation-error.show {
  display: block;
}
