/* Quote request */

:root {
	--qr-accent: #3ba24b;
	--qr-text: #2b3034;
	--qr-border: rgba( 0, 0, 0, 0.14 );
	--qr-radius: 6px;
}

/* Buttons */
.qr-button,
.qr-open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.5rem 0.95rem;
	font: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.2;
	color: var( --qr-text );
	background: none;
	border: 1px solid var( --qr-border );
	border-radius: var( --qr-radius );
	cursor: pointer;
	transition: border-color 120ms ease, background-color 120ms ease;
}

.qr-open:hover {
	border-color: var( --qr-accent );
	color: var( --qr-accent );
}

.qr-button--primary {
	padding: 0.8rem 1.4rem;
	font-size: 0.98rem;
	color: #fff;
	background: var( --qr-accent );
	border-color: var( --qr-accent );
}

.qr-button--primary:hover {
	color: #fff;
	opacity: 0.9;
}

.qr-summary {
	margin: 1.25rem 0;
}

/* In-table button sits tight */
.vtab-table .qr-open {
	padding: 0.35rem 0.7rem;
	font-size: 0.8rem;
	white-space: nowrap;
}

/* Modal */
.qr-modal[hidden] {
	display: none;
}

.qr-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.qr-overlay {
	position: absolute;
	inset: 0;
	background: rgba( 15, 18, 20, 0.55 );
}

.qr-dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc( 100dvh - 2rem );
	overflow-y: auto;
	padding: 1.75rem;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 24px 60px rgba( 0, 0, 0, 0.28 );
	color: var( --qr-text );
}

.qr-dialog h2 {
	margin: 0 0 0.35rem;
	font-size: 1.3rem;
}

.qr-model-line {
	margin: 0 0 1.1rem;
	font-size: 0.9rem;
	opacity: 0.75;
}

.qr-close {
	position: absolute;
	top: 0.6rem;
	right: 0.75rem;
	width: 2rem;
	height: 2rem;
	font-size: 1.5rem;
	line-height: 1;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
	opacity: 0.55;
}

.qr-close:hover {
	opacity: 1;
}

/* Fields */
.qr-grid {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 0.85rem 1rem;
}

.qr-field {
	margin: 0 0 0.85rem;
}

.qr-grid .qr-field {
	margin: 0;
}

.qr-field--small {
	max-width: 140px;
}

.qr-field label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.qr-field input,
.qr-field textarea {
	width: 100%;
	padding: 0.55rem 0.7rem;
	font: inherit;
	font-size: 0.95rem;
	color: inherit;
	background: #fff;
	border: 1px solid var( --qr-border );
	border-radius: 4px;
}

.qr-field input:focus,
.qr-field textarea:focus {
	outline: 2px solid var( --qr-accent );
	outline-offset: 1px;
	border-color: transparent;
}

.qr-actions {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin: 1.1rem 0 0;
}

.qr-submit {
	padding: 0.7rem 1.3rem;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var( --qr-accent );
	border: 0;
	border-radius: var( --qr-radius );
	cursor: pointer;
}

.qr-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.qr-status {
	font-size: 0.85rem;
	opacity: 0.85;
}

.qr-success h3 {
	margin-top: 0;
}

/* Honeypot — off screen, never shown, never announced */
.qr-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media ( max-width: 560px ) {
	.qr-grid {
		grid-template-columns: minmax( 0, 1fr );
	}

	.qr-dialog {
		padding: 1.25rem;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.qr-open,
	.qr-button {
		transition: none;
	}
}
