.xte-rfq-form {
	display: grid;
	gap: 1.25rem;
	max-width: 920px;
	padding: clamp(1.25rem, 4vw, 2.5rem);
	background: #fff;
	border: 1px solid var(--xte-border, #dce4de);
	border-radius: var(--xte-radius-lg, 20px);
	box-shadow: 0 20px 55px rgba(18, 50, 58, 0.08);
}

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

.xte-form-field {
	display: grid;
	gap: 0.45rem;
	font-weight: 650;
}

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

.xte-form-field input,
.xte-form-field select,
.xte-form-field textarea {
	width: 100%;
	padding: 0.82rem 0.9rem;
	border: 1px solid #b9c8c4;
	border-radius: 8px;
	background: #fff;
	color: #15333a;
	font: inherit;
}

/*
 * Astra applies a fixed 40px height to native selects. The shared field
 * padding made the closed value taller than that box, which clipped the text.
 */
.xte-form-field select {
	box-sizing: border-box;
	font-size: 1rem;
	height: 3rem;
	line-height: 1.4;
	min-height: 3rem;
	padding-block: 0;
	padding-inline: 0.9rem 2.75rem;
	text-align: start;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xte-form-field input:focus,
.xte-form-field select:focus,
.xte-form-field textarea:focus {
	border-color: var(--xte-teal, #087f8c);
	box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.16);
	outline: none;
}

.xte-industry-fields,
.xte-service-fields,
.xte-cmc-application-fields {
	padding: 1.25rem;
	background: var(--xte-surface, #f4f8f6);
	border-left: 4px solid var(--xte-teal, #087f8c);
	border-radius: 8px;
}

.xte-form-section,
.xte-cen-conditional {
	padding: 1.25rem;
	background: var(--xte-surface, #f4f8f6);
	border: 1px solid var(--xte-border, #dce4de);
	border-radius: 12px;
}

.xte-form-section > h3,
.xte-cen-conditional > h4 {
	margin-top: 0;
}

.xte-cen-conditional {
	margin-top: 1rem;
	background: #fff;
	border-left: 4px solid var(--xte-teal, #087f8c);
}

.xte-cen-conditional[hidden] {
	display: none !important;
}

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

.xte-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.8rem;
	background: #fff;
	border: 1px solid var(--xte-border, #dce4de);
	border-radius: 8px;
}

.xte-checkbox input {
	flex: 0 0 auto;
	margin-top: 0.25rem;
}

.xte-checkbox span,
.xte-checkbox small {
	display: block;
}

.xte-checkbox small {
	margin-top: 0.25rem;
	color: var(--xte-muted, #5f6f66);
	font-size: 0.78rem;
	font-weight: 400;
}

.xte-industry-fields[hidden],
.xte-service-fields[hidden],
.xte-cmc-application-fields[hidden],
.xte-honeypot {
	display: none !important;
}

.xte-cmc-application-fields {
	margin-top: 1rem;
	padding: 1rem;
	background: #fff;
	border-left-color: var(--xte-pink, #d50b5a);
}

.xte-cmc-application-fields h4 {
	margin: 0 0 0.85rem;
}

.xte-consent {
	display: flex;
	gap: 0.7rem;
	align-items: flex-start;
	font-size: 0.95rem;
}

.xte-consent input {
	margin-top: 0.25rem;
}

.xte-submit-button {
	justify-self: start;
	padding: 0.9rem 1.35rem;
	border: 0;
	border-radius: 999px;
	background: var(--xte-pink, #d50b5a);
	color: #fff;
	font-weight: 750;
	cursor: pointer;
}

.xte-submit-button:hover,
.xte-submit-button:focus-visible {
	background: #ad0848;
}

.xte-form-notice {
	max-width: 920px;
	margin-bottom: 1rem;
	padding: 1rem 1.15rem;
	border-radius: 8px;
}

.xte-form-success {
	background: #eaf7ef;
	border: 1px solid #92caa7;
}

.xte-form-error {
	background: #fff1f1;
	border: 1px solid #e5a3a3;
}

.xte-form-footnote,
.xte-form-field small {
	color: var(--xte-muted, #5f6f66);
	font-size: 0.875rem;
	font-weight: 400;
}

@media (max-width: 680px) {
	.xte-form-grid,
	.xte-checkbox-grid {
		grid-template-columns: 1fr;
	}

	.xte-form-section,
	.xte-cen-conditional {
		padding: 1rem;
	}
}
