@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.ps-mh-triage-wrapper,
.ps-mh-triage-wrapper h1,
.ps-mh-triage-wrapper h2,
.ps-mh-triage-wrapper h3,
.ps-mh-triage-wrapper h4,
.ps-mh-triage-wrapper h5,
.ps-mh-triage-wrapper h6,
.ps-mh-triage-wrapper p,
.ps-mh-triage-wrapper span,
.ps-mh-triage-wrapper label,
.ps-mh-triage-wrapper legend,
.ps-mh-triage-wrapper div {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	color: #323653 !important;
}

.ps-mh-triage-wrapper {
	padding: 40px 20px;
	min-height: 100vh;
}

.ps-mh-triage-container {
	max-width: 700px;
	margin: 0 auto;
	background: white;
	border-radius: 12px;
	padding: 40px;
}

.ps-mh-triage-title {
	font-size: 32px;
	font-weight: 700;
	color: #333;
	margin-bottom: 10px;
	text-align: center;
}

.ps-mh-triage-subtitle {
	font-size: 16px;
	color: #666;
	text-align: center;
	margin-bottom: 30px;
}

/* Progress Bar */
.ps-mh-progress-wrapper {
	margin-bottom: 30px;
}

.ps-mh-progress-bar {
	width: 100%;
	height: 8px;
	background: #e0e0e0;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 10px;
}

.ps-mh-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
	width: 10%;
	transition: width 0.3s ease;
	border-radius: 10px;
}

.ps-mh-progress-text {
	font-size: 13px;
	color: #999;
	text-align: center;
	margin: 0;
}

.ps-mh-triage-form {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.ps-mh-section {
	border: none !important;
	border-left: none !important;
	border-right: none !important;
	border-top: none !important;
	border-bottom: none !important;
	padding: 0 !important;
	margin: 0 !important;
	padding: 25px !important;
	border-radius: 8px !important;
	background: transparent !important;
	background-color: transparent !important;
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	overflow: hidden !important;
	animation: fadeIn 0.3s ease;
	position: relative !important;
}

.ps-mh-section.active {
	display: block !important;
	visibility: visible !important;
	height: auto !important;
	overflow: visible !important;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ps-mh-section-title {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin-bottom: 20px;
	display: block;
}

.ps-mh-question {
	margin-bottom: 20px;
}

.ps-mh-question:last-child {
	margin-bottom: 0;
}

.ps-mh-question-text {
	display: block;
	font-size: 15px;
	font-weight: 500;
	color: #333;
	margin-bottom: 12px;
	line-height: 1.4;
}

.ps-mh-options {
	display: flex;
	flex-direction: column;
	gap: 12px !important;
}

.ps-mh-radio-wrapper {
	display: flex;
	align-items: center;
	padding: 18px 24px !important;
	border-radius: 16px !important;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
	background: #ffffff !important;
	border: 2px solid transparent !important;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}

.ps-mh-radio-wrapper:hover {
	background-color: #fafbfc !important;
}

/* Checked / Selected card styling */
.ps-mh-radio-wrapper.checked,
.ps-mh-radio-wrapper:has(input[type="radio"]:checked) {
	background-color: #eceffd !important;
	border: 2px solid #1070e5 !important;
	box-shadow: 0 4px 6px -1px rgba(16, 112, 229, 0.1), 0 2px 4px -1px rgba(16, 112, 229, 0.06) !important;
}

/* Completely remove the radio dots and standard browser appearance */
.ps-mh-radio-wrapper input[type="radio"] {
	position: absolute !important;
	opacity: 0 !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	pointer-events: none !important;
}

.ps-mh-radio-wrapper span {
	font-size: 16px !important;
	font-weight: 600 !important;
	color: #323653 !important;
}

.ps-mh-radio-wrapper.checked span,
.ps-mh-radio-wrapper:has(input[type="radio"]:checked) span {
	color: #323653 !important;
	font-weight: 600 !important;
}

/* Form Navigation */
.ps-mh-form-navigation {
	display: flex;
	gap: 16px !important;
	justify-content: space-between !important;
	margin-top: 40px !important;
}

.ps-mh-btn {
	padding: 16px 32px !important;
	border: none !important;
	border-radius: 14px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: all 0.2s ease !important;
	flex: 1 !important;
	text-align: center !important;
}

.ps-mh-btn-prev {
	background: #f0f2f5 !important;
	color: #888d9a !important;
	border: 1px solid #e4e6eb !important;
}

.ps-mh-btn-prev:hover {
	background: #e4e6eb !important;
	color: #323653 !important;
}

.ps-mh-btn-next {
	background: #1070e5 !important;
	color: white !important;
	box-shadow: 0 4px 6px -1px rgba(16, 112, 229, 0.15) !important;
}

.ps-mh-btn-next:hover {
	background: #0d5ec2 !important;
	transform: translateY(-1px) !important;
}

.ps-mh-btn-next:disabled,
.ps-mh-btn-prev:disabled {
	opacity: 0.4 !important;
	cursor: not-allowed !important;
	transform: none !important;
}

.ps-mh-btn-submit {
	background: #1070e5 !important;
	color: white !important;
	padding: 16px 32px !important;
	border: none !important;
	border-radius: 14px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: all 0.2s ease !important;
	flex: 1 !important;
	text-align: center !important;
	box-shadow: 0 4px 6px -1px rgba(16, 112, 229, 0.15) !important;
}

.ps-mh-btn-submit:hover {
	background: #0d5ec2 !important;
	transform: translateY(-1px) !important;
}

.ps-mh-success-message {
	background: #e8f5e9;
	border-left: 4px solid #4CAF50;
	padding: 25px;
	border-radius: 8px;
	text-align: center;
}

.ps-mh-success-message h2 {
	color: #2e7d32;
	margin-bottom: 15px;
	font-size: 24px;
}

.ps-mh-success-message p {
	color: #1b5e20;
	margin-bottom: 15px;
	line-height: 1.6;
}

.ps-mh-btn-primary {
	display: inline-block;
	background: #4CAF50;
	color: white;
	padding: 12px 28px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	transition: background 0.2s ease;
	margin-top: 15px;
}

.ps-mh-btn-primary:hover {
	background: #45a049;
}

.ps-mh-error-message {
	background: #ffebee;
	border-left: 4px solid #ef5350;
	padding: 25px;
	border-radius: 8px;
	text-align: center;
}

.ps-mh-error-message p {
	color: #c62828;
	margin: 0;
}

.ps-mh-danger-alert {
	background: #ffe0b2;
	border-left: 4px solid #ff9800;
	padding: 25px;
	border-radius: 8px;
	margin-bottom: 25px;
}

.ps-mh-danger-alert h2 {
	color: #e65100;
	margin-bottom: 15px;
	font-size: 22px;
}

.ps-mh-danger-alert p {
	color: #bf360c;
	margin-bottom: 15px;
	line-height: 1.6;
}

.ps-mh-crisis-resources {
	background: white;
	padding: 20px;
	border-radius: 6px;
	margin: 15px 0;
	text-align: left;
}

.ps-mh-crisis-resources p {
	margin: 10px 0;
}

.ps-mh-crisis-resources a {
	color: #ff9800;
	font-weight: 600;
	text-decoration: none;
}

.ps-mh-crisis-resources a:hover {
	text-decoration: underline;
}

@media (max-width: 768px) {
	.ps-mh-triage-container {
		padding: 25px;
	}

	.ps-mh-triage-title {
		font-size: 24px;
	}

	.ps-mh-triage-subtitle {
		font-size: 14px;
	}

	.ps-mh-section {
		padding: 18px;
	}

	.ps-mh-section-title {
		font-size: 16px;
	}

	.ps-mh-question-text {
		font-size: 14px;
	}

	.ps-mh-form-navigation {
		flex-wrap: wrap;
	}

	.ps-mh-btn {
		flex: 1;
		min-width: 100px;
	}

	.ps-mh-btn-submit {
		width: 100%;
	}
}
