/**
 * Vassart Products — front-end styles for the Quote Request page template
 * (templates/page-quote-request.php), shared with the standalone Quote
 * Request Form Elementor widget (widgets/class-quote-form-widget.php) so
 * both entry points to the same form look identical. Only enqueued on pages
 * using the "Vassart - Quote Request" page template, or that use the widget.
 */

.vassart-quote-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 20px 64px;
}

/* Breadcrumb — same pattern used on the category and single product pages. */
.vassart-quote-breadcrumb {
	margin-bottom: 24px;
	font-size: 13px;
	color: #757575;
}

.vassart-quote-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vassart-quote-breadcrumb li {
	display: flex;
	align-items: center;
}

.vassart-quote-breadcrumb li:not(:last-child)::after {
	content: '/';
	margin: 0 8px;
	color: #c2c2c2;
}

.vassart-quote-breadcrumb a {
	color: #757575;
	text-decoration: none;
}

.vassart-quote-breadcrumb a:hover {
	color: #ea5501;
	text-decoration: underline;
}

.vassart-quote-breadcrumb [aria-current='page'] {
	color: #1b1b1b;
	font-weight: 600;
}

.vassart-quote-intro {
	margin-bottom: 32px;
	color: #444;
	line-height: 1.7;
}

.vassart-quote-notice {
	margin-bottom: 24px;
	padding: 14px 18px;
	border-radius: 4px;
	font-weight: 600;
}

.vassart-quote-notice--success {
	background: #eaf7ee;
	color: #1e7a34;
	border: 1px solid #b7e4c4;
}

.vassart-quote-notice--error {
	background: #fdeeee;
	color: #a52222;
	border: 1px solid #f3bcbc;
}

.vassart-quote-notice--info {
	background: #eef4fb;
	color: #2c5885;
	border: 1px solid #bcd6f3;
}

/* Section 1 (form) / Section 2 (service emails + map) side by side. */
.vassart-quote-columns {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.vassart-quote-form-section,
.vassart-quote-info-section {
	flex: 1 1 50%;
	min-width: 0;
}

.vassart-quote-form-section h2,
.vassart-quote-info-section h2 {
	margin: 0 0 20px;
	font-size: 22px;
	font-weight: 700;
}

.vassart-quote-row {
	display: flex;
	gap: 16px;
}

.vassart-quote-row .vassart-quote-field {
	flex: 1 1 50%;
	min-width: 0;
}

.vassart-quote-field {
	margin: 0 0 16px;
}

.vassart-quote-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
}

.vassart-quote-field input,
.vassart-quote-field select,
.vassart-quote-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	background: #fff;
	color: #1b1b1b;
}

.vassart-quote-field textarea {
	resize: vertical;
}

.vassart-quote-hint {
	margin: 0 0 16px;
	font-size: 12px;
	color: #757575;
}

.vassart-quote-submit {
	display: inline-block;
	padding: 12px 28px;
	border: 0;
	border-radius: 4px;
	background: #ea5501;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.vassart-quote-submit:hover {
	background: #c94600;
}

.vassart-quote-map {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 4px;
	overflow: hidden;
	background: #f7f7f7;
}

.vassart-quote-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 767px) {
	.vassart-quote-columns {
		flex-direction: column;
	}

	.vassart-quote-row {
		flex-direction: column;
		gap: 0;
	}
}

/* Standalone Quote Request Form widget — reuses the field/row/submit/notice
   classes above, but isn't nested inside .vassart-quote-page since it can be
   dropped onto any Elementor page on its own. */
.vassart-widget-quote-form {
	max-width: 600px;
}

.vassart-widget-quote-form__heading {
	margin: 0 0 20px;
	font-size: 22px;
	font-weight: 700;
}
