/* =============================================================
   SHISEILABO Core — 相談の流れモーダル
   ============================================================= */

.slabo-flow {
	position: fixed;
	inset: 0;
	z-index: 9998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.slabo-flow[hidden] { display: none; }

.slabo-flow__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 17, 21, .55);
	backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity .3s ease;
}
.slabo-flow.is-open .slabo-flow__overlay { opacity: 1; }

.slabo-flow__card {
	position: relative;
	width: 100%;
	max-width: 500px;
	background: #fff;
	border-radius: 18px;
	padding: 34px 32px 28px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
	transform: translateY(20px) scale(.96);
	opacity: 0;
	transition: transform .4s cubic-bezier(.16,1,.3,1), opacity .4s;
}
.slabo-flow.is-open .slabo-flow__card { transform: none; opacity: 1; }

.slabo-flow__x {
	position: absolute;
	top: 10px;
	right: 14px;
	width: 34px;
	height: 34px;
	border: 0;
	background: none;
	font-size: 26px;
	line-height: 1;
	color: #b0b4b8;
	cursor: pointer;
}
.slabo-flow__x:hover { color: #1a1a1a; }

.slabo-flow__heading {
	text-align: center;
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 18px;
	color: #1a1a1a;
}

/* --- 進捗ドット --- */
.slabo-flow__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 22px;
}
.slabo-flow__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #e0e0e0;
	transition: background .2s, transform .2s;
}
.slabo-flow__dot.is-active { background: #4B0082; transform: scale(1.25); }
.slabo-flow__dot.is-done { background: #b39ddb; }

/* --- ステップ --- */
.slabo-flow__viewport { min-height: 190px; }
.slabo-flow__step[hidden] { display: none; }
.slabo-flow__step { animation: slaboFlowIn .35s cubic-bezier(.16,1,.3,1) both; }
@keyframes slaboFlowIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

.slabo-flow__label {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	color: #fff;
	background: #4B0082;
	padding: 5px 14px;
	border-radius: 999px;
	margin-bottom: 12px;
}
.slabo-flow__actor {
	font-size: 17px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 10px;
}
.slabo-flow__text {
	font-size: 14px;
	line-height: 1.9;
	color: #555;
	margin: 0;
	max-height: 220px;
	overflow-y: auto;
}

/* --- ナビ --- */
.slabo-flow__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 22px;
}
.slabo-flow__count { font-size: 13px; color: #9aa0a6; flex: none; }
.slabo-flow__btn {
	border: 0;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	padding: 11px 24px;
	cursor: pointer;
	text-decoration: none;
	transition: filter .2s, transform .2s, background .2s, color .2s;
}
.slabo-flow__btn--next { background: #4B0082; color: #fff; }
.slabo-flow__btn--next:hover { filter: brightness(1.12); transform: translateY(-1px); color: #fff; }
.slabo-flow__btn--ghost { background: #f0f1f3; color: #555; }
.slabo-flow__btn--ghost:hover { background: #e4e6e9; }
.slabo-flow__btn--ghost:disabled { opacity: .5; cursor: default; }

/* --- 最終CTA --- */
.slabo-flow__cta[hidden] { display: none; }
.slabo-flow__cta { text-align: center; margin-top: 18px; }
.slabo-flow__btn--primary {
	display: block;
	width: 100%;
	background: var(--slabo-accent, #0bb4aa);
	color: #fff;
	padding: 14px;
	box-sizing: border-box;
}
.slabo-flow__btn--primary:hover { filter: brightness(1.08); transform: translateY(-2px); color: #fff; }
.slabo-flow__pagelink {
	display: inline-block;
	margin-top: 12px;
	font-size: 12.5px;
	color: #9aa0a6;
	text-decoration: underline;
}
.slabo-flow__pagelink:hover { color: #4B0082; }

/* --- フォーム（フェーズB） --- */
.slabo-flow__form[hidden] { display: none; }
.slabo-flow__fstep[hidden] { display: none; }
.slabo-flow__fstep { animation: slaboFlowIn .35s cubic-bezier(.16,1,.3,1) both; }

.slabo-flow__back {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	margin: 0 auto 14px 0;
	padding: 4px 8px 4px 0;
	background: none;
	border: 0;
	color: #9aa0a6;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
}
.slabo-flow__back:hover { color: #555; }

.slabo-flow__field { text-align: left; margin: 0 0 16px; }
.slabo-flow__field label { display: block; font-size: 12.5px; font-weight: 700; color: #555; margin-bottom: 6px; }
.slabo-flow__field input,
.slabo-flow__field select,
.slabo-flow__field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid #dcdcde;
	border-radius: 10px;
	font-size: 15px;
	box-sizing: border-box;
	background: #fff;
	transition: border-color .2s;
}
.slabo-flow__field textarea { resize: vertical; line-height: 1.7; }
.slabo-flow__field input:focus,
.slabo-flow__field select:focus,
.slabo-flow__field textarea:focus { outline: none; border-color: #4B0082; }

.slabo-flow__btn--block { display: block; width: 100%; box-sizing: border-box; }
.slabo-flow__btn--next:disabled,
.slabo-flow__btn--primary:disabled { opacity: .5; cursor: not-allowed; filter: none; transform: none; }

.slabo-flow__error { color: #d63638; font-size: 12.5px; margin: 0 0 12px; text-align: left; }

.slabo-flow__fstep--done { text-align: center; }
.slabo-flow__fstep--done .slabo-flow__check { display: block; margin: 4px auto 14px; }
.slabo-flow__check svg { animation: slaboPop .4s cubic-bezier(.16,1,.3,1) both; }
@keyframes slaboPop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
.slabo-flow__donetext { font-size: 14px; line-height: 1.9; color: #555; margin: 0 0 20px; }

@media (max-width: 480px) {
	.slabo-flow__card { padding: 30px 20px 24px; }
	.slabo-flow__heading { font-size: 18px; }
	.slabo-flow__btn { padding: 11px 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.slabo-flow__overlay, .slabo-flow__card, .slabo-flow__step { transition: none; animation: none; }
	.slabo-flow__card { transform: none; }
}
