/* ==========================================================================
   SHARED UI: FORM INPUTS, SELECTS & PILLS — NOUVA DARK SURFACE (FSD Layer: shared/ui)
   ========================================================================== */

.pajucara-input,
.fc-input,
.fc-select,
.fc-textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 1rem;
	font-family: var(--font-sans);
	font-size: 0.9375rem;
	line-height: 1.45;
	outline: none;
	background-color: rgba(0, 18, 36, 0.78) !important;
	border: 1px solid rgba(255, 255, 255, 0.14) !important;
	border-radius: 12px !important;
	color: #FFFFFF !important;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
	appearance: none;
}

.fc-select {
	padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23D4A03E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 0.85rem center !important;
	background-size: 18px !important;
	cursor: pointer;
}

.fc-textarea {
	min-height: 124px;
	resize: vertical;
}

.pajucara-input::placeholder,
.fc-input::placeholder,
.fc-textarea::placeholder {
	color: rgba(148, 176, 204, 0.65) !important;
}

.pajucara-input:hover,
.fc-input:hover,
.fc-select:hover,
.fc-textarea:hover {
	border-color: rgba(212, 160, 62, 0.45) !important;
}

.pajucara-input:focus,
.fc-input:focus,
.fc-select:focus,
.fc-textarea:focus {
	background-color: rgba(0, 28, 56, 0.95) !important;
	border-color: var(--sand) !important;
	box-shadow: 0 0 0 3px rgba(212, 160, 62, 0.2) !important;
}

.pajucara-input option,
.fc-select option {
	background-color: #001E38;
	color: #FFFFFF;
}

.fc-field {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	position: relative;
}

.fc-label {
	font-family: var(--font-sans);
	font-size: 0.84rem;
	font-weight: 600;
	color: #E2ECF5;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.fc-label--inverse {
	color: #FFFFFF;
}

.fc-label__required {
	color: var(--sand, #D4A03E);
	font-weight: 700;
}

.fc-input[aria-invalid="true"],
.fc-select[aria-invalid="true"],
.fc-textarea[aria-invalid="true"],
.pajucara-input[aria-invalid="true"] {
	border-color: #F87171 !important;
	box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18) !important;
}

.fc-field__error {
	font-size: 0.8125rem;
	color: #FCA5A5;
	font-weight: 500;
	min-height: 1.15rem;
	display: none;
}

.fc-field.has-error .fc-field__error {
	display: block;
}

/* Search Input with Leading Icon */
.fc-input-icon-wrap {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

.fc-input-icon-wrap__icon {
	position: absolute;
	left: 1rem;
	color: var(--sand, #D4A03E);
	pointer-events: none;
	display: inline-flex;
}

.fc-input-icon-wrap .fc-input {
	padding-left: 2.75rem;
}

/* Filter Pill Buttons — Nouva Dark Surface */
.fc-pill-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.fc-pill,
.year-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 40px;
	padding: 0.45rem 1rem;
	border-radius: 9999px;
	font-family: var(--font-sans);
	font-size: 0.82rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.86);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.14);
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
}

.fc-pill:hover,
.year-pill:hover {
	background: rgba(212, 160, 62, 0.16);
	border-color: var(--sand, #D4A03E);
	color: #FFFFFF;
	transform: translateY(-1px);
}

.fc-pill.is-active,
.fc-pill[aria-pressed="true"],
.year-pill.is-active {
	background: var(--sand, #D4A03E);
	border-color: var(--sand, #D4A03E);
	color: #001224;
	font-weight: 700;
	box-shadow: 0 6px 18px rgba(212, 160, 62, 0.35);
}

/* Hide native browser clear button on search inputs */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
	-webkit-appearance: none;
	appearance: none;
	display: none;
}

/* Reusable Terms Consent Checkbox — Nouva Dark Surface */
.nouva-terms-consent {
	display: flex;
	align-items: flex-start;
	width: 100%;
	margin-top: 0.15rem;
}

.nouva-terms-consent__label {
	position: relative;
	display: inline-flex;
	align-items: flex-start;
	gap: 0.65rem;
	cursor: pointer;
	user-select: none;
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--muted-foreground);
}

.nouva-terms-consent__checkbox {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.nouva-terms-consent__box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 19px;
	height: 19px;
	margin-top: 0.1rem;
	border-radius: 6px;
	background-color: rgba(0, 18, 36, 0.82);
	border: 1.5px solid rgba(255, 255, 255, 0.24);
	color: #001224;
	flex-shrink: 0;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nouva-terms-consent__check-icon {
	opacity: 0;
	transform: scale(0.65);
	transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.nouva-terms-consent__label:hover .nouva-terms-consent__box {
	border-color: var(--sand);
}

.nouva-terms-consent__checkbox:checked + .nouva-terms-consent__box {
	background-color: var(--sand);
	border-color: var(--sand);
}

.nouva-terms-consent__checkbox:checked + .nouva-terms-consent__box .nouva-terms-consent__check-icon {
	opacity: 1;
	transform: scale(1);
}

.nouva-terms-consent__link {
	color: var(--sand);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
