/* -----------------------------------------------------------------------
 * Bright Horizons palette
 *   Coral/orange (logo "B")   : #F4732B
 *   Teal (logo "H")           : #0FA79B
 *   Magenta/pink (nav & CTAs) : #EC1E79
 *   Deep purple (footer)      : #2C1B4E
 *   Sunny yellow (accents)    : #FFC531
 * ---------------------------------------------------------------------*/
:root {
	--mchat-orange: #F4732B;
	--mchat-orange-dark: #DC5A15;
	--mchat-teal: #0FA79B;
	--mchat-pink: #EC1E79;
	--mchat-pink-dark: #C71362;
	--mchat-purple: #2C1B4E;
	--mchat-yellow: #FFC531;
	--mchat-green: #22B07D;
	--mchat-red: #E8455C;
	--mchat-text: #33294F;
	--mchat-muted: #6B6285;
}

.mchat-r-wrap {
	position: relative;
	max-width: 660px;
	margin: 0 auto;
	padding: 40px 32px 34px;
	background: linear-gradient(180deg, #FFF9F2 0%, #FFFFFF 55%);
	border: 3px solid #FFE3CE;
	border-radius: 28px;
	box-shadow: 0 14px 34px rgba(44, 27, 78, 0.10);
	font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--mchat-text);
	box-sizing: border-box;
	overflow: hidden;
}
.mchat-r-wrap *, .mchat-r-wrap *::before, .mchat-r-wrap *::after {
	box-sizing: border-box;
}

/* Floating decorative emoji */
.mchat-r-floaties {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: 0;
}
.mchat-r-floaty {
	position: absolute;
	font-size: 26px;
	opacity: 0.5;
	animation: mchat-r-bob 5s ease-in-out infinite;
}
.mchat-r-floaty.f1 { top: 14px; left: 20px; animation-delay: 0s; }
.mchat-r-floaty.f2 { top: 24px; right: 26px; font-size: 30px; animation-delay: 1.2s; }
.mchat-r-floaty.f3 { bottom: 18px; left: 24px; font-size: 24px; animation-delay: 2s; }
.mchat-r-floaty.f4 { bottom: 30px; right: 20px; animation-delay: 0.6s; }
@keyframes mchat-r-bob {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50% { transform: translateY(-8px) rotate(8deg); }
}

.mchat-r-step { position: relative; z-index: 1; }

.mchat-r-mascot {
	font-size: 56px;
	text-align: center;
	margin-bottom: 6px;
	line-height: 1;
}
.mchat-r-mascot-small { font-size: 44px; }

.mchat-r-title {
	font-family: 'Baloo 2', 'Nunito', sans-serif;
	font-size: 26px;
	font-weight: 700;
	text-align: center;
	margin: 0 0 4px;
	color: var(--mchat-purple);
}

.mchat-r-eyebrow {
	text-align: center;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--mchat-pink);
	margin: 0 0 16px;
}

.mchat-r-intro-text {
	font-size: 15.5px;
	line-height: 1.65;
	text-align: center;
	margin: 0 auto 16px;
	max-width: 480px;
	color: var(--mchat-text);
}

.mchat-r-disclaimer {
	font-size: 13px;
	line-height: 1.55;
	background: #FFF3E5;
	border: 1.5px dashed var(--mchat-orange);
	padding: 12px 16px;
	border-radius: 14px;
	color: #8A5A24;
	margin-bottom: 24px;
}

.mchat-r-btn {
	display: inline-block;
	font-family: 'Baloo 2', 'Nunito', sans-serif;
	font-size: 16px;
	font-weight: 700;
	padding: 13px 26px;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	transition: transform .08s ease, box-shadow .15s ease, opacity .15s ease;
	letter-spacing: 0.01em;
}
.mchat-r-btn:active { transform: scale(0.96); }
.mchat-r-btn-primary {
	background: linear-gradient(135deg, var(--mchat-pink) 0%, var(--mchat-orange) 100%);
	color: #fff;
	box-shadow: 0 6px 16px rgba(236, 30, 121, 0.32);
}
.mchat-r-btn-primary:hover { box-shadow: 0 8px 20px rgba(236, 30, 121, 0.42); }
.mchat-r-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.mchat-r-btn-secondary {
	background: #F1EDFB;
	color: var(--mchat-purple);
	margin-right: 10px;
}
.mchat-r-btn-secondary:hover { background: #E5DEF8; }

.mchat-r-step-intro { text-align: center; }
.mchat-r-step-intro .mchat-r-btn { margin-top: 4px; }

/* Progress */
.mchat-r-progress { margin-bottom: 24px; }
.mchat-r-progress-bar {
	background: #F1EDFB;
	height: 12px;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 8px;
	border: 1px solid #E5DEF8;
}
.mchat-r-progress-fill {
	background: linear-gradient(90deg, var(--mchat-teal), var(--mchat-orange), var(--mchat-pink));
	height: 100%;
	border-radius: 999px;
	transition: width .3s ease;
}
.mchat-r-progress-label {
	font-family: 'Baloo 2', sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: var(--mchat-purple);
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
.mchat-r-star-icon { font-size: 14px; }

/* Question card */
.mchat-r-question {
	background: #FFFFFF;
	border: 2px solid #F3EEFF;
	border-radius: 20px;
	padding: 22px 22px 18px;
	box-shadow: 0 4px 14px rgba(44, 27, 78, 0.05);
}
.mchat-r-q-number {
	font-family: 'Baloo 2', sans-serif;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--mchat-teal);
	margin-bottom: 10px;
}
.mchat-r-q-text {
	font-family: 'Baloo 2', sans-serif;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 8px;
	color: var(--mchat-purple);
}
.mchat-r-q-example {
	font-size: 13.5px;
	color: var(--mchat-muted);
	margin-bottom: 20px;
	line-height: 1.5;
	background: #FAF8FF;
	padding: 8px 12px;
	border-radius: 10px;
}

.mchat-r-q-options {
	display: flex;
	gap: 14px;
	margin-bottom: 2px;
}
.mchat-r-option {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 16px 10px;
	border: 2.5px solid #ECE7FA;
	border-radius: 16px;
	cursor: pointer;
	font-family: 'Baloo 2', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: var(--mchat-purple);
	transition: border-color .12s ease, background .12s ease, transform .08s ease;
	background: #FCFBFF;
}
.mchat-r-option:active { transform: scale(0.97); }
.mchat-r-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.mchat-r-option-icon { font-size: 26px; line-height: 1; }

.mchat-r-option-yes:has(input:checked) {
	border-color: var(--mchat-green);
	background: #E9FBF3;
	color: #0E7A50;
}
.mchat-r-option-no:has(input:checked) {
	border-color: var(--mchat-red);
	background: #FDEDEF;
	color: #A82236;
}

.mchat-r-inline-error {
	text-align: center;
}

.mchat-r-nav {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 24px;
	gap: 4px;
}
.mchat-r-step-quiz .mchat-r-nav { justify-content: space-between; }

/* Lead form */
.mchat-r-step-lead { text-align: center; }
.mchat-r-step-lead form { text-align: left; margin-top: 10px; }

.mchat-r-field { margin-bottom: 15px; }
.mchat-r-field label {
	display: block;
	font-family: 'Baloo 2', sans-serif;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--mchat-purple);
	margin-bottom: 6px;
}
.mchat-r-field input {
	width: 100%;
	padding: 12px 14px;
	font-size: 15px;
	font-family: 'Nunito', sans-serif;
	border: 2px solid #ECE7FA;
	border-radius: 12px;
	color: var(--mchat-text);
	background: #FCFBFF;
}
.mchat-r-field input:focus {
	outline: none;
	border-color: var(--mchat-teal);
	background: #fff;
}
.mchat-r-field input::placeholder { color: #B8B0D6; }

.mchat-r-field input.mchat-r-input-invalid {
	border-color: var(--mchat-red);
	background: #FDEDEF;
}
.mchat-r-field-error {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--mchat-red);
	margin-top: 5px;
	min-height: 1px;
}

.mchat-r-privacy {
	font-size: 12px;
	color: var(--mchat-muted);
	margin-top: 14px;
	line-height: 1.5;
	text-align: center;
}

.mchat-r-error {
	background: #FDEDEF;
	border: 1.5px solid var(--mchat-red);
	color: #A82236;
	font-size: 13.5px;
	padding: 10px 14px;
	border-radius: 12px;
	margin-bottom: 16px;
	text-align: center;
}

.mchat-r-loading {
	text-align: center;
	padding: 50px 0;
	color: var(--mchat-purple);
	font-family: 'Baloo 2', sans-serif;
	font-weight: 700;
	font-size: 16px;
}
.mchat-r-spinner {
	display: inline-block;
	font-size: 26px;
	animation: mchat-r-spin 1.1s linear infinite;
}
@keyframes mchat-r-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* Results */
.mchat-r-step-results { text-align: center; }
.mchat-r-result-score { margin: 4px 0 16px; }
.mchat-r-result-score .num {
	font-family: 'Baloo 2', sans-serif;
	font-size: 56px;
	font-weight: 800;
	line-height: 1;
	color: var(--mchat-purple);
}
.mchat-r-result-score .out-of {
	font-size: 13.5px;
	color: var(--mchat-muted);
	margin-top: 4px;
	font-weight: 600;
}
.mchat-r-badge-pill {
	display: inline-block;
	padding: 7px 20px;
	border-radius: 999px;
	font-family: 'Baloo 2', sans-serif;
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 18px;
}
.mchat-r-badge-pill.low { background: linear-gradient(135deg, #22B07D, #0FA79B); }
.mchat-r-badge-pill.medium { background: linear-gradient(135deg, #FFC531, #F4732B); color: #4A2A00; }
.mchat-r-badge-pill.high { background: linear-gradient(135deg, #EC1E79, #E8455C); }

.mchat-r-result-message {
	font-size: 15px;
	line-height: 1.65;
	color: var(--mchat-text);
	background: #FAF8FF;
	border: 1.5px solid #F1EDFB;
	padding: 18px 20px;
	border-radius: 16px;
	margin-bottom: 22px;
	text-align: left;
}

@media (max-width: 480px) {
	.mchat-r-wrap { padding: 28px 18px 22px; border-radius: 20px; }
	.mchat-r-title { font-size: 21px; }
	.mchat-r-q-text { font-size: 17px; }
	.mchat-r-mascot { font-size: 46px; }
	.mchat-r-result-score .num { font-size: 46px; }
	.mchat-r-floaty { font-size: 20px; }
}
