/* ============================================================
   Frontier Track & Trace — Elementor-matched styles
   Brand: --scs-navy #101820  --scs-orange #ee5521
   Font:  Montserrat (loaded via Google Fonts)
   ============================================================ */

.ftt-wrap {
	font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	max-width: 100%;
}

/* ── Hero panel ──────────────────────────────────────────────── */
.ftt-hero {
	background: #101820;
	border-radius: 12px;
	padding: 3rem 2.5rem;
	color: #fff;
}

/* ── Badge ───────────────────────────────────────────────────── */
.ftt-badge {
	display: inline-block;
	background: #ee5521;
	color: #fff;
	font-size: 10.5px;
	font-weight: 900;
	letter-spacing: 1.575px;
	text-transform: uppercase;
	padding: 8px 20px;
	border-radius: 6px;
	margin-bottom: 1.25rem;
}

/* ── Title ───────────────────────────────────────────────────── */
.ftt-title {
	margin: 0 0 .75rem;
	font-size: clamp(1.75rem, 4vw, 3.25rem);
	font-weight: 900;
	color: #fff;
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: -0.5px;
}

/* Last word highlighted in orange via PHP-injected <span> */
.ftt-title span {
	color: #ee5521;
}

/* ── Subtitle ────────────────────────────────────────────────── */
.ftt-subtitle {
	margin: 0 0 1.75rem;
	font-size: 15px;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.72);
	line-height: 1.6;
	max-width: 560px;
}

/* ── Form ────────────────────────────────────────────────────── */
.ftt-form {
	display: flex;
	gap: .75rem;
	flex-wrap: wrap;
}

.ftt-input {
	flex: 1 1 14rem;
	min-width: 0;
	padding: 16px 22px;
	background: rgba(255, 255, 255, 0.1);
	border: 1.75px solid rgba(255, 255, 255, 0.18);
	border-radius: 16px;
	color: #fff;
	font: 600 15px/1.4 Montserrat, sans-serif;
	text-transform: uppercase;
}

.ftt-input::placeholder {
	color: rgba(255, 255, 255, 0.45);
	text-transform: none;
	font-weight: 400;
}

.ftt-input:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.5);
	background: rgba(255, 255, 255, 0.15);
}

.ftt-button {
	padding: 16px 32px;
	border: none;
	border-radius: 16px;
	background: #ee5521;
	color: #fff;
	font: 800 13.8px/1 Montserrat, sans-serif;
	letter-spacing: 0.83px;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: rgba(238, 85, 33, 0.26) 0 10px 24px 0;
	transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.ftt-button:hover:not([disabled]) {
	background: #d44518;
	box-shadow: rgba(238, 85, 33, 0.4) 0 14px 28px 0;
	transform: translateY(-1px);
}

.ftt-button[disabled] {
	opacity: .6;
	cursor: progress;
	transform: none;
}

/* ── Status ──────────────────────────────────────────────────── */
.ftt-status {
	margin: .75rem 0 0;
	min-height: 1.25em;
	font-size: .9rem;
	color: rgba(255, 255, 255, 0.8);
}

.ftt-status--error {
	color: #ff6b5b;
}

.ftt-status--loading {
	color: rgba(255, 255, 255, 0.55);
}

/* ── Result panel ────────────────────────────────────────────── */
.ftt-result {
	margin-top: .75rem;
	padding: .75rem 1rem;
	border: 1px solid #e2e4e7;
	border-radius: 4px;
	background: #fafafa;
	overflow-x: auto;
	font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ftt-result table {
	width: 100%;
	border-collapse: collapse;
}

.ftt-result th,
.ftt-result td {
	padding: .4rem .6rem;
	border-bottom: 1px solid #e2e4e7;
	text-align: left;
	vertical-align: top;
}

.ftt-result th {
	background: #f0f0f1;
	font-weight: 600;
}

/* All upstream images — constrain to container width */
.ftt-result img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto .5rem;
}

/* Signature / banner image at the top of the result */
.ftt-result img.resized {
	max-width: 420px;
	margin-bottom: 1rem;
}

/* POD scan images — flex grid so up to 4 images sit side by side on wide screens,
   wrap to a single column on mobile */
.ftt-result #podTable tbody tr {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
}

.ftt-result #podTable td {
	flex: 1 1 calc(50% - .75rem);
	min-width: 200px;
	padding: .25rem;
}

.ftt-result #podTable img {
	width: 100%;
	height: auto;
	border: 1px solid #e2e4e7;
	padding: 4px;
	background: #fff;
	box-sizing: border-box;
}

.ftt-result tr.trackingPrimaryRow th,
.ftt-result tr.trackingPrimaryRow td {
	background: #ee5521;
	color: #fff;
	font-weight: 600;
}

.ftt-result tr.trackingSecondaryRow th,
.ftt-result tr.trackingSecondaryRow td {
	background: #fef0e7;
	font-weight: 600;
}

.ftt-result tr.trackingTertiaryRow td {
	background: #fff;
}

.ftt-result #notesTable td:first-child,
.ftt-result #notesTable th:first-child {
	width: 40%;
}
