body.page .stillwest-quote-page {
	background: #f4f3ef;
	color: #1e1e1e;
}

.stillwest-quote-page__inner {
	box-sizing: border-box;
	margin: 0 auto;
	max-width: 900px;
	padding: clamp(32px, 6vw, 84px) 4vw clamp(64px, 8vw, 120px);
	width: 100%;
}

.stillwest-quote-page__header {
	/*
	 * padding-bottom (not margin-bottom) creates the gap between the
	 * introductory text and the horizontal line that follows it. That line
	 * is not rendered by this plugin -- there is no border-bottom,
	 * ::before/::after, or <hr> anywhere in this template or stylesheet
	 * responsible for it (confirmed by inspection); it renders at or
	 * immediately after this header's own edge, most likely via the
	 * Kadence theme, which this plugin does not modify. Margin only adds
	 * space outside an element's box, so increasing margin-bottom here
	 * previously could only ever push the *next* element (or whatever
	 * comes after the line) further away -- it could never create space
	 * between this text and the line itself. Padding-bottom guarantees
	 * that gap regardless of what sits outside this element.
	 *
	 * margin-bottom is restored to its original value, which governs only
	 * the separate gap between the line and "Selected Artwork" below it.
	 */
	margin: 0 auto clamp(28px, 4vw, 48px);
	max-width: 560px;
	padding-bottom: 18px;
	text-align: center;
}

.stillwest-quote-page__title {
	color: #1e1e1e;
	font-family: "Libre Baskerville", Georgia, serif;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	font-weight: 400;
	margin: 0 0 12px;
}

.stillwest-quote-page__intro {
	color: #2f2f2f;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: 0.92rem;
	line-height: 1.6;
	margin: 0;
}

.stillwest-quote-page__status {
	color: #2f2f2f;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: 0.9rem;
	margin: 0 auto;
	max-width: 480px;
	text-align: center;
}

.stillwest-quote-page__empty {
	margin: clamp(24px, 4vw, 48px) auto 0;
	max-width: 420px;
	text-align: center;
}

.stillwest-quote-page__empty-message {
	color: #1e1e1e;
	font-family: "Libre Baskerville", Georgia, serif;
	font-size: clamp(1rem, 1.2vw, 1.12rem);
	font-weight: 400;
	line-height: 1.45;
	margin: 0 0 14px;
}

.stillwest-quote-page__empty-link {
	border-bottom: 1px solid rgba(111, 128, 144, 0.5);
	color: #1e1e1e;
	display: inline-flex;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	padding-bottom: 3px;
	text-decoration: none;
}

.stillwest-quote-page__empty-link:hover,
.stillwest-quote-page__empty-link:focus {
	border-bottom-color: #6f8090;
	color: #6f8090;
}

.stillwest-quote-page__empty-link:focus-visible {
	outline: 2px solid #6f8090;
	outline-offset: 5px;
}

.stillwest-quote-page__empty-link span {
	display: inline-block;
	margin-left: 0.35em;
}

/* Submission confirmation -- same restrained treatment as the empty state. */

.stillwest-quote-confirmation {
	margin: clamp(24px, 4vw, 48px) auto 0;
	max-width: 460px;
	text-align: center;
}

.stillwest-quote-confirmation__title {
	color: #1e1e1e;
	font-family: "Libre Baskerville", Georgia, serif;
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	font-weight: 400;
	margin: 0 0 14px;
}

.stillwest-quote-confirmation__title:focus {
	outline: none;
}

.stillwest-quote-confirmation__message {
	color: #2f2f2f;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: 0.92rem;
	line-height: 1.6;
	margin: 0 0 24px;
}

/* Form structure */

.stillwest-quote-form__section {
	margin-top: clamp(32px, 5vw, 56px);
}

.stillwest-quote-form__section:first-child {
	margin-top: 0;
}

.stillwest-quote-form__heading {
	color: #1e1e1e;
	font-family: "Libre Baskerville", Georgia, serif;
	font-size: clamp(1.1rem, 1.6vw, 1.3rem);
	font-weight: 400;
	margin: 0 0 20px;
}

/* Selected Artwork list */

.stillwest-quote-form__artwork-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.stillwest-quote-item {
	border-bottom: 1px solid rgba(138, 133, 125, 0.25);
	display: flex;
	gap: 24px;
	padding: 24px 0;
}

.stillwest-quote-form__artwork-list > .stillwest-quote-item:first-child {
	padding-top: 0;
}

.stillwest-quote-item__link {
	display: block;
	flex: 0 0 300px;
}

.stillwest-quote-item__figure {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
	margin: 0;
}

.stillwest-quote-item__image {
	display: block;
	height: auto;
	max-width: 300px;
	width: 100%;
}

.stillwest-quote-item__info {
	flex: 1 1 auto;
	min-width: 0;
}

.stillwest-quote-item__title {
	color: #1e1e1e;
	display: block;
	font-family: "Libre Baskerville", Georgia, serif;
	font-size: 1.05rem;
	font-weight: 400;
	text-decoration: none;
}

.stillwest-quote-item__title:hover,
.stillwest-quote-item__title:focus {
	color: #6f8090;
}

.stillwest-quote-item__location {
	color: #2f2f2f;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: 0.85rem;
	margin: 2px 0 0;
}

.stillwest-quote-item__fieldset {
	border: none;
	margin: 18px 0 0;
	padding: 0;
}

.stillwest-quote-item__fieldset legend {
	color: #8a857d;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	margin: 0 0 8px;
	padding: 0;
	text-transform: uppercase;
}

.stillwest-quote-item__fieldset > div {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
}

.stillwest-quote-item__option {
	align-items: center;
	display: inline-flex;
	gap: 6px;
}

.stillwest-quote-item__option input[type="radio"] {
	accent-color: #6f8090;
	margin: 0;
}

.stillwest-quote-item__option label {
	color: #1e1e1e;
	cursor: pointer;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: 0.85rem;
}

.stillwest-quote-item__size-message {
	color: #2f2f2f;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: 0.85rem;
	font-style: italic;
	margin: 0 0 12px;
}

.stillwest-quote-item__custom-size {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.stillwest-quote-item__custom-size label {
	color: #1e1e1e;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: 0.85rem;
}

.stillwest-quote-item__custom-size input[type="number"] {
	border: 1px solid rgba(138, 133, 125, 0.5);
	border-radius: 2px;
	color: #1e1e1e;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: 0.85rem;
	padding: 5px 8px;
	width: 80px;
}

.stillwest-quote-item__custom-size input[type="number"]:disabled {
	background: rgba(138, 133, 125, 0.08);
	color: #8a857d;
}

.stillwest-quote-item__custom-size input[type="number"]:focus-visible {
	outline: 2px solid #6f8090;
	outline-offset: 2px;
}

.stillwest-quote-item__unit {
	color: #2f2f2f;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: 0.85rem;
}

.stillwest-quote-item__custom-result {
	color: #6f8090;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: 0.85rem;
	font-weight: 500;
}

.stillwest-quote-item__quantity {
	align-items: center;
	display: flex;
	gap: 8px;
	margin-top: 18px;
}

.stillwest-quote-item__quantity label {
	color: #8a857d;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.stillwest-quote-item__quantity input[type="number"] {
	border: 1px solid rgba(138, 133, 125, 0.5);
	border-radius: 2px;
	color: #1e1e1e;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: 0.85rem;
	padding: 5px 8px;
	width: 64px;
}

.stillwest-quote-item__quantity input[type="number"]:focus-visible {
	outline: 2px solid #6f8090;
	outline-offset: 2px;
}

/* Contact fields */

.stillwest-quote-form__field {
	margin-top: 18px;
}

.stillwest-quote-form__field:first-child {
	margin-top: 0;
}

.stillwest-quote-form__field label {
	color: #1e1e1e;
	display: block;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: 0.85rem;
	font-weight: 500;
	margin-bottom: 6px;
}

.stillwest-quote-form__field input,
.stillwest-quote-form__field textarea {
	background: #ffffff;
	border: 1px solid rgba(138, 133, 125, 0.5);
	border-radius: 2px;
	box-sizing: border-box;
	color: #1e1e1e;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: 0.92rem;
	padding: 10px 12px;
	width: 100%;
}

.stillwest-quote-form__field input:focus-visible,
.stillwest-quote-form__field textarea:focus-visible {
	outline: 2px solid #6f8090;
	outline-offset: 2px;
}

.stillwest-quote-form__field textarea {
	resize: vertical;
}

/*
 * Defensive text-entry field contrast.
 *
 * Live testing showed these fields rendering with a dark blue-gray
 * background and dark text -- illegible, and far heavier than intended.
 * The rules above already specify a white background and dark text, but
 * Kadence's own theme-level input styling was winning the cascade on the
 * live site. Kadence theme files cannot be modified (see project
 * architecture), so this plugin asserts its own field appearance here with
 * higher selector specificity and `!important` on the specific visual
 * properties involved, scoped only to this page's own form controls.
 *
 * This also covers the Quantity and Custom Size / Long Dimension number
 * inputs, which previously had no explicit background at all and so were
 * fully exposed to the same theme default.
 */
.stillwest-quote-page .stillwest-quote-form input[type="text"],
.stillwest-quote-page .stillwest-quote-form input[type="email"],
.stillwest-quote-page .stillwest-quote-form input[type="tel"],
.stillwest-quote-page .stillwest-quote-form input[type="number"],
.stillwest-quote-page .stillwest-quote-form textarea {
	background-color: #ffffff !important;
	border-color: rgba(138, 133, 125, 0.5) !important;
	color: #1e1e1e !important;
}

.stillwest-quote-page .stillwest-quote-form input[type="text"]:focus-visible,
.stillwest-quote-page .stillwest-quote-form input[type="email"]:focus-visible,
.stillwest-quote-page .stillwest-quote-form input[type="tel"]:focus-visible,
.stillwest-quote-page .stillwest-quote-form input[type="number"]:focus-visible,
.stillwest-quote-page .stillwest-quote-form textarea:focus-visible {
	background-color: #ffffff !important;
	border-color: #6f8090 !important;
	color: #1e1e1e !important;
	outline: 2px solid #6f8090;
	outline-offset: 2px;
}

.stillwest-quote-page .stillwest-quote-form input::placeholder,
.stillwest-quote-page .stillwest-quote-form textarea::placeholder {
	color: #2f2f2f;
	opacity: 1;
}

.stillwest-quote-form__field-error {
	color: #b3261e;
	display: block;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: 0.78rem;
	margin-top: 6px;
	min-height: 1em;
}

/* Summary -- intentionally understated, never visually dominant. */

.stillwest-quote-form__section--summary {
	border-top: 1px solid rgba(138, 133, 125, 0.25);
	padding-top: clamp(24px, 4vw, 32px);
}

.stillwest-quote-form__summary-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.stillwest-quote-summary-item {
	color: #2f2f2f;
	display: flex;
	flex-wrap: wrap;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: 0.82rem;
	gap: 4px 12px;
	padding: 6px 0;
}

/*
 * Subtle vertical divider between Title / Media / Size / Quantity, so the
 * line reads as distinct pieces of information rather than one run-on
 * string. Only applied between items that sit on the same visual line;
 * removed below 599px, where flex-wrap can drop an item to a new line and
 * a leading vertical rule there would no longer make visual sense.
 */
.stillwest-quote-summary-item > * + * {
	border-left: 1px solid rgba(138, 133, 125, 0.35);
	padding-left: 12px;
}

.stillwest-quote-summary-item__title {
	color: #1e1e1e;
	font-weight: 500;
}

.stillwest-quote-summary-item__detail--pending {
	color: #8a857d;
	font-style: italic;
}

/* Submission */

.stillwest-quote-form__error {
	color: #b3261e;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: 0.85rem;
	margin: 20px 0 0;
}

.stillwest-quote-form__submit {
	background-color: #6f8090;
	border: none;
	border-radius: 2px;
	color: #f4f3ef;
	cursor: pointer;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	margin-top: 24px;
	padding: 14px 32px;
	text-transform: uppercase;
	transition: background-color 150ms ease;
}

/*
 * Text color is asserted explicitly (not just inherited from the resting
 * state) and reinforced with elevated specificity + `!important`, because
 * live testing showed a Kadence theme-level hover color (blue) winning the
 * cascade here otherwise -- the same class of override already found and
 * fixed for this page's text-entry fields. Background is unchanged.
 */
.stillwest-quote-form__submit:hover,
.stillwest-quote-form__submit:focus {
	background-color: #1e1e1e;
	color: #f4f3ef;
}

.stillwest-quote-page .stillwest-quote-form__submit:hover,
.stillwest-quote-page .stillwest-quote-form__submit:focus {
	color: #f4f3ef !important;
}

.stillwest-quote-form__submit:focus-visible {
	outline: 2px solid #6f8090;
	outline-offset: 3px;
}

.stillwest-quote-form__submit:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

@media (max-width: 599px) {
	.stillwest-quote-item {
		flex-direction: column;
	}

	.stillwest-quote-item__link {
		flex-basis: auto;
		max-width: 220px;
	}

	.stillwest-quote-form__submit {
		width: 100%;
	}

	.stillwest-quote-summary-item > * + * {
		border-left: none;
		padding-left: 0;
	}
}
