/* =============================================================
   Form Info — Job Inquiry & Progress  |  frontend.css v2.0
   Matches the design in the provided screenshots.
   ============================================================= */

/* ---------- Container ---------- */
.fi-wrap {
	box-sizing: border-box;
	background: #fdfdf5; /* warm off-white from screenshot */
	padding: 28px 24px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.fi-wrap *,
.fi-wrap *::before,
.fi-wrap *::after {
	box-sizing: inherit;
}

/* ---------- Three-column layout ---------- */
.fi-layout {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	max-width: 1080px;
	margin: 0 auto;
}

/* Photo column — fixed width */
.fi-photo-col {
	flex: 0 0 auto;
	width: 180px;
}

/* Info column — grows to fill middle */
.fi-info-col {
	flex: 1 1 0;
	min-width: 0;
	padding: 8px 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 220px;
}

/* Search column — fixed width, right-aligned group */
.fi-search-col {
	flex: 0 0 auto;
	width: 320px;
}

/* ---------- Photo frame ---------- */
.fi-photo-frame {
	width: 180px;
	height: 220px;
	background: #e8e8e8;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fi-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	border-radius: 12px;
}

/* ---------- Info / result area ---------- */
.fi-prompt {
	margin: 0;
	color: #555;
	font-size: 15px;
}

.fi-result {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fi-result-row {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-size: 15px;
	line-height: 1.5;
}

.fi-result-label {
	color: #333;
	font-weight: 600;
	white-space: nowrap;
}

/* The golden/amber colour for values — matches screenshot */
.fi-result-value {
	color: #b8892a;
	font-weight: 500;
}

.fi-error {
	margin: 0;
	color: #b91c1c;
	font-size: 14px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 6px;
	padding: 8px 12px;
}

/* ---------- Search heading ---------- */
.fi-heading {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 700;
	color: #1d6b3e; /* dark green from screenshot */
	line-height: 1.2;
	text-align: right;
}

/* ---------- Inputs ---------- */
.fi-field-wrap {
	margin-bottom: 12px;
}

.fi-input {
	display: block;
	width: 100%;
	padding: 10px 16px;
	font-size: 14px;
	color: #333;
	background: #fff;
	border: 1.5px solid #4caf6e; /* green border matching screenshot */
	border-radius: 999px; /* pill shape */
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.fi-input::placeholder {
	color: #aaa;
}

.fi-input:focus {
	border-color: #1d6b3e;
	box-shadow: 0 0 0 3px rgba(29, 107, 62, 0.15);
}

/* ---------- Button row ---------- */
.fi-btn-row {
	display: flex;
	justify-content: flex-end;
	margin-top: 4px;
}

.fi-btn {
	cursor: pointer;
	background: #1d6b3e; /* dark green */
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 10px 32px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: background 0.2s, transform 0.1s;
}

.fi-btn:hover {
	background: #155530;
}

.fi-btn:active {
	transform: scale(0.97);
}

.fi-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* ---------- Loading indicator ---------- */
.fi-loading {
	margin: 8px 0 0;
	font-size: 13px;
	color: #1d6b3e;
	text-align: right;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
	.fi-layout {
		flex-direction: column;
		align-items: stretch;
	}

	.fi-photo-col,
	.fi-photo-frame,
	.fi-search-col {
		width: 100%;
	}

	.fi-photo-frame {
		height: 240px;
	}

	.fi-heading {
		text-align: left;
	}

	.fi-info-col {
		min-height: auto;
	}

	.fi-btn-row {
		justify-content: flex-start;
	}
}
