/* ============================================
   Easiverse Japan - Form Stylesheet
   White & Clean Design
============================================ */

body.form-page {
  background: #f5f8ff;
  min-height: 100vh;
}

/* ---- FORM HEADER ---- */
.form-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e5e9f2;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.form-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  max-width: 900px;
  margin: 0 auto;
}
.form-back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #1a6fff;
  transition: opacity 0.2s;
}
.form-back-link:hover { opacity: 0.7; }
.form-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}
.form-header-right { width: 80px; }

/* ---- STEP INDICATOR ---- */
.step-indicator-wrap {
  padding-top: 80px;
  padding-bottom: 0;
  position: relative;
  z-index: 2;
}
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 28px 24px 0;
  max-width: 500px;
  margin: 0 auto;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.step-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid #d1d9f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #9ca3af;
  background: #fff;
  transition: all 0.4s ease;
}
.step-item.active .step-circle {
  border-color: #1a6fff;
  color: #fff;
  background: linear-gradient(135deg, #0d4fa8, #1a6fff);
  box-shadow: 0 4px 16px rgba(26,111,255,0.3);
}
.step-item.done .step-circle {
  border-color: #00b4d8;
  color: #00b4d8;
  background: #e0f7fc;
}
.step-label {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: #9ca3af;
  font-weight: 700;
}
.step-item.active .step-label { color: #1a6fff; }
.step-item.done .step-label { color: #00b4d8; }
.step-line {
  flex: 1;
  height: 2px;
  background: #e5e9f2;
  margin: 0 8px;
  margin-bottom: 22px;
  min-width: 50px;
  max-width: 100px;
  transition: background 0.4s ease;
  position: relative;
  overflow: hidden;
}
.step-line.done {
  background: #ccd8ff;
}
.step-line.done::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #1a6fff, #00b4d8);
  animation: line-fill 0.5s ease forwards;
}
@keyframes line-fill {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}

/* ---- FORM MAIN ---- */
.form-main {
  position: relative;
  z-index: 2;
  padding: 40px 24px 80px;
}
.form-container {
  max-width: 720px;
  margin: 0 auto;
}

/* ---- FORM STEP ---- */
.form-step { animation: step-fadein 0.5s ease; }
@keyframes step-fadein {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-step-header {
  text-align: center;
  margin-bottom: 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid #e5e9f2;
}
.step-badge {
  display: inline-block;
  padding: 4px 16px;
  background: #e8f0ff;
  border: 1px solid #a8c8ff;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #1a6fff;
  margin-bottom: 14px;
}
.form-step-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 900;
  margin-bottom: 10px;
  color: #111827;
}
.form-step-desc {
  font-size: 0.86rem;
  color: #6b7280;
  line-height: 1.75;
}

/* ---- FORM GROUPS ---- */
.form-group {
  margin-bottom: 28px;
}
.form-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #374151;
  margin-bottom: 9px;
}
.form-label i { color: #1a6fff; font-size: 0.82rem; }
.required-label::after {
  content: '必須';
  display: inline-block;
  padding: 2px 8px;
  background: #fff0f0;
  border: 1px solid #ffbdbd;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e05555;
  margin-left: 6px;
}

/* name row */
.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { position: relative; }
.field-hint {
  position: absolute;
  top: -18px;
  left: 2px;
  font-size: 0.66rem;
  color: #9ca3af;
  letter-spacing: 0.04em;
}

/* ---- INPUTS ---- */
.form-input,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  background: #fff;
  border: 1.5px solid #d1d9f0;
  border-radius: 12px;
  color: #111827;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: #c0c9dc; }
.form-input:focus,
.form-textarea:focus {
  border-color: #1a6fff;
  background: #fafcff;
  box-shadow: 0 0 0 3px rgba(26,111,255,0.12);
}
.form-input.error,
.form-textarea.error {
  border-color: #e05555;
  box-shadow: 0 0 0 3px rgba(224,85,85,0.1);
}
.form-input[type="date"] { color-scheme: light; }

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.7;
}
.char-count {
  text-align: right;
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 5px;
}

.form-hint {
  font-size: 0.74rem;
  color: #9ca3af;
  margin-top: 7px;
  display: flex;
  align-items: flex-start;
  gap: 3px;
}
.form-hint::before { content: '※'; flex-shrink: 0; }

.error-msg {
  display: block;
  font-size: 0.74rem;
  color: #e05555;
  margin-top: 5px;
  min-height: 1em;
}

/* ---- POSTAL ---- */
.postal-field {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.postal-input { flex: 1; }
.postal-btn {
  padding: 0 18px;
  background: #e8f0ff;
  border: 1.5px solid #a8c8ff;
  border-radius: 12px;
  color: #1a6fff;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.25s;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
}
.postal-btn:hover {
  background: #d0e4ff;
  border-color: #1a6fff;
}

/* ---- RADIO CARDS ---- */
.radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.radio-group.vertical {
  flex-direction: column;
  gap: 8px;
}
.radio-card { cursor: pointer; }
.radio-card input[type="radio"] { display: none; }
.radio-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: #fff;
  border: 1.5px solid #d1d9f0;
  border-radius: 12px;
  font-size: 0.86rem;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}
.radio-card.wide .radio-box { width: 100%; }
.radio-card input:checked + .radio-box {
  border-color: #1a6fff;
  background: #e8f0ff;
  color: #1a6fff;
  box-shadow: 0 2px 10px rgba(26,111,255,0.12);
}
.radio-card input:checked + .radio-box i { color: #00b4d8; }
.radio-box i { color: #9ca3af; font-size: 0.88rem; transition: color 0.25s; }
.radio-box:hover {
  border-color: #a8c8ff;
  background: #f5f9ff;
}

/* ---- FILE UPLOAD ---- */
.file-upload-area {
  position: relative;
  border: 2px dashed #c0d0f0;
  border-radius: 16px;
  background: #f8faff;
  transition: all 0.25s;
  overflow: hidden;
  cursor: pointer;
}
.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: #1a6fff;
  background: #edf3ff;
  box-shadow: 0 4px 20px rgba(26,111,255,0.1);
}
.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.file-upload-inner {
  padding: 36px 24px;
  text-align: center;
  pointer-events: none;
}
.file-upload-icon {
  font-size: 2.4rem;
  color: #1a6fff;
  margin-bottom: 10px;
  display: block;
  opacity: 0.7;
}
.file-upload-text {
  font-size: 0.88rem;
  color: #374151;
  margin-bottom: 5px;
}
.file-upload-hint {
  font-size: 0.73rem;
  color: #9ca3af;
}
.file-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  background: #e8f0ff;
  border-top: 1px solid #c0d0f0;
}
.file-selected i { color: #1a6fff; font-size: 1.1rem; }
.file-selected span { flex: 1; font-size: 0.86rem; color: #374151; word-break: break-all; }
.file-remove-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ffbdbd;
  color: #e05555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.25s;
  flex-shrink: 0;
}
.file-remove-btn:hover { background: #fff0f0; }

/* ---- CHECKBOX ---- */
.checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.checkbox-card input[type="checkbox"] { display: none; }
.checkbox-box {
  width: 22px; height: 22px;
  border: 2px solid #d1d9f0;
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s;
  margin-top: 1px;
}
.check-icon { font-size: 0.68rem; color: #fff; display: none; }
.checkbox-card input:checked + .checkbox-box {
  border-color: #1a6fff;
  background: #1a6fff;
}
.checkbox-card input:checked + .checkbox-box .check-icon { display: block; }
.checkbox-text {
  font-size: 0.86rem;
  color: #374151;
  line-height: 1.7;
}
.link-blue {
  color: #1a6fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- FORM ACTIONS ---- */
.form-actions {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  gap: 16px;
}
.form-actions.two-buttons { justify-content: center; }

.submit-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  background: none;
  font-family: 'Noto Sans JP', sans-serif;
}
.btn-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 46px;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #1a6fff 0%, #00b4d8 100%);
  border-radius: 100px;
  color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 6px 24px rgba(26,111,255,0.3);
}
.submit-btn:hover .btn-inner {
  transform: scale(1.04);
  box-shadow: 0 10px 36px rgba(26,111,255,0.44);
}
.btn-glow { display: none; }

.back-btn {
  padding: 16px 30px;
  background: #fff;
  border: 1.5px solid #d1d9f0;
  border-radius: 100px;
  color: #374151;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  transition: all 0.25s;
}
.back-btn:hover {
  border-color: #1a6fff;
  color: #1a6fff;
  background: #f0f4ff;
}

/* ---- CONFIRM TABLE ---- */
.confirm-table {
  background: #fff;
  border: 1px solid #e5e9f2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  margin-bottom: 16px;
}
.confirm-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid #f3f4f6;
}
.confirm-row:last-child { border-bottom: none; }
.confirm-key {
  padding: 15px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a6fff;
  background: #f5f8ff;
  display: flex;
  align-items: center;
}
.confirm-val {
  padding: 15px 18px;
  font-size: 0.88rem;
  color: #374151;
  word-break: break-all;
  line-height: 1.7;
}

/* ---- COMPLETE SCREEN ---- */
.complete-screen {
  text-align: center;
  padding: 40px 0;
}
.complete-vortex {
  position: relative;
  width: 150px; height: 150px;
  margin: 0 auto 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.complete-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(26,111,255,0.15);
  animation: complete-spin linear infinite;
}
.complete-ring.r1 { width: 100%; height: 100%; animation-duration: 8s; }
.complete-ring.r2 { width: 80%; height: 80%; animation-duration: 12s; animation-direction: reverse; border-color: rgba(0,180,216,0.15); }
.complete-ring.r3 { width: 60%; height: 60%; animation-duration: 6s; border-color: rgba(26,111,255,0.1); }
@keyframes complete-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.complete-icon {
  font-size: 3.2rem;
  color: #1a6fff;
  animation: icon-pop 0.6s cubic-bezier(0.34,1.56,0.64,1) forwards;
  position: relative;
  z-index: 2;
}
@keyframes icon-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.complete-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 8px;
  color: #111827;
}
.complete-subtitle {
  font-size: 1rem;
  color: #1a6fff;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}
.complete-message {
  background: #f5f8ff;
  border: 1px solid #d6e4ff;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 28px;
  text-align: left;
}
.complete-message p {
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.9;
}
.complete-message strong { color: #111827; }
.complete-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.back-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  background: #fff;
  border: 1.5px solid #d1d9f0;
  border-radius: 100px;
  color: #374151;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.25s;
}
.back-top-btn:hover {
  border-color: #1a6fff;
  color: #1a6fff;
  background: #f0f4ff;
}

/* ---- FOOTER on form page ---- */
.form-footer {
  margin-top: 40px;
  background: #fff;
  border-top: 1px solid #e5e9f2;
  padding: 32px 0;
}
.form-footer .footer-copy,
.form-footer .footer-note {
  color: #9ca3af;
  text-align: center;
  font-size: 0.76rem;
}
.form-footer .footer-note { margin-top: 6px; font-size: 0.7rem; }

/* ---- 任意タグ ---- */
.optional-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #16a34a;
  margin-left: 6px;
}

/* ---- メディアヒント ---- */
.media-hint {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 14px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  font-size: 0.82rem;
  color: #0369a1;
  line-height: 1.7;
  margin-bottom: 12px;
}
.media-hint i { color: #0284c7; flex-shrink: 0; margin-top: 3px; }

/* ---- 音楽素材 任意ノート ---- */
.media-optional-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #93c5fd;
  border-left: 4px solid #3b82f6;
  border-radius: 10px;
  font-size: 0.83rem;
  color: #1e40af;
  line-height: 1.75;
  margin-bottom: 14px;
}
.media-optional-note i { color: #3b82f6; flex-shrink: 0; margin-top: 3px; font-size: 0.9rem; }
.media-optional-note strong { color: #1d4ed8; font-weight: 700; }

/* ---- LINE 誘導ブロック ---- */
.line-cta-block {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: linear-gradient(135deg, #e8f5e9 0%, #f0fff4 100%);
  border: 2px solid #4ade80;
  border-radius: 20px;
  padding: 24px 28px;
  margin: 28px 0;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.line-cta-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #06c755, #00e676);
}
.line-cta-icon {
  font-size: 2.4rem;
  color: #06c755;
  flex-shrink: 0;
  margin-top: 2px;
}
.line-cta-body {
  flex: 1;
}
.line-cta-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #111827;
  margin-bottom: 8px;
}
.line-cta-desc {
  font-size: 0.88rem;
  color: #374151;
  line-height: 1.85;
  margin-bottom: 16px;
}
.line-cta-desc strong { color: #111827; }
.line-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  background: #06c755;
  border-radius: 100px;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(6,199,85,0.35);
}
.line-add-btn:hover {
  background: #05b04c;
  transform: scale(1.04);
  box-shadow: 0 8px 28px rgba(6,199,85,0.48);
}
.line-add-btn i { font-size: 1.1rem; }
.line-cta-note {
  margin-top: 10px;
  font-size: 0.74rem;
  color: #6b7280;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .form-header-inner { padding: 10px 16px; }
  .form-main { padding: 28px 14px 60px; }
  .name-row { grid-template-columns: 1fr; gap: 22px; }
  .radio-group { flex-direction: column; }
  .radio-box { white-space: normal; }
  .confirm-row { grid-template-columns: 1fr; }
  .confirm-key { border-bottom: 1px solid #f3f4f6; padding: 9px 14px; }
  .confirm-val { padding: 9px 14px; }
  .form-actions.two-buttons { flex-direction: column-reverse; align-items: stretch; }
  .back-btn { text-align: center; justify-content: center; }
  .btn-inner { padding: 15px 28px; }
  .line-cta-block { flex-direction: column; gap: 12px; padding: 20px 18px; }
  .line-cta-icon { font-size: 2rem; }
  .line-add-btn { width: 100%; justify-content: center; }
}
