/* Buy-back landing page: price list (left) + calculator/enquiry form (right).
 * Own --vpmb-* variables (not shared with metals-dev-integration's --mdi-box-*
 * or via-metal-price-list's --vmpl-*) since this is an independent plugin.
 * Light, flat card style (thin borders, white background, no heavy chrome),
 * modeled after the competitor's buy-back page: plain section titles rather
 * than boxed sub-panels, and both columns stretched to the same height.
 */

.vpmb-buyback {
	--vpmb-border: #e6e1d6;
	--vpmb-accent: #b8892b;
	--vpmb-text: #1a1a1a;
	--vpmb-label: #8a7a55;
	--vpmb-row-alt: #fbfaf7;

	display: grid;
	grid-template-columns: 1fr 1.2fr;
	align-items: stretch;
	gap: 1rem;
	margin: 1.5em 0;
}

.vpmb-buyback__prices,
.vpmb-buyback__calculator {
	min-width: 0;
}

.vpmb-buyback__title {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--vpmb-text);
}

.vpmb-price-list {
	height: 100%;
	border: 1px solid var(--vpmb-border);
	background: #fff;
	overflow: hidden;
	margin-bottom: 2rem;
}

.vpmb-price-list__heading {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 1.25rem 1.1rem 0 2rem;
}

.vpmb-price-list__heading:not(:first-child) {
	margin-top: 0.5rem;
}

.vpmb-price-list__heading h3 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--vpmb-text);
}

.vpmb-price-row {
	display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.3rem 1.1rem;
    font-size: 0.9rem;
    margin: .3rem 1.2rem;
    border-bottom: 1px solid var(--vpmb-border);
}

.vpmb-price-row:nth-of-type(even) {
	/* background: var(--vpmb-row-alt); */
}

.vpmb-price-row__label {
	color: var(--vpmb-text);
}

.vpmb-price-row__value {
	font-weight: 700;
	color: var(--vpmb-accent);
	white-space: nowrap;
	font-size: 1.05rem;
}

.vpmb-form {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	border: 1px solid var(--vpmb-border);
	background: #fff;
	padding: 1.5rem;
}

.vpmb-form__fields {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.vpmb-form__footer {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.vpmb-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
}

.vpmb-form__field {
	flex: 1 1 160px;
	display: flex;
	flex-direction: column;
	gap: 0.35em;
}

.vpmb-form__field label {
	font-size: 0.78em;
	font-weight: 700;
	color: var(--vpmb-label);
	letter-spacing: 0.04em;
}

.vpmb-form__field input,
.vpmb-form__field select {
	padding: 0.65em 0.75em !important;
	border: none !important;
	border-bottom: 1px solid var(--vpmb-border) !important;
	border-radius: 0 !important;
	font-size: 1rem !important;
	background: #fff !important;
	color: var(--vpmb-text) !important;
	border-top: none;
}

.vpmb-form__field input:focus,
.vpmb-form__field select:focus {
	outline: none !important;
	border-color: var(--vpmb-accent) !important;
}

.vpmb-form__field input:focus,
.vpmb-form__field select:focus {
	outline: none;
	border-color: var(--vpmb-accent);
}

/* Off-screen honeypot field — never seen by real visitors, only bots that
 * blindly fill in every input. */
.vpmb-form__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	margin: 0;
}

.vpmb-form__row--total {
	align-items: center;
	justify-content: space-between;
	padding-top: 1.25rem;
}

.vpmb-form__total {
	display: flex;
	flex-direction: column;
}

.vpmb-form__total-label {
	font-size: 0.78em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--vpmb-label);
}

.vpmb-form__total-value {
	font-size: 1.5em;
	font-weight: 700;
	color: var(--vpmb-accent);
}

.vpmb-form__submit {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.75em 1.4em;
	border: none;
	border-radius: 6px;
	background: var(--vpmb-accent);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.vpmb-form__submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.vpmb-form__message {
	margin: 0;
	font-weight: 600;
}

.vpmb-form__message--success {
	color: #1a7231;
}

.vpmb-form__message--error {
	color: #a71d2a;
}

@media (max-width: 700px) {
	.vpmb-buyback {
		grid-template-columns: 1fr;
	}

	.vpmb-price-list,
	.vpmb-form {
		height: auto;
	}
}
