/**
 * ContraMedia Quote System — frontend styles
 * Built to complement any well-behaved WooCommerce theme (Salient, Storefront, etc.)
 * without fighting the theme's own typography and colours.
 */

/* --- Thank-you notice shown after submission ------------------------------ */
.vqs-thank-you-notice {
	background: #e6f5ec;
	border-left: 4px solid #2e7d32;
	padding: 20px 24px;
	margin: 0 0 30px 0;
	border-radius: 4px;
}

.vqs-thank-you-notice h2 {
	margin: 0 0 8px 0;
	color: #1b5e20;
	font-size: 1.25em;
}

.vqs-thank-you-notice p {
	margin: 0;
	color: #2e3d36;
}

/* --- Empty basket notice -------------------------------------------------- */
.vqs-empty-notice {
	text-align: center;
	padding: 40px 20px;
}

.vqs-empty-notice p {
	font-size: 1.05em;
	margin-bottom: 16px;
}

/* --- Quote form wrapper --------------------------------------------------- */
.vqs-quote-form-wrapper {
	max-width: 860px;
	margin: 0 auto;
}

.vqs-quote-form-wrapper h2 {
	margin-top: 0;
	margin-bottom: 8px;
}

.vqs-form-intro {
	color: #555;
	margin-bottom: 30px;
}

/* --- Items table ---------------------------------------------------------- */
.vqs-quote-items {
	margin-bottom: 40px;
	padding: 20px 24px;
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 4px;
}

.vqs-quote-items h3 {
	margin-top: 0;
	margin-bottom: 16px;
	font-size: 1.1em;
}

.vqs-items-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 12px;
}

.vqs-items-table th,
.vqs-items-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid #e5e5e5;
}

.vqs-items-table th {
	font-weight: 600;
	color: #333;
	background: #f0f0f0;
}

.vqs-items-table tr:last-child td {
	border-bottom: 0;
}

.vqs-edit-basket {
	margin: 0;
	font-size: 0.9em;
}

.vqs-edit-basket a {
	text-decoration: none;
}

/* --- Form fields ---------------------------------------------------------- */
.vqs-form h3 {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 1.1em;
	padding-bottom: 8px;
	border-bottom: 1px solid #eee;
}

.vqs-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 24px;
}

.vqs-form-row {
	display: flex;
	flex-direction: column;
}

.vqs-form-row-full {
	grid-column: 1 / -1;
}

.vqs-form-row label {
	display: block;
	font-weight: 600;
	font-size: 0.92em;
	margin-bottom: 6px;
	color: #333;
}

.vqs-form-row label .required {
	color: #c00;
	margin-left: 2px;
}

.vqs-form-row input[type="text"],
.vqs-form-row input[type="email"],
.vqs-form-row input[type="tel"],
.vqs-form-row textarea {
	width: 100%;
	padding: 10px 12px;
	font-size: 15px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	font-family: inherit;
	box-sizing: border-box;
	transition: border-color 0.15s ease;
}

.vqs-form-row input:focus,
.vqs-form-row textarea:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.12);
}

/* --- Honeypot (hidden from users and screen readers) ---------------------- */
.vqs-honeypot {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- Submit ---------------------------------------------------------------- */
.vqs-form-submit {
	margin: 30px 0 16px 0;
}

.vqs-submit-btn {
	font-size: 1.05em !important;
	padding: 14px 32px !important;
	font-weight: 600;
	cursor: pointer;
}

.vqs-privacy-note {
	color: #777;
	margin-top: 8px;
}

/* --- Quote Summary block on the cart page --------------------------------- */
/* Replaces the default "Cart Totals" block. Shows product counts only —     */
/* no currency values.                                                       */
.vqs-cart-summary {
	background: #fafafa;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	padding: 22px 24px;
	margin-bottom: 20px;
}

.vqs-cart-summary h2 {
	margin: 0 0 16px 0;
	font-size: 1.2em;
	padding-bottom: 10px;
	border-bottom: 1px solid #e5e5e5;
}

.vqs-summary-list {
	list-style: none;
	margin: 0 0 12px 0;
	padding: 0;
}

.vqs-summary-list li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 8px 0;
	border-bottom: 1px dashed #e5e5e5;
}

.vqs-summary-list li:last-child {
	border-bottom: 0;
}

.vqs-summary-label {
	color: #555;
	font-size: 0.95em;
}

.vqs-summary-value {
	font-weight: 700;
	font-size: 1.2em;
	color: #111;
}

.vqs-summary-note {
	margin: 12px 0 0 0;
	font-size: 0.85em;
	color: #777;
	font-style: italic;
}

/* --- Block-cart variant --------------------------------------------------- */
/* When the summary is injected into WooCommerce Blocks' sidebar, the        */
/* surrounding spacing is already tight, so remove the outer margin and let  */
/* the sidebar container handle its own gap.                                 */
.vqs-cart-summary--block {
	margin-bottom: 16px;
}

.vqs-cart-summary--block h2 {
	font-size: 1.1em;
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 640px) {
	.vqs-form-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.vqs-quote-items {
		padding: 16px;
	}

	.vqs-items-table th,
	.vqs-items-table td {
		padding: 8px;
		font-size: 0.9em;
	}

	.vqs-cart-summary {
		padding: 16px 18px;
	}
}
