/*
 * Claims Lifecycle Block — shared styles (frontend + editor).
 */

.wp-block-lsq-claims-lifecycle-journey.lsq-clc-block,
.lsq-clc-block {
	background: var(--clc-page-bg, #f5f4f0);
	color: var(--clc-text, #1a1a18);
	padding: 35px 35px;
	margin-top: 30px;
	margin-bottom: 30px;
	border-radius: 15px;
	font-family: 'Graphik';
}

.lsq-clc-block *,
.lsq-clc-block *::before,
.lsq-clc-block *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.clc-page-title {
	text-align: center;
	font-size: var(--clc-font-title, 22px);
	font-weight: 600;
	color: var(--clc-text, #1a1a18);
	margin-bottom: 6px;
	font-family: 'Graphik-Semibold';
}

.clc-page-sub {
	text-align: center;
	font-size: var(--clc-font-base, 13px);
	color: var(--clc-subtext, #6b6b66);
	margin-bottom: 32px;
}

.clc-stage-nav {
	display: flex;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.clc-stage-pill {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	font-weight: 500;
	padding: 7px 16px;
	border-radius: var(--clc-pill-radius, 20px);
	border: 1px solid var(--clc-pill-border, #e0ddd4);
	background: var(--clc-pill-bg, #ffffff);
	color: var(--clc-subtext, #6b6b66);
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
	user-select: none;
	font-family: 'Graphik-Medium' !important;
}

.clc-stage-pill svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.clc-stage-pill:hover,
.clc-controls button:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.clc-stage-pill.active {
	background: var(--clc-pill-active-bg, #1a1a18);
	border-color: var(--clc-pill-active-border, #1a1a18);
	color: var(--clc-pill-active-text, #ffffff);
}

.clc-stage-card {
	margin: 0 auto 20px;
	background: var(--clc-card-bg, #ffffff);
	border-radius: var(--clc-card-radius, 16px);
	border: 1px solid var(--clc-border, #e2e0d8) !important;
	overflow: hidden;
	min-height: 320px;
	box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.clc-stage-inner {
	display: none;
	--clc-stage-accent: #1d55b0;
	animation: clcFadeSlide 0.35s ease;
}

.clc-stage-inner.active {
	display: block;
}

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

.clc-stage-header {
	padding: 20px 24px 16px;
	border-bottom: 1px solid #E2E8F0 !important;
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.clc-stage-icon-big {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: var(--clc-stage-icon-bg, color-mix(in srgb, var(--clc-stage-accent) 14%, white));
}

.clc-stage-icon-big svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: var(--clc-stage-accent);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.clc-stage-header-text {
	flex: 1;
}

.clc-stage-number {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	margin-bottom: 4px;
	color: var(--clc-stage-accent);
	font-family: 'Graphik-Medium';
}

.clc-stage-name {
	font-size: var(--clc-font-stage-title, 18px);
	font-weight: 600;
	color: var(--clc-text, #1a1a18);
	margin-bottom: 4px;
	font-family: 'Graphik-Semibold';
}

.clc-stage-tagline {
	font-size: var(--clc-font-base, 13px);
	color: var(--clc-subtext, #6b6b66);
}

.clc-stage-body {
	padding: 20px 24px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

@media (max-width: 767px) {
	.clc-stage-nav {
		justify-content: flex-start;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scroll-behavior: smooth;
		scrollbar-width: none;
		scroll-behavior: smooth;
        scrollbar-width: none;
        padding-left: 0;
        padding-right: 0;
	}

	.clc-stage-nav::-webkit-scrollbar {
		display: none;
	}

	.clc-stage-pill {
		flex-shrink: 0;
	}
}

@media (max-width: 520px) {
	.clc-stage-body {
		grid-template-columns: 1fr;
	}
.clc-stage-header {
    display: block;
}
.clc-stage-icon-big {
    width: 45px;
    height: 45px;
    border-radius: 10px;
	margin-bottom: 5px;
}
.clc-stage-icon-big svg {
    width: 20px;
    height: 21px;
}
}
@media (max-width: 479px) {
#top .clc-timeline-labels {
    display: none;
}
#top .clc-timeline-track {
    margin-bottom: 0;
}
#top .clc-timeline-bar {
    border-radius: 8px;
    padding: 12px 10px;
}
#top .clc-stage-card{
	 border-radius: 8px;
}
.clc-stage-header {
    padding: 15px 16px 16px;
}
.clc-stage-body {
    padding: 15px 16px;
}
.wp-block-lsq-claims-lifecycle-journey.lsq-clc-block, .lsq-clc-block {
    padding: 30px 20px;
}
#top .clc-page-title{
	text-align: left;
}
#top .clc-page-sub {
    text-align: left;
    line-height: 18px;
}
}
.clc-detail-card {
	background: #F9F9F9;
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid #E2E8F0 !important;
}

.clc-detail-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #6A618D;
	margin-bottom: 7px;
	display: flex;
	align-items: center;
	gap: 5px;
	font-family: 'Graphik-Semibold';
}

.clc-detail-label svg {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.clc-detail-value {
	font-size: var(--clc-font-base, 13px);
	color: #374151;
	line-height: 1.6;
}

.clc-stat-big {
	font-size: var(--clc-font-stat, 28px);
	font-weight: 700;
	line-height: 1;
	margin-bottom: 4px;
	color: var(--clc-stage-accent);
	font-family: 'Graphik-Semibold';
}

.clc-stat-label {
	font-size: 12px;
	color: var(--clc-subtext, #6b6b66);
}

.clc-timeline-bar {
	margin: 0 auto 20px;
	background: var(--clc-card-bg, #ffffff);
	border-radius: 12px;
	border: 1px solid var(--clc-border, #e2e0d8) !important;
	padding: 16px 20px;
	box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.clc-timeline-track {
	position: relative;
	height: 6px;
	background: var(--clc-timeline-track-bg, #eeece4);
	border-radius: 3px;
	margin-bottom: 10px;
}

.clc-timeline-fill {
	height: 100%;
	border-radius: 3px;
	background: var(--clc-timeline-fill-bg, #1a1a18);
	transition: width 0.4s ease, background 0.3s ease;
}

.clc-timeline-labels {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: #9a9890;
	gap: 4px;
	font-family: 'Graphik-Medium';
}

.clc-timeline-labels span {
	color: #6A618D;
}

.clc-timeline-labels span.lit {
	color: var(--clc-text, #1a1a18);
	font-weight: 600;
}

.clc-controls {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 0 auto 10px;
	flex-wrap: wrap;
}

.clc-controls button {
	font-size: var(--clc-font-base, 13px);
	padding: 9px 20px;
	border-radius: 8px;
	border: 1px solid #d0cec6;
	background: var(--clc-card-bg, #ffffff);
	color: var(--clc-text, #1a1a18);
	transition: background 0.15s, border-color 0.15s;
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}
#top .clc-controls button {
    font-family: 'Graphik-Medium' !important;
}
.clc-controls button svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.clc-controls button:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.clc-controls button.clc-primary {
	background: var(--clc-primary-btn-bg, #1a1a18);
	color: var(--clc-primary-btn-text, #ffffff);
	border-color: var(--clc-primary-btn-bg, #1a1a18);
}

.clc-controls button.clc-primary:hover {
	opacity: 0.85;
}

.clc-auto-badge {
	text-align: center;
	font-size: 11px;
	color: #9a9890;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

@keyframes clcSpin {
	to { transform: rotate(360deg); }
}

.clc-spin {
	animation: clcSpin 1.2s linear infinite;
	display: inline-flex;
}

.clc-spin svg {
	width: 13px;
	height: 13px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

@media (prefers-reduced-motion: reduce) {
	.clc-stage-inner.active,
	.clc-spin {
		animation: none;
	}
}
