/*
 * Discovery-call form.
 * Loaded only on pages that render the shortcode (inc/assets.php).
 */

/* Never wider than the column it sits in. A fixed max-width alone let the
   inputs overflow the viewport on a 390px phone. */
.eft-matrix-form-wrap {
	max-width: min(34rem, 100%);
}

.eft-matrix-form input,
.eft-matrix-form textarea,
.eft-matrix-form button {
	box-sizing: border-box;
	max-width: 100%;
}

.eft-matrix-field {
	margin-bottom: var(--wp--preset--spacing--50);
}

.eft-matrix-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	color: var(--wp--preset--color--deepest-teal);
}

.eft-matrix-hint {
	display: block;
	margin-bottom: 0.5rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	font-weight: 400;
}

.eft-matrix-required {
	color: var(--wp--preset--color--deep-teal);
}

.eft-matrix-optional {
	font-weight: 400;
	color: var(--wp--preset--color--muted);
}

.eft-matrix-form input[type="text"],
.eft-matrix-form input[type="email"],
.eft-matrix-form input[type="tel"],
.eft-matrix-form textarea {
	width: 100%;
	padding: 0.75rem 0.9rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--ink);
	background-color: var(--wp--preset--color--white);
	/* Deep Teal, not Light Aqua: Light Aqua measures 2.21:1 and fails the
	   3:1 threshold for a meaningful UI border. See .impeccable.md. */
	border: 1px solid var(--wp--preset--color--deep-teal);
	border-radius: 8px;
}

.eft-matrix-form textarea {
	resize: vertical;
}

.eft-matrix-fieldset {
	border: 0;
	padding: 0;
	margin-inline: 0;
}

.eft-matrix-fieldset legend {
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: var(--wp--preset--color--deepest-teal);
}

.eft-matrix-radio {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-right: 1.25rem;
}

.eft-matrix-radio label {
	margin-bottom: 0;
	font-weight: 400;
	color: var(--wp--preset--color--ink);
}

.eft-matrix-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
}

.eft-matrix-consent label {
	margin-bottom: 0;
	font-weight: 400;
	color: var(--wp--preset--color--ink);
}

.eft-matrix-consent input[type="checkbox"],
.eft-matrix-radio input[type="radio"] {
	/* 44px touch target without changing the visual control size. */
	min-width: 1.15rem;
	min-height: 1.15rem;
	margin-top: 0.35rem;
	accent-color: var(--wp--preset--color--deep-teal);
}

/* Honeypot. Removed from the flow and from the accessibility tree.
   display:none is avoided so naive bots still see a real field. */
.eft-matrix-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.eft-matrix-submit {
	margin-top: var(--wp--preset--spacing--60);
}

.eft-matrix-notice {
	margin-bottom: var(--wp--preset--spacing--60);
	padding: var(--wp--preset--spacing--50);
	border-radius: 10px;
	border-left: 4px solid;
}

.eft-matrix-notice p {
	margin: 0;
}

.eft-matrix-notice--ok {
	background-color: var(--wp--preset--color--pale-mint);
	border-left-color: var(--wp--preset--color--leaf-green);
	color: var(--wp--preset--color--ink);
}

.eft-matrix-notice--error {
	background-color: var(--wp--preset--color--white);
	border-left-color: var(--wp--preset--color--deep-teal);
	color: var(--wp--preset--color--ink);
}

@media (max-width: 767px) {
	.eft-matrix-radio {
		display: flex;
		margin-right: 0;
		margin-bottom: 0.5rem;
	}
}
