/* Request a Quote — frontend styles (scoped with .raq-) */

.raq-form {
	max-width: 980px;
	margin: 0 auto;
	padding: 1.5rem;
	border: 1px solid #e2e5e9;
	border-radius: 10px;
	background: #fff;
	font-size: 15px;
	color: #1f2937;
}

.raq-form *,
.raq-form *::before,
.raq-form *::after {
	box-sizing: border-box;
}

.raq-status {
	margin: 0 0 1rem;
	font-weight: 600;
}

.raq-status:empty {
	display: none;
}

.raq-status--success {
	padding: 0.75rem 1rem;
	border: 1px solid #bbf7d0;
	border-radius: 6px;
	background: #f0fdf4;
	color: #166534;
}

.raq-status--error {
	padding: 0.75rem 1rem;
	border: 1px solid #fecaca;
	border-radius: 6px;
	background: #fef2f2;
	color: #991b1b;
}

.raq-section {
	border: 0;
	margin: 0 0 1.5rem;
	padding: 0 0 1.5rem;
	border-bottom: 1px solid #eef0f3;
	min-inline-size: 0;
}

.raq-section:last-of-type {
	border-bottom: 0;
	padding-bottom: 0;
	margin-bottom: 0;
}

.raq-section-title {
	padding: 0;
	margin: 0 0 0.9rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: #111827;
}

.raq-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.25rem;
}

.raq-full {
	grid-column: 1 / -1;
}

.raq-field {
	display: flex;
	flex-direction: column;
}

.raq-label {
	display: inline-block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	font-size: 0.875rem;
	color: #374151;
}

.raq-required {
	color: #dc2626;
	margin-left: 2px;
}

.raq-input {
	width: 100%;
	padding: 0.6rem 0.75rem;
	font: inherit;
	color: inherit;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.raq-input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.raq-input[aria-invalid="true"] {
	border-color: #dc2626;
	background: #fff5f5;
}

.raq-textarea {
	min-height: 120px;
	resize: vertical;
}

.raq-file-input {
	padding: 0.4rem;
}

.raq-note {
	margin: 0.35rem 0 0;
	font-size: 0.8rem;
	color: #6b7280;
}

.raq-error {
	margin: 0.3rem 0 0;
	min-height: 1em;
	font-size: 0.8rem;
	color: #dc2626;
}

.raq-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	padding: 0.25rem 0;
}

.raq-radio {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.9rem;
	cursor: pointer;
}

.raq-radio input[type="radio"],
.raq-consent input[type="checkbox"] {
	width: 1.1em;
	height: 1.1em;
	accent-color: #2563eb;
	cursor: pointer;
}

.raq-gdpr {
	margin-bottom: 0.75rem;
}

.raq-consent a {
	color: #2563eb;
	text-decoration: underline;
}

/* Honeypot — visually hidden, still present in the DOM for bots. */
.raq-hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.raq-submit-row {
	margin-top: 0.5rem;
}

.raq-form-nav {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.raq-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 1.6rem;
	font: inherit;
	font-weight: 600;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.05s ease;
}

.raq-btn:active {
	transform: translateY(1px);
}

.raq-btn:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.4);
	outline-offset: 2px;
}

.raq-btn--primary {
	background: #2563eb;
	color: #fff;
}

.raq-btn--primary:hover {
	background: #1d4ed8;
}

.raq-btn--primary:disabled {
	background: #93c5fd;
	cursor: not-allowed;
}

.raq-btn--secondary {
	background: #e5e7eb;
	color: #111827;
}

.raq-btn--secondary:hover {
	background: #d1d5db;
}

.raq-spinner {
	width: 1.1em;
	height: 1.1em;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: raq-spin 0.7s linear infinite;
}

@keyframes raq-spin {
	to { transform: rotate(360deg); }
}

/* Multi-step wizard */
.raq-form--multistep .raq-step {
	display: none;
}

.raq-form--multistep .raq-step.is-current {
	display: block;
}

.raq-progress {
	margin-bottom: 1.25rem;
}

.raq-progress-steps {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0.4rem;
	flex-wrap: wrap;
	counter-reset: raq-step;
}

.raq-progress-steps li {
	flex: 1 1 auto;
	text-align: center;
	font-size: 0.72rem;
	font-weight: 600;
	color: #9ca3af;
	padding: 0.4rem 0.3rem;
	border-radius: 6px;
	background: #f3f4f6;
	white-space: nowrap;
}

.raq-progress-steps li.is-active {
	background: #2563eb;
	color: #fff;
}

.raq-progress-steps li.is-complete {
	background: #dbeafe;
	color: #1d4ed8;
}

/* Responsive */
@media (max-width: 768px) {
	.raq-form {
		padding: 1rem;
	}

	.raq-grid {
		grid-template-columns: 1fr;
	}

	.raq-radio-group {
		flex-direction: column;
		gap: 0.5rem;
	}
}
