/* Momentum Funnel — front-end styles. No frameworks. Native CSS Grid + vars. */

.mfunnel-root {
	--mfunnel-bg:         #ffffff;
	--mfunnel-card:       #ffffff;
	--mfunnel-star:       #fbbf24;
	--mfunnel-btn-bg:     #2563eb;
	--mfunnel-btn-text:   #ffffff;

	background: var(--mfunnel-bg);
	padding: 2rem 1rem;
	color: #1d2327;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.mfunnel-card {
	max-width: 640px;
	margin: 0 auto;
	background: var(--mfunnel-card);
	border-radius: 12px;
	padding: 2rem;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.mfunnel-heading { text-align: center; margin: 0 0 1.25rem; font-size: 1.6rem; line-height: 1.3; }
.mfunnel-sub     { text-align: center; margin: 0 0 1.25rem; color: #3c434a; }

/* ---- Stars ---- */
.mfunnel-stars { display: flex; justify-content: center; gap: 0.4rem; margin: 1rem 0; }
.mfunnel-star {
	background: transparent;
	background-color: transparent;
	border: none;
	font-size: clamp(3.5rem, 12vw, 5.5rem);
	line-height: 1;
	cursor: pointer;
	color: #d9d9d9;
	transition: color 120ms ease, transform 120ms ease, text-shadow 120ms ease;
	-webkit-appearance: none;
	appearance: none;
	margin: 0 !important;
	padding: 0 0.1em !important;
	text-align: center;
	
	/* Grey state: Shadow down and to the LEFT (-3px X offset) */
	text-shadow: -3px 3px 1px rgba(0, 0, 0, 0.35);
}

.mfunnel-star:hover,
.mfunnel-star:focus,
.mfunnel-star:active,
.mfunnel-star:focus-visible {
	background: transparent;
	background-color: transparent;
	outline: none;
	box-shadow: none;
}

.mfunnel-star:hover,
.mfunnel-star.is-hover,
.mfunnel-star:focus-visible { 
	color: var(--mfunnel-star); 
	transform: scale(1.1); 
	
	/* Yellow state: Shadow down and to the RIGHT (3px X offset) */
	text-shadow: 3px 4px 1px #d97706;
}

/* ---- Destination buttons ---- */
.mfunnel-destinations {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.75rem;
	margin-top: 1rem;
}

@media (max-width: 600px) {
	.mfunnel-destinations { grid-template-columns: repeat(2, 1fr); }
}

.mfunnel-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: var(--mfunnel-btn-bg);
	color: var(--mfunnel-btn-text);
	border: none;
	text-decoration: none;
	font-weight: 600;
	cursor: pointer;
	transition: transform 120ms ease, box-shadow 120ms ease;
}

.mfunnel-btn:hover { 
    transform: translateY(-1px); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
    text-decoration: underline; 
    color: var(--mfunnel-btn-text);
}

.mfunnel-btn-icon {
	width: 1.75em;
	height: 1.75em;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	color: var(--mfunnel-btn-bg);
	border-radius: 50%;
	font-weight: 700;
	font-size: 0.9em;
	line-height: 1;
}

/* EXPERIMENTAL WACTH THE BUTTONS AS WE GO ALONG */
/* Shape */
/* Shape */
.mfunnel-btn--square  .mfunnel-btn, 
.mfunnel-btn--square  .mfunnel-muted-list a,
.mfunnel-btn--square  .mfunnel-submit { border-radius: 0 !important; }

.mfunnel-btn--rounded .mfunnel-btn, 
.mfunnel-btn--rounded .mfunnel-muted-list a,
.mfunnel-btn--rounded .mfunnel-submit { border-radius: 6px !important; }

.mfunnel-btn--pill    .mfunnel-btn, 
.mfunnel-btn--pill    .mfunnel-muted-list a,
.mfunnel-btn--pill    .mfunnel-submit { border-radius: 999px !important; }

/* Size */
.mfunnel-btn--size-standard .mfunnel-btn { padding: 0.75rem 1.25rem; font-size: 1rem; }
.mfunnel-btn--size-large    .mfunnel-btn { padding: 1rem 1.5rem;     font-size: 1.125rem; }

/* ---- Secondary/Muted Public Review Links ---- */
.mfunnel-destinations--muted {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #eaeaea; /* Keeps it visually separated from the form */
	display: flex;
	flex-direction: column; /* Stacks the heading and the button list */
	align-items: center;    /* Centers everything horizontally */
	text-align: center;
}

.mfunnel-muted-heading {
	font-size: 14px;
	color: #646970;
	margin: 0 0 12px 0; /* Creates the gap between the text and the buttons */
}

.mfunnel-muted-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center; /* Ensures the buttons themselves stay centered */
}

.mfunnel-muted-list a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	color: #50575e; 
	background-color: transparent;
	border: 1px solid #c3c4c7; 
	border-radius: 4px; 
	transition: all 0.2s ease;
	opacity: 0.9;
}

.mfunnel-muted-list a:hover,
.mfunnel-muted-list a:focus {
	opacity: 1;
	color: #1d2327;
	border-color: #8c8f94;
	background-color: #f6f7f7;
}

/* ---- Form ---- */
.mfunnel-form { display: flex; flex-direction: column; gap: 0.875rem; }
.mfunnel-field { display: flex; flex-direction: column; gap: 0.25rem; }
.mfunnel-field label { font-size: 0.875rem; font-weight: 600; color: #3c434a; }
.mfunnel-field input,
.mfunnel-field textarea {
	padding: 0.6rem 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font: inherit;
	background: #fff;
}
.mfunnel-field input:focus,
.mfunnel-field textarea:focus { outline: none; border-color: var(--mfunnel-btn-bg); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }

.mfunnel-submit {
	align-self: flex-start;
	background: var(--mfunnel-btn-bg);
	color: var(--mfunnel-btn-text);
	border: none;
	padding: 0.75rem 1.5rem;
	font-weight: 600;
	cursor: pointer;
	border-radius: inherit;
}
.mfunnel-submit[disabled] { opacity: 0.6; cursor: wait; }

.mfunnel-status { color: #b91c1c; margin: 0.5rem 0 0; }

.mfunnel-hp {
	position: absolute !important;
	left: -10000px;
	top: auto;
	width: 1px; height: 1px;
	overflow: hidden;
}

/* ---- Hub grid ---- */
.mfunnel-hub-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.5rem 1rem;
}
@media (max-width: 600px) {
	.mfunnel-hub-grid { grid-template-columns: repeat(2, 1fr); }
}
.mfunnel-hub-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
	text-align: center;
	font: inherit;
	color: inherit;
	outline: none;
}
.mfunnel-hub-image {
	width: 100%;
	max-height: 140px;
	object-fit: cover;
	border-radius: 6px;
	transition: transform 120ms ease, box-shadow 120ms ease;
}
.mfunnel-hub-card:hover .mfunnel-hub-image,
.mfunnel-hub-card:focus-visible .mfunnel-hub-image {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.mfunnel-hub-name {
	font-weight: 600;
	color: #1d2327; /* Explicit color to override theme interference */
}

/* ---- Employer platform brand colours ---- */
.mfunnel-btn--glassdoor { background: #0caa41; }
.mfunnel-btn--glassdoor .mfunnel-btn-icon { color: #0caa41; }
.mfunnel-btn--indeed    { background: #2164f3; }
.mfunnel-btn--indeed    .mfunnel-btn-icon { color: #2164f3; }

/* ---- Employee gate screen ---- */
.mfunnel-gate-form {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	max-width: 320px;
	margin: 0 auto;
}

.mfunnel-gate-input {
	padding: 0.6rem 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font: inherit;
	background: #fff;
	width: 100%;
	box-sizing: border-box;
}

.mfunnel-gate-input:focus {
	outline: none;
	border-color: var(--mfunnel-btn-bg);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.mfunnel-gate-error {
	color: #b91c1c;
	margin: 0;
	font-size: 0.875rem;
	min-height: 1.25em;
}