/* FFL Certificate Verification (/ffl/) — California AB 1263 explainer above a
   Contact Form 7 upload form.

   Mirrors the LEAF page (leaf-program.css): same title, measure, and CF7
   restyle — CF7 emits its own .wpcf7-* markup, restyled here like the
   .wc-block-* rules (system.md §12). No Figma for this page yet. */

.tt-ffl {
	padding: 80px 20px 100px;
}

.tt-ffl__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif) !important;
	font-weight: 600 !important;
	font-size: 52px;
	line-height: 1.05;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink, #141412) !important;
}

.tt-ffl__title::after {
	content: "";
	display: block;
	width: 50px;
	height: 2px;
	margin: 20px auto 0;
	background: var(--wp--preset--color--red, #cf2026);
}

.tt-ffl__body {
	max-width: 680px;
	margin: 56px auto 0;
	font-family: var(--wp--preset--font-family--encode-sans, "Encode Sans", sans-serif);
	font-size: 16px;
	line-height: 1.6;
	color: var(--wp--preset--color--ink, #141412);
}

.tt-ffl__body p {
	margin: 0 0 20px;
}

.tt-ffl__body a {
	color: var(--wp--preset--color--red, #cf2026);
	transition: color 0.2s ease;
}

.tt-ffl__body a:hover {
	color: var(--wp--preset--color--ink, #141412);
}

.tt-ffl__rule-divider {
	height: 1px;
	margin: 32px 0;
	border: 0;
	background: #d5d5d5;
}

/* ---- Contact Form 7 ------------------------------------------------------ */
/* CF7 runs the template through wpautop: each label + control arrives in a
   <p> with a <br> between them — reset both (see leaf-program.css). */
.tt-ffl-form__field p {
	margin: 0;
}

.tt-ffl-form__field br {
	display: none;
}

.tt-ffl-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px 24px;
}

/* CF7's size="40" inputs would otherwise force the columns wider. */
.tt-ffl-form__field {
	min-width: 0;
}

.tt-ffl-form__field--full {
	grid-column: 1 / -1;
}

.tt-ffl-form__field label {
	display: block;
	margin-bottom: 6px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--wp--preset--color--ink, #141412);
}

.tt-ffl-form__field abbr {
	text-decoration: none;
	border: 0;
}

.tt-ffl-form__hint {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	color: #6b6b68;
}

.tt-ffl-form__field input[type="text"],
.tt-ffl-form__field input[type="email"] {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #2b2b3a;
	border-radius: 0;
	background: #fff;
	font-family: var(--wp--preset--font-family--encode-sans, "Encode Sans", sans-serif);
	font-size: 16px;
	line-height: 1.5;
	color: var(--wp--preset--color--ink, #141412);
	transition: border-color 0.2s ease;
}

.tt-ffl-form__field input[type="text"]:focus,
.tt-ffl-form__field input[type="email"]:focus {
	border-color: var(--wp--preset--color--red, #cf2026);
	outline: none;
}

.tt-ffl-form__field .wpcf7-form-control-wrap {
	display: block;
}

.tt-ffl-form__field--file input[type="file"] {
	display: block;
	font-family: var(--wp--preset--font-family--encode-sans, "Encode Sans", sans-serif);
	font-size: 16px;
}

/* ---- Submit (black, as on the LEAF form) --------------------------------- */
.tt-ffl-form__field--submit {
	margin-top: 12px;
}

.tt-ffl-form__field--submit input[type="submit"] {
	display: block;
	width: 100%;
	padding: 12px 24px;
	border: 0;
	border-radius: 0;
	background: #000;
	font-family: var(--wp--preset--font-family--encode-sans, "Encode Sans", sans-serif);
	font-weight: 700;
	font-size: 16px;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.tt-ffl-form__field--submit input[type="submit"]:hover {
	background: var(--wp--preset--color--red, #cf2026);
}

/* ---- CF7 validation / response messages ---------------------------------- */
.tt-ffl__body .wpcf7-not-valid-tip {
	margin-top: 4px;
	font-size: 14px;
	color: var(--wp--preset--color--red, #cf2026);
}

.tt-ffl__body .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 12px 16px;
	border: 1px solid #d5d5d5;
	font-size: 16px;
}

.tt-ffl__body .wpcf7-spinner {
	margin-inline: 12px;
}

/* ---- Mobile (≤767px) ----------------------------------------------------- */
@media (max-width: 767px) {
	.tt-ffl {
		padding: 48px 20px 64px;
	}

	.tt-ffl__title {
		font-size: 36px;
	}

	.tt-ffl__body {
		margin-top: 40px;
	}

	.tt-ffl-form__grid {
		grid-template-columns: 1fr;
	}
}
