/* Youmind Form — pixel-identical styles scoped from corporate intake HTML */

.ymf-widget {
	--bg: #021019;
	--bg-2: #04182a;
	--bg-3: #06203a;
	--panel: rgba(255, 255, 255, 0.035);
	--panel-2: rgba(255, 255, 255, 0.055);
	--teal: #3fd9cf;
	--teal-bright: #66fcf1;
	--teal-soft: rgba(63, 217, 207, 0.1);
	--teal-line: rgba(63, 217, 207, 0.22);
	--line: rgba(120, 200, 200, 0.12);
	--ink: #eaf6f5;
	--ink-dim: #93aeae;
	--ink-soft: #5e7878;
	--rec: #ff6b6b;
	--good: #7dd3a0;
	--font: "Poppins", system-ui, sans-serif;
	box-sizing: border-box;
	font-family: var(--font);
	color: var(--ink);
	background:
		radial-gradient(ellipse 60% 45% at 82% -5%, rgba(63, 217, 207, 0.1), transparent 60%),
		radial-gradient(ellipse 55% 40% at 0% 105%, rgba(63, 217, 207, 0.07), transparent 60%),
		var(--bg);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	width: 100%;
}

.ymf-widget *,
.ymf-widget *::before,
.ymf-widget *::after {
	box-sizing: border-box;
}

.ymf-widget .wrap {
	max-width: 760px;
	margin: 0 auto;
	padding: 40px 24px 80px;
}

.ymf-widget .progress-shell {
	margin-bottom: 38px;
}

.ymf-widget .progress-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.ymf-widget .progress-phase {
	font-size: 10.5px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--teal);
	font-weight: 600;
}

.ymf-widget .progress-count {
	font-size: 12px;
	color: var(--ink-soft);
	font-variant-numeric: tabular-nums;
}

.ymf-widget .progress-track {
	height: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	overflow: hidden;
}

.ymf-widget .progress-fill {
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--teal), var(--teal-bright));
	box-shadow: 0 0 12px rgba(63, 217, 207, 0.5);
	transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ymf-widget .eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 10.5px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--teal);
	font-weight: 600;
	margin-bottom: 18px;
}

.ymf-widget .eyebrow::before {
	content: "";
	width: 22px;
	height: 1px;
	background: var(--teal);
}

.ymf-widget h1 {
	font-size: clamp(28px, 5vw, 40px);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.015em;
	margin: 0 0 16px;
	color: var(--ink);
}

.ymf-widget h1 em {
	font-style: normal;
	color: var(--teal);
}

.ymf-widget .lede {
	color: var(--ink-dim);
	font-size: 16px;
	max-width: 60ch;
	margin-bottom: 30px;
}

.ymf-widget .lede strong {
	color: var(--ink);
	font-weight: 600;
}

.ymf-widget .step-label {
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ink-soft);
	font-weight: 600;
	margin-bottom: 8px;
}

.ymf-widget .step-title {
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin-bottom: 14px;
	color: var(--ink);
}

.ymf-widget .step-title em {
	font-style: normal;
	color: var(--teal);
}

.ymf-widget .panel {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 30px;
	backdrop-filter: blur(8px);
}

.ymf-widget .panel + .panel {
	margin-top: 18px;
}

.ymf-widget .meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 30px;
}

.ymf-widget .chip {
	display: flex;
	align-items: center;
	gap: 9px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 12px 16px;
	font-size: 13px;
	color: var(--ink-dim);
}

.ymf-widget .chip svg {
	width: 16px;
	height: 16px;
	color: var(--teal);
	flex-shrink: 0;
}

.ymf-widget .chip b {
	color: var(--ink);
	font-weight: 600;
}

.ymf-widget .field {
	margin-bottom: 20px;
}

.ymf-widget .field label {
	display: block;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--ink-dim);
	margin-bottom: 8px;
	letter-spacing: 0.01em;
}

.ymf-widget .field label .req {
	color: var(--teal);
}

.ymf-widget .field input,
.ymf-widget .field select {
	width: 100%;
	font-family: var(--font);
	font-size: 15px;
	color: var(--ink);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--line);
	border-radius: 11px;
	padding: 14px 16px;
	transition: 0.2s;
}

.ymf-widget .field input::placeholder {
	color: var(--ink-soft);
}

.ymf-widget .field input:focus,
.ymf-widget .field select:focus {
	outline: none;
	border-color: var(--teal-line);
	box-shadow: 0 0 0 3px var(--teal-soft);
	background: rgba(255, 255, 255, 0.06);
}

.ymf-widget .field select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233fd9cf' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 44px;
	cursor: pointer;
}

.ymf-widget .field select option {
	background: #04182a;
	color: var(--ink);
}

.ymf-widget .field .err {
	display: none;
	font-size: 12px;
	color: var(--rec);
	margin-top: 7px;
}

.ymf-widget .field.invalid input,
.ymf-widget .field.invalid select {
	border-color: rgba(255, 107, 107, 0.5);
}

.ymf-widget .field.invalid .err {
	display: block;
}

.ymf-widget .form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 18px;
}

.ymf-widget .prompt-quote {
	font-size: 18px;
	line-height: 1.65;
	color: var(--ink);
	border-left: 2px solid var(--teal);
	padding: 4px 0 4px 20px;
	margin-bottom: 8px;
}

.ymf-widget .prompt-hint {
	font-size: 13px;
	color: var(--ink-soft);
	margin-bottom: 26px;
}

.ymf-widget .sentences {
	list-style: none;
	margin: 6px 0 26px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	counter-reset: s;
}

.ymf-widget .sentences li {
	position: relative;
	padding: 16px 18px 16px 46px;
	font-size: 15.5px;
	color: var(--ink);
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--line);
	border-radius: 12px;
	line-height: 1.5;
}

.ymf-widget .sentences li::before {
	content: counter(s);
	counter-increment: s;
	position: absolute;
	left: 16px;
	top: 16px;
	width: 20px;
	height: 20px;
	border-radius: 6px;
	background: var(--teal-soft);
	color: var(--teal);
	font-size: 11px;
	font-weight: 600;
	display: grid;
	place-items: center;
}

.ymf-widget .consider {
	display: none;
	margin: 0 0 26px;
	background: rgba(255, 255, 255, 0.025);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 20px 22px;
}

.ymf-widget .consider.show {
	display: block;
}

.ymf-widget .consider .c-head {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 10.5px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--teal);
	font-weight: 600;
	margin-bottom: 14px;
}

.ymf-widget .consider .c-head svg {
	width: 14px;
	height: 14px;
}

.ymf-widget .consider ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.ymf-widget .consider li {
	position: relative;
	padding-left: 20px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink-dim);
}

.ymf-widget .consider li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 9px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--teal);
	opacity: 0.55;
}

.ymf-widget .recorder {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 8px 0 4px;
}

.ymf-widget .viz {
	position: relative;
	width: 100%;
	max-width: 420px;
	height: 96px;
	margin: 0 auto 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
}

.ymf-widget .viz .bar {
	width: 4px;
	height: 8px;
	border-radius: 3px;
	background: var(--teal);
	opacity: 0.32;
	transition: height 0.09s linear, opacity 0.2s;
}

.ymf-widget .viz.live .bar {
	opacity: 0.9;
	box-shadow: 0 0 8px rgba(63, 217, 207, 0.5);
}

.ymf-widget .viz.done .bar {
	opacity: 0.5;
}

.ymf-widget .rec-btn {
	position: relative;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	cursor: pointer;
	border: 0;
	background: linear-gradient(140deg, var(--teal-bright), var(--teal));
	display: grid;
	place-items: center;
	color: #022;
	box-shadow: 0 0 0 0 rgba(63, 217, 207, 0.5), 0 14px 40px rgba(63, 217, 207, 0.28);
	transition: 0.25s;
}

.ymf-widget .rec-btn:hover {
	transform: translateY(-2px);
}

.ymf-widget .rec-btn svg {
	width: 32px;
	height: 32px;
}

.ymf-widget .rec-btn.recording {
	background: linear-gradient(140deg, #ff8a8a, var(--rec));
	animation: ymf-pulse-rec 1.6s infinite;
}

@keyframes ymf-pulse-rec {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.45);
	}
	70% {
		box-shadow: 0 0 0 18px rgba(255, 107, 107, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
	}
}

.ymf-widget .rec-btn:disabled {
	opacity: 0.5;
	cursor: default;
}

.ymf-widget .rec-timer {
	font-variant-numeric: tabular-nums;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.05em;
	color: var(--ink);
	margin-top: 16px;
	min-height: 22px;
}

.ymf-widget .rec-status {
	font-size: 12.5px;
	color: var(--ink-soft);
	margin-top: 4px;
	min-height: 18px;
	letter-spacing: 0.02em;
}

.ymf-widget .rec-status.on {
	color: var(--rec);
}

.ymf-widget .rec-status.ok {
	color: var(--good);
}

.ymf-widget .playback {
	display: none;
	align-items: center;
	gap: 14px;
	margin-top: 20px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 12px 16px;
	flex-wrap: wrap;
}

.ymf-widget .playback.show {
	display: flex;
}

.ymf-widget .aplayer {
	display: flex;
	align-items: center;
	gap: 11px;
	flex: 1;
	min-width: 180px;
}

.ymf-widget .aplayer audio {
	display: none;
}

.ymf-widget .ap-play {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	flex-shrink: 0;
	border: 0;
	cursor: pointer;
	background: linear-gradient(140deg, var(--teal-bright), var(--teal));
	color: #022;
	display: grid;
	place-items: center;
	box-shadow: 0 0 16px rgba(63, 217, 207, 0.28);
	transition: 0.2s;
}

.ymf-widget .ap-play:hover {
	transform: translateY(-1px);
}

.ymf-widget .ap-play svg {
	width: 17px;
	height: 17px;
	margin-left: 1px;
}

.ymf-widget .ap-time {
	font-size: 11.5px;
	color: var(--ink-dim);
	font-variant-numeric: tabular-nums;
	min-width: 32px;
	text-align: center;
	letter-spacing: 0.03em;
}

.ymf-widget .ap-track {
	flex: 1;
	min-width: 50px;
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.09);
	cursor: pointer;
	position: relative;
	transition: background 0.2s;
}

.ymf-widget .ap-track:hover {
	background: rgba(255, 255, 255, 0.14);
}

.ymf-widget .ap-fill {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--teal), var(--teal-bright));
	box-shadow: 0 0 10px rgba(63, 217, 207, 0.5);
}

.ymf-widget .redo {
	background: transparent;
	border: 0;
	color: var(--ink-dim);
	font-family: var(--font);
	font-size: 12.5px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	border-radius: 8px;
	transition: 0.2s;
}

.ymf-widget .redo:hover {
	color: var(--teal);
	background: var(--teal-soft);
}

.ymf-widget .redo svg {
	width: 14px;
	height: 14px;
}

.ymf-widget .actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	margin-top: 30px;
}

.ymf-widget .btn {
	font-family: var(--font);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	padding: 14px 26px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.04);
	color: var(--ink);
	display: inline-flex;
	align-items: center;
	gap: 10px;
	transition: 0.2s;
	text-decoration: none;
}

.ymf-widget .btn:hover {
	border-color: var(--teal-line);
	background: rgba(255, 255, 255, 0.07);
}

.ymf-widget .btn svg {
	width: 16px;
	height: 16px;
}

.ymf-widget .btn.primary {
	background: var(--teal);
	color: #022;
	border-color: var(--teal);
}

.ymf-widget .btn.primary:hover {
	background: var(--teal-bright);
	transform: translateY(-1px);
	box-shadow: 0 10px 30px rgba(63, 217, 207, 0.25);
}

.ymf-widget .btn.primary:disabled {
	opacity: 0.4;
	cursor: default;
	transform: none;
	box-shadow: none;
}

.ymf-widget .btn.ghost {
	background: transparent;
	border-color: transparent;
	color: var(--ink-soft);
	padding-left: 8px;
}

.ymf-widget .btn.ghost:hover {
	color: var(--ink);
	background: transparent;
}

.ymf-widget .btn.wide {
	width: 100%;
	justify-content: center;
	margin-top: 8px;
}

.ymf-widget .screen {
	display: none;
	animation: ymf-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ymf-widget .screen.active {
	display: block;
}

@keyframes ymf-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.ymf-widget .done-ring {
	width: 96px;
	height: 96px;
	margin: 0 auto 26px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--teal-soft);
	border: 1px solid var(--teal-line);
	position: relative;
}

.ymf-widget .done-ring::after {
	content: "";
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	border: 1px solid var(--teal-line);
	animation: ymf-halo 2.4s infinite;
}

@keyframes ymf-halo {
	0% {
		transform: scale(1);
		opacity: 0.6;
	}
	100% {
		transform: scale(1.25);
		opacity: 0;
	}
}

.ymf-widget .done-ring svg {
	width: 44px;
	height: 44px;
	color: var(--teal);
}

.ymf-widget .summary {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 28px 0;
}

.ymf-widget .summary .cell {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 18px;
	text-align: center;
}

.ymf-widget .summary .n {
	font-size: 26px;
	font-weight: 600;
	color: var(--teal);
	font-variant-numeric: tabular-nums;
}

.ymf-widget .summary .l {
	font-size: 11px;
	color: var(--ink-soft);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-top: 4px;
}

.ymf-widget .privacy-note {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	text-align: left;
	background: var(--teal-soft);
	border: 1px solid var(--teal-line);
	border-radius: 14px;
	padding: 16px 18px;
	margin: 2px 0 26px;
}

.ymf-widget .privacy-note svg {
	width: 18px;
	height: 18px;
	color: var(--teal);
	flex-shrink: 0;
	margin-top: 2px;
}

.ymf-widget .privacy-note p {
	font-size: 13px;
	line-height: 1.62;
	color: var(--ink-dim);
	margin: 0;
}

.ymf-widget .privacy-note strong {
	color: var(--teal);
	font-weight: 600;
}

.ymf-widget .prep {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	background: var(--panel);
	border: 1px solid var(--teal-line);
	border-radius: 16px;
	padding: 26px;
}

.ymf-widget .prep-ico {
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--teal-soft);
	border: 1px solid var(--teal-line);
	display: grid;
	place-items: center;
	color: var(--teal);
}

.ymf-widget .prep-ico svg {
	width: 22px;
	height: 22px;
}

.ymf-widget .prep h3 {
	font-family: var(--font);
	font-size: 17px;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 8px;
}

.ymf-widget .prep p {
	color: var(--ink-dim);
	font-size: 14.5px;
	line-height: 1.65;
	margin: 0;
}

.ymf-widget .modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(1, 8, 13, 0.78);
	backdrop-filter: blur(6px);
}

.ymf-widget .modal-overlay.show {
	display: flex;
	animation: ymf-fade 0.3s ease;
}

@keyframes ymf-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.ymf-widget .modal {
	max-width: 460px;
	width: 100%;
	background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
	border: 1px solid var(--teal-line);
	border-radius: 20px;
	padding: 34px 30px;
	text-align: center;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
	animation: ymf-rise 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ymf-widget .modal-lock {
	width: 60px;
	height: 60px;
	margin: 0 auto 20px;
	border-radius: 16px;
	background: var(--teal-soft);
	border: 1px solid var(--teal-line);
	display: grid;
	place-items: center;
	color: var(--teal);
}

.ymf-widget .modal-lock svg {
	width: 28px;
	height: 28px;
}

.ymf-widget .modal h2 {
	font-family: var(--font);
	font-size: 21px;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 14px;
	letter-spacing: -0.01em;
}

.ymf-widget .modal p {
	color: var(--ink-dim);
	font-size: 14.5px;
	line-height: 1.7;
	margin: 0 0 26px;
}

.ymf-widget .modal p strong {
	color: var(--ink);
	font-weight: 600;
}

.ymf-widget .modal .btn {
	width: 100%;
	justify-content: center;
}

.ymf-widget .footnote {
	text-align: center;
	font-size: 11.5px;
	color: var(--ink-soft);
	margin-top: 40px;
	letter-spacing: 0.02em;
}

.ymf-widget .footnote b {
	color: var(--ink-dim);
	font-weight: 500;
}

.ymf-widget .ymf-submitting {
	opacity: 0.7;
	pointer-events: none;
}

@media (max-width: 560px) {
	.ymf-widget .form-grid {
		grid-template-columns: 1fr;
	}

	.ymf-widget .summary {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.ymf-widget .summary .cell {
		display: flex;
		justify-content: space-between;
		text-align: left;
	}
}
