/* ARSVEEN Measurements */
:root {
	--am-accent: var(--arsveen-accent, #6b2d5c);
	--am-accent-dark: var(--arsveen-accent-dark, #4f1f43);
	--am-line: #d9cfc4;
	--am-field: #c9bdb0;
	--am-soft: #f7f1ec;
	--am-text: #2b2523;
}

/* Layout: form left, diagram right (sticky). */
.am-wrap,
.am-cf7-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 40px;
	align-items: start;
	max-width: 1100px;
	margin: 0 auto;
	color: var(--am-text);
}
.am-diagram-col {
	position: sticky;
	top: 110px;
}

/* Diagram */
.am-diagram {
	background: #fff;
	border: 1px solid var(--am-line);
	border-radius: 12px;
	padding: 16px;
	text-align: center;
}
.am-svg {
	width: 100%;
	height: auto;
	max-height: 62vh;
	display: block;
	margin: 0 auto;
}
.am-figure .am-kameez { fill: #e9ddd2; stroke: #b9a898; stroke-width: 1.2; }
.am-figure .am-trouser { fill: #d8c9bb; stroke: #b9a898; stroke-width: 1.2; }
.am-figure .am-skin { fill: #edd3bf; stroke: #c8a68d; stroke-width: 1; }
.am-figure .am-hair { fill: #4a3a33; }
.am-figure .am-neckline { fill: none; stroke: #b9a898; stroke-width: 1.4; }
.am-figure .am-trim { stroke: #c9b6a3; stroke-width: 2; }
.am-figure .am-cuff { fill: #d9cabd; stroke: #b9a898; stroke-width: 1.2; }
.am-figure .am-button-dot { fill: #9c8a79; }
.am-svg[hidden], [data-for][hidden] { display: none !important; }

.am-m line,
.am-m ellipse {
	fill: none;
	stroke: #a99a8c;
	stroke-width: 1.4;
	stroke-dasharray: 4 3;
	opacity: 0.45;
	transition: opacity 0.2s, stroke 0.2s, stroke-width 0.2s;
	cursor: pointer;
}
.am-m .am-tick { stroke-dasharray: none; }
.am-m.is-active line,
.am-m.is-active ellipse {
	stroke: var(--am-accent);
	stroke-width: 3;
	stroke-dasharray: none;
	opacity: 1;
}
.am-diagram.has-active .am-m:not(.is-active) line,
.am-diagram.has-active .am-m:not(.is-active) ellipse {
	opacity: 0.18;
}

.am-caption {
	margin-top: 12px;
	padding: 12px 14px;
	background: var(--am-soft);
	border-radius: 8px;
	text-align: left;
	font-size: 14px;
	line-height: 1.5;
	min-height: 84px;
}
.am-caption-title {
	display: block;
	color: var(--am-accent);
	font-size: 15px;
	margin-bottom: 4px;
}

/* Our measurement form */
.am-items {
	background: var(--am-soft);
	border-radius: 10px;
	padding: 18px 20px;
	margin-bottom: 26px;
}
.am-items h3 { margin: 0 0 12px; font-size: 20px; }
.am-items ul { list-style: none; margin: 0; padding: 0; }
.am-items li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 0;
	font-weight: 600;
}
.am-items li img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; }
.am-once { margin: 12px 0 0; font-size: 14px; }

.am-intro { font-size: 14px; margin-bottom: 18px; }
.am-group {
	border: 0;
	border-top: 1px solid var(--am-line);
	margin: 0 0 10px;
	padding: 18px 0 4px;
}
.am-group legend {
	font-size: 22px;
	padding: 0 10px 0 0;
}
.am-group-shirt,
.am-group-trouser {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 18px;
}
.am-group-shirt legend,
.am-group-trouser legend { grid-column: 1 / -1; }
.am-field { margin: 0 0 16px; }
.am-field label,
.am-field .am-label {
	display: block;
	font-size: 15px;
	margin-bottom: 6px;
}
.am-req { color: var(--am-accent); }
.am-radios { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.am-radios label { display: inline-flex; align-items: center; gap: 6px; margin: 0; }

.am-form input[type="text"],
.am-form input[type="number"],
.am-form select,
.am-form textarea,
.am-cf7-wrap .wpcf7-form input[type="text"],
.am-cf7-wrap .wpcf7-form input[type="email"],
.am-cf7-wrap .wpcf7-form input[type="tel"],
.am-cf7-wrap .wpcf7-form input[type="number"],
.am-cf7-wrap .wpcf7-form input[type="date"],
.am-cf7-wrap .wpcf7-form select,
.am-cf7-wrap .wpcf7-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid var(--am-field);
	border-radius: 6px;
	background: #fff;
	font-size: 15px;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.am-form .am-field.is-active input,
.am-form .am-field.is-active select,
.am-cf7-wrap .wpcf7-form .is-active-input {
	border-color: var(--am-accent);
	box-shadow: 0 0 0 3px rgba(107, 45, 92, 0.15);
	outline: none;
}

.am-button,
.am-cf7-wrap .wpcf7-form input[type="submit"] {
	display: inline-block;
	background: var(--am-accent);
	color: #fff !important;
	border: 0;
	border-radius: 6px;
	padding: 14px 32px;
	font-size: 16px;
	cursor: pointer;
	text-decoration: none;
}
.am-button:hover,
.am-cf7-wrap .wpcf7-form input[type="submit"]:hover { background: var(--am-accent-dark); }

/* Contact Form 7 (Custom Order page) */
.am-cf7-wrap .wpcf7-form h3 {
	font-size: 22px;
	margin: 30px 0 14px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--am-line);
}
.am-cf7-wrap .wpcf7-form h4 { font-size: 18px; margin: 22px 0 10px; }
.am-cf7-wrap .wpcf7-form label,
.am-cf7-wrap .wpcf7-form p { display: block; margin: 0 0 16px; font-size: 15px; }
.am-cf7-wrap .wpcf7-form .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.am-cf7-wrap .wpcf7-form .wpcf7-list-item { margin: 6px 22px 0 0; }
.am-cf7-wrap .wpcf7-form .wpcf7-list-item label { display: inline-flex; gap: 6px; margin: 0; }

/* Mobile: diagram on top, small and sticky. */
@media (max-width: 860px) {
	.am-wrap,
	.am-cf7-wrap { grid-template-columns: 1fr; gap: 16px; }
	.am-diagram-col {
		order: -1;
		position: sticky;
		top: 0;
		z-index: 20;
	}
	.am-diagram {
		display: flex;
		gap: 12px;
		align-items: center;
		padding: 8px 10px;
		box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
	}
	.am-svg { width: 34%; max-height: 210px; margin: 0; }
	.am-caption { margin: 0; flex: 1; min-height: 0; font-size: 13px; }
	.am-group-shirt,
	.am-group-trouser { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
	.am-group-shirt,
	.am-group-trouser { grid-template-columns: 1fr; }
}
