/* ------------------------------------------------------------ *\
	Thank You (Request) page — templates/thank-you-request.php

	Compiled (plain CSS) counterpart of resources/css/_module.thank-you.css.
	The theme's source PostCSS pipeline (gulp 4 / postcss 6) does not run on the
	current Node version, so this file is enqueued directly for the template via
	functions.php. Variables here are resolved literals from resources/css/_settings.css.
\* ------------------------------------------------------------ */

/*  Container width. Driven by the "Page Content Width" field via the --ty-width custom
    property the template prints; defaults to the full .shell width (1235px + gutters),
    matching /find-franchises/by-state/. */
.thank-you-request .shell { max-width: calc(var(--ty-width, 1235px) + 20px); }

/* ------------------------------------------------------------ *\
	Soft cards — shared "panel" treatment for the major sections
	(brand selections + every [callout] block). Matches the original
	"One Quick Tip" box: soft tint, light border, generous padding.
\* ------------------------------------------------------------ */

.thank-you-brands,
.thank-you-callout {
	margin-top: 24px; /* consistent, moderately tight so cards read as a sequence */
	padding: 32px;
	background: #eef4f9;
	border: 1px solid #e2ebf2;
	border-radius: 8px;
}

/*  [brand_selections] — Brand logo grid  */
.thank-you-brands { text-align: center; }

/*  Centered uppercase heading (no letter-spacing). Selector outranks .article h2. */
.article h2.thank-you-brands__title {
	margin-bottom: 28px;
	font-family: 'Avenir', Arial, Helvetica, sans-serif;
	font-size: 30px;
	font-weight: 900;
	line-height: 1.2;
	text-transform: uppercase;
	color: #1b384d;
}

/*  Centered flex layout: items keep a fixed fractional width (rows cap at 4 / 3 / 2) while
    justify-content: center centers whatever count is on each row. */
.brand-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
}

/*  Reset the site's article-list treatment (bullets/indent/dots) on the grid. */
.thank-you-brands .brand-grid { margin: 0; padding: 0; list-style: none; }
.thank-you-brands .brand-grid__item {
	margin: 0;
	padding: 0;
	list-style: none;
	flex: 0 0 calc(25% - 15px); /* up to 4 per row (gap-aware: 3×20px ÷ 4) */
	max-width: calc(25% - 15px);
}
.thank-you-brands .brand-grid__item:before { display: none; content: none; }

/*  White logo tile — same treatment as .card__image, minus the blue box + triangle. */
.brand-grid__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 165px;
	background: #fff;
	border: 1px solid #e1e1e1;
	box-sizing: border-box;
	overflow: hidden;
}

.brand-grid__logo {
	width: auto;
	height: auto;
	object-fit: contain;
	transition: transform .4s;
}

.brand-grid__item:hover .brand-grid__logo { transform: scale(1.1); }

/*  Fallback when a brand has no logo — styled text, never a broken image. */
.brand-grid__media--fallback { padding: 14px; }

.brand-grid__name {
	font-family: 'Avenir', Arial, Helvetica, sans-serif;
	font-weight: 900;
	font-size: 16px;
	line-height: 1.2;
	color: #1b384d;
	text-transform: uppercase;
}

/*  Unavailable-brand notice (output by [brand_selections]). */
.thank-you-notice {
	margin-top: 28px;
	padding: 16px 18px;
	background: #ebebeb;
	border-left: 3px solid #d74a29;
	border-radius: 4px;
	text-align: left;
}
.thank-you-notice p { margin-bottom: 8px; }
.unsuccessful-requests { color: #000; }
.unsuccessful-requests ul:last-child { margin-bottom: 0; }

/*  Card typography (shared card box is defined above). */
.thank-you-callout h2 { margin-top: 0; margin-bottom: 12px; }
.thank-you-callout p { margin-bottom: 12px; line-height: 1.55; }
.thank-you-callout p:last-child { margin-bottom: 0; }

/*  [note] — italic footer line (ABF positioning). Not a card.  */
.thank-you-positioning {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid #e1e1e1;
	font-style: italic;
	color: #6f8190;
	text-align: center;
}
.thank-you-positioning p { margin-bottom: 0; }

/*  Responsive: 2 cols mobile → 3 tablet → 4 desktop  */
@media (max-width: 1023px) {
	.thank-you-brands .brand-grid__item { /* 3 per row (gap-aware: 2×20px ÷ 3) */
		flex-basis: calc(33.333% - 14px);
		max-width: calc(33.333% - 14px);
	}
}

@media (max-width: 767px) {
	.brand-grid { gap: 12px; }
	.thank-you-brands .brand-grid__item { /* 2 per row (gap-aware: 1×12px ÷ 2) */
		flex-basis: calc(50% - 6px);
		max-width: calc(50% - 6px);
	}
	.brand-grid__media { height: 130px; }
	.thank-you-brands,
	.thank-you-callout { margin-top: 20px; padding: 22px; }
	.thank-you-positioning { margin-top: 28px; }
}
