/**
 * Get Quotation page — Workstyles brand form styling.
 */

.rjw-quote-page {
	/* Align with site tokens: purple primary + dark blue ink (header / brand CSS). */
	--rjw-ink: var(--wds-color-secondary, #1F2641);
	--rjw-accent: var(--wds-color-primary, #6A4972);
	--rjw-accent-hover: var(--wds-color-primary-dark, #553A5C);
	--rjw-line: var(--wds-color-border, #E5E5EA);
	--rjw-muted: var(--wds-color-text-muted, #6B6B76);
	--rjw-field-bg: var(--wds-color-white, #FFFFFF);
	--rjw-btn-text: #EFEFFF;
	max-width: 720px;
	margin: 0 auto;
	padding: 48px 20px 80px;
}

.rjw-quote-title {
	font-family: 'Space Grotesk', sans-serif !important;
	font-size: clamp(2rem, 4vw, 2.75rem) !important;
	font-weight: 600 !important;
	letter-spacing: -0.02em !important;
	line-height: 1.15 !important;
	color: var(--rjw-ink) !important;
	margin: 0 0 12px !important;
}

.rjw-quote-lede {
	font-family: 'Inter', sans-serif !important;
	font-size: 1.0625rem !important;
	line-height: 1.55 !important;
	color: var(--rjw-muted) !important;
	margin: 0 0 36px !important;
	max-width: 40rem;
}

.rjw-quote-form .rjw-quote-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 20px;
}

.rjw-quote-form .rjw-quote-field {
	margin: 0 0 18px;
}

.rjw-quote-form .rjw-quote-field--full {
	grid-column: 1 / -1;
}

.rjw-quote-form label {
	display: block;
	font-family: 'Space Grotesk', sans-serif !important;
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.01em;
	color: var(--rjw-ink) !important;
	margin: 0 0 8px !important;
}

.rjw-quote-form .rjw-req {
	color: var(--rjw-accent);
	font-weight: 600;
}

.rjw-quote-form input[type="text"],
.rjw-quote-form input[type="email"],
.rjw-quote-form input[type="tel"],
.rjw-quote-form input[type="url"],
.rjw-quote-form textarea,
.rjw-quote-form select {
	width: 100%;
	box-sizing: border-box;
	font-family: 'Inter', sans-serif !important;
	font-size: 1rem !important;
	line-height: 1.4 !important;
	color: var(--rjw-ink) !important;
	background: var(--rjw-field-bg) !important;
	border: 1px solid var(--rjw-line) !important;
	border-radius: 0 !important;
	padding: 12px 14px !important;
	min-height: 48px;
	box-shadow: none !important;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	appearance: none;
	-webkit-appearance: none;
}

.rjw-quote-form select {
	background-image: linear-gradient(45deg, transparent 50%, var(--rjw-ink) 50%),
		linear-gradient(135deg, var(--rjw-ink) 50%, transparent 50%);
	background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 36px !important;
}

.rjw-quote-form textarea {
	min-height: 140px;
	resize: vertical;
}

.rjw-quote-form input:focus,
.rjw-quote-form textarea:focus,
.rjw-quote-form select:focus {
	outline: none !important;
	border-color: var(--rjw-accent) !important;
	box-shadow: 0 0 0 3px rgba(106, 73, 114, 0.18) !important;
}

.rjw-quote-form .wpcf7-not-valid {
	border-color: #b42318 !important;
}

.rjw-quote-form .wpcf7-not-valid-tip {
	font-family: 'Inter', sans-serif !important;
	font-size: 0.8125rem !important;
	color: #b42318 !important;
	margin-top: 6px;
}

.rjw-quote-accept .wpcf7-list-item {
	margin: 0;
}

.rjw-quote-accept .wpcf7-list-item-label {
	font-family: 'Inter', sans-serif !important;
	font-size: 0.9375rem !important;
	color: var(--rjw-muted) !important;
	line-height: 1.45;
}

.rjw-quote-accept input[type="checkbox"] {
	width: 1.05rem;
	height: 1.05rem;
	margin-right: 10px;
	accent-color: var(--rjw-accent);
	vertical-align: middle;
}

.rjw-quote-actions {
	margin: 8px 0 0 !important;
}

.rjw-quote-form input.wpcf7-submit,
.rjw-quote-form .wpcf7-submit {
	font-family: 'Inter', sans-serif !important;
	font-size: 1rem !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: var(--rjw-btn-text) !important;
	background: var(--rjw-accent) !important;
	border: none !important;
	border-radius: 0 !important;
	min-height: 51px;
	padding: 16px 28px !important;
	cursor: pointer;
	box-shadow: none !important;
	text-decoration: none !important;
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.rjw-quote-form input.wpcf7-submit:hover,
.rjw-quote-form .wpcf7-submit:hover {
	background: var(--rjw-accent-hover) !important;
}

.rjw-quote-form input.wpcf7-submit:active {
	transform: translateY(1px);
}

.wpcf7 form.sent .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7-response-output {
	font-family: 'Inter', sans-serif !important;
	font-size: 0.9375rem !important;
	border-radius: 0 !important;
	margin: 20px 0 0 !important;
	padding: 14px 16px !important;
}

/* Honeypot — off-screen, not display:none (some bots skip display:none). */
.rjw-hp-wrap {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.wpcf7 .rjw-quote-form {
	position: relative;
}

.wpcf7-spinner {
	margin-left: 12px;
}

@media (max-width: 640px) {
	.rjw-quote-page {
		padding: 32px 16px 64px;
	}

	.rjw-quote-form .rjw-quote-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.rjw-quote-form input.wpcf7-submit,
	.rjw-quote-form .wpcf7-submit {
		width: 100%;
	}
}
