/**
 * FCSA End Client Workflow - Common Styles
 *
 * Shared CSS for all workflow components (questionnaire and overview diagram).
 * Uses BEM naming convention and CSS custom properties for easy theming.
 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* CSS Custom Properties */
:root {
	/* Brand Colours */
	--fcsa-orange-dark: #F15A29;
	--fcsa-orange-light: #F7931D;
	--fcsa-orange: #F79239;
	--fcsa-grey: #171717;

	/* Severity Colours */
	--fcsa-green: #27AE60;
	--fcsa-red: #E74C3C;
	--fcsa-amber: #F39C12;

	/* Typography */
	--fcsa-font: 'Montserrat', sans-serif;

	/* UI */
	--fcsa-radius: 8px;
	--fcsa-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	--fcsa-transition: 0.3s ease;
}

/* Base Reset */
.fcsa-workflow,
.fcsa-workflow * {
	box-sizing: border-box;
}

.fcsa-workflow {
	font-family: var(--fcsa-font);
	color: var(--fcsa-grey);
	line-height: 1.6;
}

/* Typography Helpers */
.fcsa-workflow h1,
.fcsa-workflow h2,
.fcsa-workflow h3,
.fcsa-workflow h4,
.fcsa-workflow h5,
.fcsa-workflow h6 {
	font-weight: 700;
	line-height: 1.3;
	margin-top: 0;
	margin-bottom: 1rem;
}

.fcsa-workflow h1 {
	font-size: 2.5rem;
}

.fcsa-workflow h2 {
	font-size: 2rem;
}

.fcsa-workflow h3 {
	font-size: 1.75rem;
}

.fcsa-workflow h4 {
	font-size: 1.5rem;
}

.fcsa-workflow h5 {
	font-size: 1.25rem;
}

.fcsa-workflow h6 {
	font-size: 1rem;
}

.fcsa-workflow p {
	margin-top: 0;
	margin-bottom: 1rem;
}

.fcsa-workflow p:last-child {
	margin-bottom: 0;
}

/* Buttons */
.fcsa-workflow button,
.fcsa-workflow .fcsa-workflow__button {
	font-family: var(--fcsa-font);
	font-weight: 600;
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: var(--fcsa-radius);
	cursor: pointer;
	transition: all var(--fcsa-transition);
	text-decoration: none;
	display: inline-block;
	text-align: center;
}

.fcsa-workflow button:hover,
.fcsa-workflow .fcsa-workflow__button:hover {
	transform: translateY(-2px);
	box-shadow: var(--fcsa-shadow);
}

.fcsa-workflow button:active,
.fcsa-workflow .fcsa-workflow__button:active {
	transform: translateY(0);
}

/* Links */
.fcsa-workflow a {
	color: var(--fcsa-orange);
	text-decoration: none;
	transition: color var(--fcsa-transition);
}

.fcsa-workflow a:hover {
	color: var(--fcsa-orange-dark);
	text-decoration: underline;
}

/* Cards */
.fcsa-workflow__card {
	background: #fff;
	border-radius: var(--fcsa-radius);
	box-shadow: var(--fcsa-shadow);
	padding: 2rem;
	transition: all var(--fcsa-transition);
}

.fcsa-workflow__card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Severity Indicators */
.fcsa-workflow__severity--green {
	border-left: 4px solid var(--fcsa-green);
}

.fcsa-workflow__severity--amber {
	border-left: 4px solid var(--fcsa-amber);
}

.fcsa-workflow__severity--red {
	border-left: 4px solid var(--fcsa-red);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	.fcsa-workflow,
	.fcsa-workflow *,
	.fcsa-workflow *::before,
	.fcsa-workflow *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Utility Classes */
.fcsa-workflow__text-center {
	text-align: center;
}

.fcsa-workflow__text-left {
	text-align: left;
}

.fcsa-workflow__text-right {
	text-align: right;
}

.fcsa-workflow__mt-1 {
	margin-top: 0.5rem;
}

.fcsa-workflow__mt-2 {
	margin-top: 1rem;
}

.fcsa-workflow__mt-3 {
	margin-top: 1.5rem;
}

.fcsa-workflow__mt-4 {
	margin-top: 2rem;
}

.fcsa-workflow__mb-1 {
	margin-bottom: 0.5rem;
}

.fcsa-workflow__mb-2 {
	margin-bottom: 1rem;
}

.fcsa-workflow__mb-3 {
	margin-bottom: 1.5rem;
}

.fcsa-workflow__mb-4 {
	margin-bottom: 2rem;
}

.fcsa-workflow__hidden {
	display: none !important;
}

.fcsa-workflow__visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}
