/**
 * Circle Progress Plugin Styles
 * Raleway Typography: 600 for Titles, 400 for Content
 */

:root {
	--cp-circle-size: 540px;
	--cp-node-size: 26px;
	--cp-label-gap: 16px;
}

.circle-progress-wrapper {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 40px 20px;
	box-sizing: border-box;
	overflow: visible;
	font-family: 'Raleway', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.circle-progress-container {
	position: relative;
	width: var(--cp-circle-size);
	height: var(--cp-circle-size);
	max-width: 100%;
	aspect-ratio: 1 / 1;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 auto;
	box-sizing: border-box;
}

/* Outer Ring */
.circle-progress-outer-ring {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 2px solid #E8C5B8;
	border-radius: 50%;
	box-sizing: border-box;
	pointer-events: none;
	transition: border-color 0.4s ease;
}

/* Nodes Wrapper */
.circle-progress-nodes {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	pointer-events: none;
}

/* Node Item - Pure CSS Trigonometric Positioning */
.circle-progress-node {
	position: absolute;
	top: 50%;
	left: 50%;
	width: var(--cp-node-size, 26px);
	height: var(--cp-node-size, 26px);
	margin-top: calc(var(--cp-node-size, 26px) / -2);
	margin-left: calc(var(--cp-node-size, 26px) / -2);
	pointer-events: auto;
	cursor: pointer;
	z-index: 10;
	transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
	transform: rotate(calc(var(--angle, 0) * 1deg)) translate(calc(var(--cp-circle-size, 540px) / 2)) rotate(calc(var(--angle, 0) * -1deg));
}

/* Dot element */
.circle-progress-node .node-dot {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background-color: #FFFFFF;
	border: 2px solid var(--step-accent, #E49B85);
	box-sizing: border-box;
	transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.3s ease, box-shadow 0.35s ease;
	outline: none;
}

/* Hover Dot State - Fills with Step Accent Color */
.circle-progress-node:hover .node-dot,
.circle-progress-node:focus-visible .node-dot {
	background-color: var(--step-accent, #E49B85) !important;
	border-color: var(--step-accent, #E49B85) !important;
	transform: scale(1.22);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--step-accent, #E49B85) 25%, transparent) !important;
}

/* Active Dot State - Fills with Step Accent Color */
.circle-progress-node.is-active .node-dot {
	background-color: var(--step-accent, #E49B85) !important;
	border-color: var(--step-accent, #E49B85) !important;
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--step-accent, #E49B85) 25%, transparent) !important;
	transform: scale(1.15);
}

/* Node Label */
.circle-progress-node .node-label {
	position: absolute;
	white-space: nowrap;
	font-family: 'Raleway', sans-serif;
	font-weight: 600;
	font-size: 16px;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: var(--step-accent, #E49B85);
	transition: color 0.35s ease, opacity 0.35s ease, transform 0.3s ease, font-weight 0.35s ease;
	pointer-events: auto;
	user-select: none;
}

.circle-progress-node:hover .node-label,
.circle-progress-node.is-active .node-label {
	color: var(--step-accent, #E49B85) !important;
	font-weight: 700;
}

/* Label Positions around dot in Circle Mode */
.circle-progress-nodes .node-label.pos-left {
	right: calc(100% + var(--cp-label-gap, 16px)) !important;
	left: auto !important;
	top: 50% !important;
	bottom: auto !important;
	transform: translateY(-50%) !important;
	text-align: right !important;
}

.circle-progress-nodes .node-label.pos-right {
	left: calc(100% + var(--cp-label-gap, 16px)) !important;
	right: auto !important;
	top: 50% !important;
	bottom: auto !important;
	transform: translateY(-50%) !important;
	text-align: left !important;
}

.circle-progress-nodes .node-label.pos-bottom {
	top: calc(100% + var(--cp-label-gap, 16px)) !important;
	bottom: auto !important;
	left: 50% !important;
	right: auto !important;
	transform: translateX(-50%) !important;
	text-align: center !important;
}

.circle-progress-nodes .node-label.pos-top {
	bottom: calc(100% + var(--cp-label-gap, 16px)) !important;
	top: auto !important;
	left: 50% !important;
	right: auto !important;
	transform: translateX(-50%) !important;
	text-align: center !important;
}

/* Inner Card Container */
.circle-progress-inner-card {
	position: relative;
	width: 82%;
	height: 82%;
	border-radius: 50%;
	background-color: #FFFFFF;
	border: 1.5px solid #E8C5B8;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 40px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
	overflow: hidden;
	z-index: 5;
}

.circle-progress-center-body {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Step Content Block */
.cp-step-content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transform: scale(0.95);
	transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s;
	padding: 10px;
	box-sizing: border-box;
}

.cp-step-content.is-active {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
	position: relative;
}

/* Center Icon */
.circle-progress-center-icon {
	width: 54px;
	height: 54px;
	margin-bottom: 14px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	color: var(--step-accent, #E49B85);
	transition: color 0.4s ease, transform 0.4s ease;
}

.circle-progress-center-icon svg {
	width: 100%;
	height: 100%;
	stroke: var(--step-accent, #E49B85);
}

.circle-progress-center-icon img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* Center Title (Raleway 600) */
.circle-progress-center-title {
	font-family: 'Raleway', sans-serif;
	font-weight: 600;
	font-size: 24px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--step-accent, #E49B85);
	margin: 0 0 16px 0;
	padding: 0;
	line-height: 1.2;
	transition: color 0.4s ease;
}

/* Center Description / Content (Raleway 400) */
.circle-progress-center-desc {
	font-family: 'Raleway', sans-serif;
	font-weight: 400;
	font-size: 13.5px;
	line-height: 1.65;
	color: var(--step-accent, #7D7571);
	max-width: 92%;
	margin: 0 auto;
	transition: color 0.4s ease;
}

.circle-progress-center-desc p,
.circle-progress-center-desc span {
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	margin: 0 0 10px 0;
	transition: color 0.4s ease;
}

.circle-progress-center-desc p:last-child {
	margin-bottom: 0;
}

/* ----------------------------------------------------
   STEPPER LAYOUT FOR TABLET & MOBILE (<= 1024px)
   ---------------------------------------------------- */

@media (max-width: 1024px) {

	.circle-progress-wrapper.layout-tb-stepper,
	.circle-progress-wrapper.layout-mb-stepper {
		padding: 20px 10px;
	}

	.circle-progress-wrapper.layout-tb-stepper .circle-progress-container,
	.circle-progress-wrapper.layout-mb-stepper .circle-progress-container {
		width: 100%;
		height: auto;
		aspect-ratio: auto;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.circle-progress-wrapper.layout-tb-stepper .circle-progress-outer-ring,
	.circle-progress-wrapper.layout-mb-stepper .circle-progress-outer-ring {
		display: none;
	}

	.circle-progress-wrapper.layout-tb-stepper .circle-progress-nodes,
	.circle-progress-wrapper.layout-mb-stepper .circle-progress-nodes {
		position: relative;
		top: auto;
		left: auto;
		width: 100%;
		height: auto;
		display: flex;
		flex-direction: row;
		justify-content: space-around;
		align-items: center;
		padding: 10px 0 25px 0;
		box-sizing: border-box;
	}

	.circle-progress-wrapper.layout-tb-stepper .circle-progress-node,
	.circle-progress-wrapper.layout-mb-stepper .circle-progress-node {
		position: relative;
		top: auto;
		left: auto;
		transform: none !important;
		margin: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		flex: 1;
		width: auto;
		height: auto;
	}

	.circle-progress-wrapper.layout-tb-stepper .node-dot,
	.circle-progress-wrapper.layout-mb-stepper .node-dot {
		width: 28px;
		height: 28px;
		margin-bottom: var(--cp-label-gap, 10px);
	}

	.circle-progress-wrapper.layout-tb-stepper .node-label,
	.circle-progress-wrapper.layout-mb-stepper .node-label {
		position: relative !important;
		top: auto !important;
		bottom: auto !important;
		left: auto !important;
		right: auto !important;
		transform: none !important;
		display: block;
		width: 100%;
		text-align: inherit;
		font-size: 13px;
		letter-spacing: 1px;
	}

	.circle-progress-wrapper.layout-tb-stepper .circle-progress-inner-card,
	.circle-progress-wrapper.layout-mb-stepper .circle-progress-inner-card {
		width: 100%;
		height: auto;
		border-radius: 20px;
		padding: 32px 24px;
		box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
	}

	.circle-progress-wrapper.layout-tb-stepper .circle-progress-center-body,
	.circle-progress-wrapper.layout-mb-stepper .circle-progress-center-body {
		height: auto;
	}

	.circle-progress-wrapper.layout-tb-stepper .cp-step-content,
	.circle-progress-wrapper.layout-mb-stepper .cp-step-content {
		position: relative;
		height: auto;
		padding: 0;
	}

	.circle-progress-wrapper.layout-tb-stepper .cp-step-content:not(.is-active),
	.circle-progress-wrapper.layout-mb-stepper .cp-step-content:not(.is-active) {
		display: none;
	}

	.circle-progress-wrapper.layout-tb-stepper .circle-progress-center-icon,
	.circle-progress-wrapper.layout-mb-stepper .circle-progress-center-icon {
		width: 48px;
		height: 48px;
		margin-bottom: 12px;
	}

	.circle-progress-wrapper.layout-tb-stepper .circle-progress-center-title,
	.circle-progress-wrapper.layout-mb-stepper .circle-progress-center-title {
		font-size: 20px;
		letter-spacing: 1.6px;
		margin-bottom: 12px;
	}

	.circle-progress-wrapper.layout-tb-stepper .circle-progress-center-desc,
	.circle-progress-wrapper.layout-mb-stepper .circle-progress-center-desc {
		font-size: 13px;
		line-height: 1.6;
		max-width: 100%;
	}
}
