/* ==========================================================================
   SkyTrade Aviation - Forms
   Mirrors inputDecorationTheme in theme.dart: navyLight fill, 8px radius,
   navyMid border, gold focus border at 1.5px.
   ========================================================================== */

.field {
	margin-bottom: var(--st-space-md);
}

.field__label {
	display: block;
	margin-bottom: var(--st-space-xs);
	color: var(--st-gold);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.field__note {
	display: block;
	margin-top: 4px;
	color: var(--st-white-60);
	font-size: 12px;
}

.field__input,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="url"],
select,
textarea {
	width: 100%;
	min-height: 52px;
	padding: var(--st-space-sm) var(--st-space-md);
	background-color: var(--st-input-bg);
	border: 1px solid var(--st-input-border);
	border-radius: var(--st-input-radius);
	color: var(--st-white);
	font-family: var(--st-font-body);
	font-size: 15px;
	transition: border-color 0.15s ease;
}

.field__input::placeholder,
input::placeholder,
textarea::placeholder {
	color: var(--st-input-hint-color);
}

.field__input:focus,
input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--st-input-border-focus);
	border-width: var(--st-input-border-focus-width);
}

textarea {
	min-height: 120px;
	resize: vertical;
}

.field--autocomplete {
	position: relative;
}

.airport-results {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 20;
	background-color: var(--st-navy-light);
	border: 1px solid var(--st-navy-mid);
	border-radius: var(--st-radius-card);
	overflow: hidden;
	max-height: 280px;
	overflow-y: auto;
}

.airport-result {
	display: flex;
	align-items: center;
	gap: var(--st-space-sm);
	width: 100%;
	padding: var(--st-space-sm) var(--st-space-md);
	background: none;
	border: none;
	border-bottom: 1px solid var(--st-navy-mid);
	color: var(--st-white);
	text-align: left;
	cursor: pointer;
	font-family: var(--st-font-body);
}

.airport-result:last-child {
	border-bottom: none;
}

.airport-result:hover,
.airport-result:focus {
	background-color: var(--st-navy-mid);
}

.airport-result__code {
	font-family: monospace;
	color: var(--st-gold);
	font-size: 13px;
	flex-shrink: 0;
}

.airport-result__details {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.airport-result__name {
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.airport-result__city {
	font-size: 11px;
	color: var(--st-white-60);
}

.check-row {
	display: flex;
	align-items: flex-start;
	gap: var(--st-space-sm);
	cursor: pointer;
	padding: var(--st-space-sm);
	border-radius: var(--st-radius-card);
	transition: background-color 0.15s ease;
}

.check-row:hover {
	background-color: rgba(255, 255, 255, 0.03);
}

.check-row__box {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	border: 1px solid var(--st-navy-mid);
	border-radius: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.check-row input:checked ~ .check-row__box,
.check-row.is-checked .check-row__box {
	background-color: var(--st-gold);
	border-color: var(--st-gold);
}

.check-row__label {
	color: var(--st-white-60);
	font-size: 13px;
	line-height: 1.5;
}

.field-error {
	display: flex;
	align-items: flex-start;
	gap: var(--st-space-sm);
	padding: var(--st-space-sm) var(--st-space-md);
	background-color: rgba(229, 62, 62, 0.08);
	border: 1px solid rgba(229, 62, 62, 0.3);
	border-radius: var(--st-radius-card);
	color: var(--st-red);
	font-size: 12px;
}

.notice {
	padding: var(--st-space-sm) var(--st-space-md);
	background-color: var(--st-arc-dim);
	border: 1px solid rgba(201, 168, 76, 0.25);
	border-radius: var(--st-radius-card);
	color: var(--st-white-60);
	font-size: 12px;
	line-height: 1.5;
}
