/* ===== STELLARデザイン - ラベンダー×パープル×ティールグラデーション ===== */

/* 全体背景・フォント */
body {
  background: linear-gradient(135deg, #d4c5f0 0%, #e8c8e0 35%, #c8d8f0 70%, #b8e0e8 100%);
  min-height: 100vh;
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', sans-serif;
  color: #2d1b69;
  margin: 0;
  padding: 20px 0 40px;
}

/* フォームカード */
.registration-form {
  max-width: 580px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(100, 60, 180, 0.25), 0 2px 12px rgba(80, 40, 160, 0.15);
}

/* タイトルエリア（グラデーションヘッダー） */
.form-top {
  background: linear-gradient(135deg, #3a1a7a 0%, #5b2d9e 40%, #2a6080 80%, #1a8090 100%);
  padding: 32px 36px 28px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.form-top::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.form-top h3.text-break {
  color: #ffffff !important;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px 0;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.form-top p.text-break {
  color: rgba(255,255,255,0.88) !important;
  font-size: 14px;
  margin: 0;
  line-height: 1.7;
}

/* プレビューラベル非表示 */
.text-danger { display: none !important; }

/* フォーム本体エリア */
.form-bottom {
  background: rgba(255, 255, 255, 0.92);
  padding: 36px 36px 32px;
  backdrop-filter: blur(8px);
}

/* フォームエディター */
.form-editor {
  padding: 0;
}

/* 質問グループ */
.form-group {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* ===== 質問ラベルと選択肢：縦並びレイアウト ===== */

.form-text {
  display: block;
}

/* 質問ラベル：上段に全幅表示 */
.control-label.col-sm-4 {
  float: none !important;
  display: block !important;
  width: 100% !important;
  max-width: 100%;
  font-size: 15px;
  font-weight: 700;
  color: #3a1a7a;
  line-height: 1.6;
  padding: 0 0 12px 0 !important;
  margin-bottom: 12px;
  border-bottom: 2px solid #d4c5f0;
}

/* 選択肢列：下段に全幅表示 */
.col-sm-8 {
  float: none !important;
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
}

/* ラジオボタンコンテナ */
.radios {
  margin: 0;
}

/* 各ラジオボタン行 */
.radio {
  padding: 0;
  margin: 7px 0;
  border-radius: 10px;
  border: 1.5px solid #d4c5f0;
  background: linear-gradient(135deg, #f5f0ff 0%, #fdf0f8 100%);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.radio:hover {
  border-color: #7b4fcf;
  background: linear-gradient(135deg, #ede0ff 0%, #fce0f5 100%);
  box-shadow: 0 2px 10px rgba(123, 79, 207, 0.2);
}

/* 選択中の行をハイライト */
.radio:has(input[type=radio]:checked) {
  border-color: #5b2d9e;
  background: linear-gradient(135deg, #e0d0ff 0%, #f5d0ee 100%);
  box-shadow: 0 2px 12px rgba(91, 45, 158, 0.25);
}

/* ===== ラジオボタンとテキストの縦揃え ===== */

/* labelをflexboxにして縦揃え */
.radio label.text-break,
.radio label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #4a3080;
  cursor: pointer;
  margin: 0;
  padding: 11px 16px !important;
  font-weight: 500;
  line-height: 1.5;
}

.radio:has(input[type=radio]:checked) label.text-break,
.radio:has(input[type=radio]:checked) label {
  color: #3a1a7a;
  font-weight: 700;
}

/* ラジオボタン本体：マージンリセット＋サイズ固定 */
.radio input[type=radio] {
  flex-shrink: 0;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  cursor: pointer;
  accent-color: #7b4fcf;
}

/* 「必須」バッジ非表示 */
span.label.label-danger { display: none !important; }

/* 「選択しない」非表示 */
input[value=""][name^="radio"],
label[for$="_none"],
.radio:has(input[value=""]) {
  display: none !important;
}

/* ボタンエリア */
.row .col-xs-12 {
  padding: 0;
}

/* 送信ボタン */
.btn.btn-primary {
  background: linear-gradient(135deg, #3a1a7a 0%, #7b4fcf 50%, #2a7090 100%) !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: 10px;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 18px rgba(123, 79, 207, 0.45);
  transition: opacity 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
  display: block;
  width: 100%;
  margin-top: 28px;
}

.btn.btn-primary:hover {
  opacity: 0.92;
  box-shadow: 0 6px 24px rgba(123, 79, 207, 0.6);
  transform: translateY(-1px);
}

.btn.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(123, 79, 207, 0.4);
}