/**
 * Custom 3D quote request form — layered on page-shell.css tokens/spacing.
 * Loads only on the Custom 3D page (see inc/enqueue.php).
 */

.u3ds-quote-form-wrap {
	max-width: 720px;
}

.u3ds-quote-form__notice {
	padding: var(--wp--preset--spacing--m) var(--wp--preset--spacing--l);
	margin-bottom: var(--wp--preset--spacing--l);
	border: 1px solid var(--wp--preset--color--border);
	font-size: var(--wp--preset--font-size--small);
}

.u3ds-quote-form__notice--success {
	border-color: var(--wp--preset--color--success);
	color: var(--wp--preset--color--success);
}

.u3ds-quote-form__notice--error {
	border-color: var(--wp--preset--color--error);
	color: var(--wp--preset--color--error);
}

.u3ds-quote-form {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--l);
}

.u3ds-quote-form__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.u3ds-quote-form__row {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--xs);
}

.u3ds-quote-form__row--split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--l);
}

.u3ds-quote-form label {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	color: var(--wp--preset--color--text-primary);
}

.u3ds-quote-form input[type="text"],
.u3ds-quote-form input[type="email"],
.u3ds-quote-form input[type="tel"],
.u3ds-quote-form input[type="number"],
.u3ds-quote-form input[type="file"],
.u3ds-quote-form select,
.u3ds-quote-form textarea {
	background-color: var(--wp--preset--color--surface-elevated);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--button);
	padding: var(--wp--preset--spacing--s) var(--wp--preset--spacing--m);
	color: var(--wp--preset--color--text-primary);
	font-size: var(--wp--preset--font-size--medium);
	font-family: inherit;
}

.u3ds-quote-form input:focus,
.u3ds-quote-form select:focus,
.u3ds-quote-form textarea:focus {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.u3ds-quote-form__hint {
	margin: 0;
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--small);
}

.u3ds-quote-form__file-error {
	margin: var(--wp--preset--spacing--xs) 0 0;
	color: var(--wp--preset--color--error);
	font-size: var(--wp--preset--font-size--small);
}

.u3ds-quote-form__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--m);
}

.u3ds-quote-form__submit,
.u3ds-quote-form__whatsapp {
	border-radius: var(--wp--custom--radius--button);
	text-transform: uppercase;
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
	padding: var(--wp--preset--spacing--s) var(--wp--preset--spacing--xl);
	border: none;
	cursor: pointer;
	transition: background-color 200ms ease, border-color 200ms ease;
	text-decoration: none;
	display: inline-block;
}

.u3ds-quote-form__submit {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--text-primary);
}

.u3ds-quote-form__submit:hover {
	background-color: var(--wp--preset--color--accent-highlight);
}

.u3ds-quote-form__whatsapp {
	background-color: transparent;
	color: var(--wp--preset--color--text-primary);
	border: 1px solid var(--wp--preset--color--border);
}

.u3ds-quote-form__whatsapp:hover {
	border-color: var(--wp--preset--color--accent);
}

/* Project-type rows become clickable once quote-form.js wires them up;
   the interactive affordance is styled here since it's only meaningful
   alongside the form itself. */
.u3ds-page-list__row[data-project-type] {
	cursor: pointer;
	transition: background-color 200ms ease;
}

.u3ds-page-list__row[data-project-type]:hover,
.u3ds-page-list__row[data-project-type]:focus-visible {
	background-color: var(--wp--preset--color--surface-elevated);
}

@media (max-width: 781px) {
	.u3ds-quote-form__row--split {
		grid-template-columns: 1fr;
	}
}
