/**
 * Request Cloth Samples page (template/request-cloth-samples.php).
 */

.page-request-cloth-samples {
	--ar-gold: rgb(200, 169, 106);
	--ar-ink: rgb(17, 17, 17);
	--ar-foreground: rgb(17, 17, 17);
	--ar-muted-foreground: #6b6b6b;
	--ar-border: #ececea;
	--ar-muted-bg: #f6f6f3;
	--ar-bg: #ffffff;
	background: var(--ar-bg);
	color: var(--ar-foreground);
}

/* ----- Hero ----- */
.page-request-cloth-samples .rcs-hero {
	position: relative;
	overflow: hidden;
	background: var(--ar-ink);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding: 128px 0 64px;
}

.page-request-cloth-samples .rcs-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	opacity: 0.28;
	pointer-events: none;
}

.page-request-cloth-samples .rcs-hero__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		105deg,
		rgba(17, 17, 17, 0.97) 0%,
		rgba(17, 17, 17, 0.72) 55%,
		rgba(17, 17, 17, 0.4) 100%
	);
	pointer-events: none;
}

.page-request-cloth-samples .rcs-hero__inner {
	position: relative;
	padding: 0 40px;
}

@media (min-width: 768px) {
	.page-request-cloth-samples .rcs-hero__inner {
		padding: 0 80px;
	}
}

.page-request-cloth-samples .rcs-hero__rule {
	width: 28px;
	height: 1px;
	background: var(--ar-gold);
	margin-bottom: 28px;
}

.page-request-cloth-samples .rcs-hero__kicker {
	margin: 0 0 20px;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: rgba(200, 169, 106, 0.6);
}

.page-request-cloth-samples .rcs-hero__title {
	margin: 0;
	color: #fff;
	font-size: clamp(2.2rem, 4.5vw, 4.2rem);
	font-weight: 300;
	letter-spacing: -0.03em;
	line-height: 1.05;
}

.page-request-cloth-samples .rcs-hero__lead {
	margin: 20px 0 0;
	max-width: 500px;
	font-size: 14px;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.45);
}

/* ----- Form section ----- */
.page-request-cloth-samples .rcs-form-section {
	padding: 48px 0 72px;
}

@media (min-width: 768px) {
	.page-request-cloth-samples .rcs-form-section {
		padding: 64px 0 96px;
	}
}

.page-request-cloth-samples .rcs-form-section__inner {
	padding: 0 32px;
}

@media (min-width: 768px) {
	.page-request-cloth-samples .rcs-form-section__inner {
		padding: 0 64px;
	}
}

.page-request-cloth-samples .rcs-form {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.page-request-cloth-samples .rcs-form__block {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.page-request-cloth-samples .rcs-form__block-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 4px;
}

.page-request-cloth-samples .rcs-form__kicker {
	margin: 0;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--ar-muted-foreground);
}

.page-request-cloth-samples .rcs-form__counter {
	margin: 0;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--ar-gold);
}

.page-request-cloth-samples .rcs-form__fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.page-request-cloth-samples .rcs-form__grid {
	display: grid;
	gap: 16px;
}

@media (min-width: 640px) {
	.page-request-cloth-samples .rcs-form__grid--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.page-request-cloth-samples .rcs-form__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.page-request-cloth-samples .rcs-form__label {
	display: block;
	margin: 0;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--ar-muted-foreground);
}

.page-request-cloth-samples .rcs-form__required {
	margin-left: 4px;
	color: var(--ar-gold);
}

.page-request-cloth-samples .rcs-form__input {
	width: 100%;
	padding: 12px 16px;
	font-family: "Verdana Pro", Verdana, Geneva, sans-serif;
	font-size: 13px;
	color: var(--ar-foreground);
	background: #fff;
	border: 1px solid var(--ar-border);
	border-radius: 0;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	appearance: none;
}

.page-request-cloth-samples .rcs-form__input:focus {
	outline: 0;
	border-color: var(--ar-gold);
	box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.15);
}

/* ----- Accordions ----- */
.page-request-cloth-samples .rcs-accordions {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.page-request-cloth-samples .rcs-accordion {
	border: 1px solid var(--ar-border);
	background: #fff;
}

.page-request-cloth-samples .rcs-accordion__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 12px 16px;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: left;
	transition: background-color 0.15s ease;
}

.page-request-cloth-samples .rcs-accordion__toggle:hover,
.page-request-cloth-samples .rcs-accordion__toggle:focus-visible {
	background: rgba(246, 246, 243, 0.8);
	outline: 0;
}

.page-request-cloth-samples .rcs-accordion__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.page-request-cloth-samples .rcs-accordion__toggle svg {
	flex-shrink: 0;
	color: var(--ar-muted-foreground);
	transition: transform 0.2s ease;
}

.page-request-cloth-samples .rcs-accordion__label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--ar-foreground);
}

.page-request-cloth-samples .rcs-accordion__panel[hidden] {
	display: none;
}

.page-request-cloth-samples .rcs-accordion__panel {
	padding: 0 16px 16px;
	border-top: 1px solid var(--ar-border);
	background: #fff;
}

.page-request-cloth-samples .rcs-accordion__empty {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--ar-muted-foreground);
}

/* ----- Swatches ----- */
.page-request-cloth-samples .rcs-swatches {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	padding-top: 12px;
}

@media (min-width: 640px) {
	.page-request-cloth-samples .rcs-swatches {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.page-request-cloth-samples .rcs-swatch {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding: 0;
	border: 1px solid var(--ar-border);
	background: #fff;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.page-request-cloth-samples .rcs-swatch:hover:not(:disabled),
.page-request-cloth-samples .rcs-swatch:focus-visible:not(:disabled) {
	border-color: var(--ar-gold);
	outline: 0;
}

.page-request-cloth-samples .rcs-swatch.is-selected {
	border-color: var(--ar-gold);
	box-shadow: 0 0 0 1px var(--ar-gold);
}

.page-request-cloth-samples .rcs-swatch.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.page-request-cloth-samples .rcs-swatch__img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.page-request-cloth-samples .rcs-swatch__name {
	display: block;
	padding: 8px 10px;
	font-size: 11px;
	line-height: 1.4;
	color: var(--ar-foreground);
}

.page-request-cloth-samples .rcs-form__selected {
	margin-top: 8px;
	padding-top: 16px;
	border-top: 1px solid var(--ar-border);
}

.page-request-cloth-samples .rcs-form__selected-label {
	margin: 0 0 8px;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--ar-muted-foreground);
}

.page-request-cloth-samples .rcs-form__selected-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.page-request-cloth-samples .rcs-form__selected-list li {
	font-size: 12px;
	padding: 6px 10px;
	background: var(--ar-muted-bg);
	border: 1px solid var(--ar-border);
	color: var(--ar-foreground);
}

.page-request-cloth-samples .rcs-form__btn {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 32px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: #fff;
	background: var(--ar-gold);
	border: 0;
	cursor: pointer;
	transition: opacity 0.25s ease;
}

.page-request-cloth-samples .rcs-form__btn:hover:not(:disabled),
.page-request-cloth-samples .rcs-form__btn:focus-visible:not(:disabled) {
	opacity: 0.88;
	outline: 0;
}

.page-request-cloth-samples .rcs-form__btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.page-request-cloth-samples .rcs-form__confirmation {
	margin-top: 24px;
	padding: 32px 0;
}

.page-request-cloth-samples .rcs-form__confirmation-kicker {
	margin: 0 0 12px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--ar-gold);
}

.page-request-cloth-samples .rcs-form__confirmation-title {
	margin: 0 0 12px;
	font-size: clamp(1.5rem, 2.4vw, 1.875rem);
	font-weight: 300;
	letter-spacing: -0.02em;
	color: var(--ar-foreground);
}

.page-request-cloth-samples .rcs-form__confirmation-body {
	margin: 0;
	font-size: 13px;
	line-height: 1.85;
	color: var(--ar-muted-foreground);
}

@media (prefers-reduced-motion: reduce) {
	.page-request-cloth-samples .rcs-accordion__toggle,
	.page-request-cloth-samples .rcs-accordion__toggle svg,
	.page-request-cloth-samples .rcs-swatch,
	.page-request-cloth-samples .rcs-form__input,
	.page-request-cloth-samples .rcs-form__btn {
		transition: none;
	}
}

/* ----- Success state (replaces the form after submission) ----- */
.page-request-cloth-samples .rcs-success__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 24px;
	border: 1px solid rgba(200, 169, 106, 0.31);
	background: rgba(200, 169, 106, 0.06);
	color: var(--ar-gold);
}

.page-request-cloth-samples .rcs-success__kicker {
	margin: 0 0 8px;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--ar-gold);
}

.page-request-cloth-samples .rcs-success__kicker--step {
	margin-top: 0;
}

.page-request-cloth-samples .rcs-success__title {
	margin: 0 0 12px;
	font-size: 1.5rem;
	font-weight: 300;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.page-request-cloth-samples .rcs-success__subtitle {
	margin: 0 0 12px;
	font-size: 1.25rem;
	font-weight: 300;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.page-request-cloth-samples .rcs-success__samples {
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.85;
	color: var(--ar-muted-foreground);
}

.page-request-cloth-samples .rcs-success__text {
	margin: 0 0 40px;
	font-size: 14px;
	line-height: 1.85;
	color: var(--ar-muted-foreground);
}

.page-request-cloth-samples .rcs-success__text--narrow {
	margin: 0 0 24px;
	max-width: 512px;
}

.page-request-cloth-samples .rcs-success__text strong {
	color: var(--ar-foreground);
	font-weight: 400;
}

.page-request-cloth-samples .rcs-success__email {
	color: var(--ar-foreground);
}

.page-request-cloth-samples .rcs-success__calendar {
	width: 100%;
	height: 650px;
	overflow: hidden;
	border: 1px solid var(--ar-border);
}

.page-request-cloth-samples .rcs-success__calendar iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.page-request-cloth-samples .rcs-success__call {
	margin: 16px 0 0;
	font-size: 11px;
	color: var(--ar-muted-foreground);
}

.page-request-cloth-samples .rcs-success__call a {
	color: var(--ar-foreground);
	text-decoration: underline;
	text-underline-offset: 2px;
}
