/*
 * Sell page + valuation form + thank-you page.
 * Enqueued on template-sell.php and template-thank-you.php.
 * All values use existing design tokens — no new variables.
 */

/*=================================================================
# SELL PAGE — template-sell.php
=================================================================*/

.sell-header {
	padding: var(--space-9) var(--space-5) var(--space-7);
	text-align: center;
	background-color: var(--bone);
}

.sell-header__inner {
	max-width: var(--prose-max);
	margin-inline: auto;
}

.sell-header .page-eyebrow {
	display: block;
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mute);
	margin-bottom: var(--space-3);
}

.sell-title {
	font-family: 'Fraunces', Georgia, serif;
	font-size: clamp(var(--text-2xl), 5vw, var(--text-3xl));
	font-weight: 700;
	line-height: 1.1;
	color: var(--ink);
	margin: 0 0 var(--space-5);
}

.sell-rule {
	width: 60px;
	height: 2px;
	background-color: var(--gold);
	border: none;
	margin: 0 auto var(--space-6);
}

.sell-intro {
	font-size: var(--text-lg);
	line-height: 1.7;
	color: var(--ink);
	text-align: left;
}

.sell-intro p {
	margin: 0 0 var(--space-4);
}

.sell-intro p:last-child {
	margin-bottom: 0;
}

/* The pivot line — short, emphatic. */
.sell-intro__pivot {
	font-family: 'Fraunces', Georgia, serif;
	font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
	font-style: italic;
	color: var(--wine);
	margin-top: var(--space-5) !important;
}

/*--------------------------------------------------------------
# Sell prose body
--------------------------------------------------------------*/

.sell-content {
	background-color: var(--paper);
	padding: var(--space-8) var(--space-5);
}

.sell-prose {
	max-width: var(--prose-max);
	margin-inline: auto;
	font-size: var(--text-lg);
	line-height: 1.7;
	color: var(--ink);
}

.sell-prose h2 {
	font-family: 'Fraunces', Georgia, serif;
	font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
	font-weight: 700;
	line-height: 1.2;
	color: var(--ink);
	margin: var(--space-7) 0 var(--space-4);
}

.sell-prose h2:first-child {
	margin-top: 0;
}

.sell-prose p {
	margin: 0 0 var(--space-4);
}

.sell-prose p:last-child {
	margin-bottom: 0;
}

.sell-prose a {
	color: var(--wine);
}

.sell-prose a:hover,
.sell-prose a:focus {
	color: var(--wine-dark);
}

/*=================================================================
# Form section — wraps the valuation form
=================================================================*/

.sell-form-section {
	background-color: var(--bone);
	padding: var(--space-8) var(--space-5);
	scroll-margin-top: calc( var(--header-height) + var(--space-3) );
}

.sell-form-section__inner {
	max-width: 640px;
	margin-inline: auto;
	background-color: var(--paper);
	border: 1px solid var(--rule);
	border-radius: 4px;
	padding: var(--space-7);
}

.sell-form-section__inner .eyebrow {
	margin-bottom: var(--space-2);
}

.sell-form-section__title {
	font-family: 'Fraunces', Georgia, serif;
	font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
	font-weight: 700;
	color: var(--ink);
	line-height: 1.2;
	margin: 0 0 var(--space-3);
}

.sell-form-section__lead {
	font-size: var(--text-base);
	line-height: 1.6;
	color: var(--mute);
	margin: 0 0 var(--space-5);
}

/* Form styling is in css/forms.css (generic .bbw-form classes,
   loaded on every template that renders a form). */

/*=================================================================
# THANK YOU PAGE — template-thank-you.php
=================================================================*/

.thank-you {
	padding: var(--space-9) var(--space-5);
	background-color: var(--bone);
}

.thank-you__inner {
	max-width: var(--prose-max);
	margin-inline: auto;
	text-align: center;
}

.thank-you .page-eyebrow {
	display: block;
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: var(--space-3);
}

.thank-you__title {
	font-family: 'Fraunces', Georgia, serif;
	font-size: clamp(var(--text-2xl), 5vw, var(--text-3xl));
	font-weight: 700;
	line-height: 1.1;
	color: var(--ink);
	margin: 0 0 var(--space-5);
}

.thank-you__rule {
	width: 60px;
	height: 2px;
	background-color: var(--gold);
	border: none;
	margin: 0 auto var(--space-6);
}

.thank-you__body {
	text-align: left;
}

.thank-you__lead {
	font-size: var(--text-lg);
	line-height: 1.6;
	color: var(--ink);
	margin: 0 0 var(--space-6);
}

.thank-you__subtitle {
	font-family: 'Fraunces', Georgia, serif;
	font-size: var(--text-xl);
	font-weight: 700;
	color: var(--ink);
	margin: 0 0 var(--space-4);
}

.thank-you__steps {
	list-style: none;
	margin: 0 0 var(--space-6);
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.thank-you__steps li {
	display: flex;
	gap: var(--space-4);
	background-color: var(--paper);
	border: 1px solid var(--rule);
	border-radius: 4px;
	padding: var(--space-4);
}

.thank-you__step-num {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: var(--wine);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Fraunces', Georgia, serif;
	font-size: var(--text-base);
	font-weight: 700;
	line-height: 1;
}

.thank-you__steps strong {
	display: block;
	font-family: 'Fraunces', Georgia, serif;
	font-size: var(--text-lg);
	font-weight: 700;
	color: var(--ink);
	margin-bottom: var(--space-1);
}

.thank-you__steps p {
	margin: 0;
	font-size: var(--text-base);
	line-height: 1.6;
	color: var(--mute);
}

.thank-you__contact {
	font-size: var(--text-base);
	line-height: 1.6;
	color: var(--mute);
	margin: var(--space-6) 0 0;
}

.thank-you__contact a {
	color: var(--wine);
}

.thank-you__actions {
	display: flex;
	gap: var(--space-3);
	justify-content: center;
	flex-wrap: wrap;
	margin-top: var(--space-6);
}

/*=================================================================
# Responsive
=================================================================*/

@media (max-width: 700px) {
	.sell-header,
	.thank-you {
		padding: var(--space-7) var(--space-4) var(--space-6);
	}

	.sell-content,
	.sell-form-section {
		padding: var(--space-7) var(--space-4);
	}

	.sell-form-section__inner {
		padding: var(--space-5);
	}

	.sell-prose,
	.sell-intro {
		font-size: var(--text-base);
	}

	.thank-you__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.thank-you__actions .btn {
		justify-content: center;
	}

	.thank-you__steps li {
		padding: var(--space-3);
	}
}
