/* Premium Job Alert Form Styling */

.fame-job-alert-container {
	/* 	background-color: #3c5b7d; */
	border-radius: 12px;
	color: #ffffff;
	/* 	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; */
	max-width: 900px;
	/* 	margin: 20px auto; */
}

.fame-job-alert-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-bottom: 25px;
}

.fame-job-alert-group {
	display: flex;
	flex-direction: column;
}

.fame-job-alert-group--full {
	grid-column: span 2;
}

.fame-job-alert-group label {
	font-size: 16px;
	font-weight: 400;
	margin-bottom: 12px;
	color: #ffffff;
}

.fame-job-alert-group input[type="text"],
.fame-job-alert-group input[type="email"],
.fame-job-alert-group select {
	background-color: #ffffff !important;
	border: none !important;
	border-radius: 30px !important;
	padding: 15px 32px !important;
	font-size: 14px !important;
	color: #1f2937 !important;
	width: 100% !important;
	box-sizing: border-box !important;
	outline: none !important;
	height: 48px !important;
	line-height: 20px !important;
	transition: box-shadow 0.2s ease-in-out;
}

.fame-job-alert-group input[type="text"]::placeholder,
.fame-job-alert-group input[type="email"]::placeholder {
	color: #8e9fae !important;
	opacity: 1;
}

.fame-job-alert-group input[type="text"]:focus,
.fame-job-alert-group input[type="email"]:focus,
.fame-job-alert-group select:focus {
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3) !important;
}

/* Dropdown specific reset styling */
.fame-job-alert-group select {
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233c5b7d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>") !important;
	background-repeat: no-repeat !important;
	background-position: right 20px center !important;
	background-size: 16px !important;
	padding-right: 45px !important;
	cursor: pointer;
}

/* Submit Actions */
.fame-job-alert-actions {
	margin-top: 48px;
}

.fame-job-alert-btn {
	background-color: #ffffff !important;
	color: #3C5D82 !important;
	border: none !important;
	border-radius: 30px !important;
	padding: 15px 45px !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	transition: transform 0.15s ease, background-color 0.2s ease !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-transform: none !important;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
#fame-job-alert-form ::placeholder ,
#fame-job-alert-form .fja-dd-label{
	font-weight: 400;
	font-size: 16px;
	line-height: 100%;
}

.fame-job-alert-btn:hover {
	background-color: #f3f4f6 !important;
	transform: translateY(-1px);
}

.fame-job-alert-btn:active {
	transform: translateY(1px);
}

/* Spinner Loader */
.btn-loader {
	width: 20px;
	height: 20px;
	border: 2px solid #2f4f73;
	border-top: 2px solid transparent;
	border-radius: 50%;
	animation: fame-spin 0.8s linear infinite;
}

@keyframes fame-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Response alert container */
.fame-job-alert-response {
	margin-top: 20px;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
	font-weight: 500;
}

.fame-job-alert-response.success {
	background-color: rgba(220, 252, 231, 0.95);
	color: #15803d;
	border-left: 4px solid #16a34a;
}

.fame-job-alert-response.error {
	background-color: rgba(254, 226, 226, 0.95);
	color: #b91c1c;
	border-left: 4px solid #dc2626;
}

/* Responsive collapse rules */
@media (max-width: 768px) {
	.fame-job-alert-grid {
		grid-template-columns: 1fr;
	}

	.fame-job-alert-group--full {
		grid-column: span 1;
	}

	.fame-job-alert-container {
		padding-top: 24px;
	}
	.fame-job-alert-actions {
		margin-top: 36px;
	}
	.fame-job-alert-grid {
		gap: 20px;
	}
	.fame-job-alert-btn {
		width: 100%;
	}
}

/* ── Field-level error messages ──────────────────────────────────────────── */
.fame-field-error {
    display: block;
    color: #ff4141;
    font-size: 14px;
    line-height: 1.4;
    margin-top: 5px;
    padding-left: 6px;
}

/* ── Invalid state — red border ──────────────────────────────────────────── */
.fame-job-alert-form-element input.fame-input-invalid,
.fame-job-alert-form-element select.fame-input-invalid {
	border:  2px solid #ef4444 !important;
	outline: none;
}

/* ── Valid state — green border ──────────────────────────────────────────── */
.fame-job-alert-form-element input.fame-input-valid,
.fame-job-alert-form-element select.fame-input-valid {
	border:  2px solid #10b981 !important;
	outline: none;
}

/* ── Smooth transition on border colour change ───────────────────────────── */
.fame-job-alert-form-element input,
.fame-job-alert-form-element select {
	transition: border-color 0.2s ease;
}
/* ══════════════════════════════════════════
UNIVERSAL CUSTOM DROPDOWN  (.fja-dd-wrap)
Used in: alert form, alert popup, referral form
══════════════════════════════════════════ */

.fja-dd-wrap {
	position: relative;
	width: 100%;
}

.fja-dd-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	padding: 14px 20px !important;
	background: #ffffff !important;
	border: none !important;
	border-radius: 30px !important;
	font-size: 14px !important;
	color: #8e9fae !important;
	cursor: pointer !important;
	text-align: left !important;
	transition: box-shadow 0.2s ease !important;
	height: 48px !important;
	box-sizing: border-box !important;
	font-family: inherit !important;
}

.fja-dd-btn.fja-dd-active {
	color: #1f2937 !important;
}

.fja-dd-btn:focus {
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3) !important;
	outline: none !important;
}

.fja-dd-btn.open {
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3) !important;
}

.fja-dd-label {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fja-dd-chevron {
	width: 12px;
	height: 8px;
	flex-shrink: 0;
	margin-left: 8px;
	color: #8e9fae;
	transition: transform 0.2s ease;
}

.fja-dd-btn.open .fja-dd-chevron {
	transform: rotate(180deg);
}

.fja-dd-panel {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	background: #ffffff;
	border: 1px solid #dde3ec;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(26, 35, 50, 0.14);
	z-index: 9999;
	overflow: hidden;
	max-height: 220px;
	overflow-y: auto;
	animation: fjaDropIn 0.15s ease;
}

.fja-dd-panel.open {
	display: block;
}

@keyframes fjaDropIn {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}

.fja-dd-panel::-webkit-scrollbar { width: 4px; }
.fja-dd-panel::-webkit-scrollbar-track { background: #f7fafc; }
.fja-dd-panel::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 4px; }

.fja-dd-item {
	padding: 10px 16px;
	font-size: 14px;
	color: #2d3d50;
	cursor: pointer;
	transition: background 0.15s;
	border-bottom: 1px solid #f0f3f7;
}

.fja-dd-item:last-child { border-bottom: none; }

.fja-dd-item:hover { background: #f5f8fc; }

.fja-dd-item.active {
	background: #edf3fa;
	color: #1a3a5c;
	font-weight: 500;
}

/* ── Inside alert popup (.fj-alert-wrap) — white bg so override btn colors ── */
.fj-alert-wrap .fja-dd-btn,
.fj-apply-wrap .fja-dd-btn {
	background: #ffffff !important;
	border: 1.5px solid #dde3ec !important;
	border-radius: 10px !important;
	color: #a0aab8 !important;
	height: auto !important;
	padding: 14px 16px !important;
}

.fj-alert-wrap .fja-dd-btn.fja-dd-active,
.fj-apply-wrap .fja-dd-btn.fja-dd-active {
	color: #1a2332 !important;
}

.fj-alert-wrap .fja-dd-btn:focus,
.fj-alert-wrap .fja-dd-btn.open,
.fj-apply-wrap .fja-dd-btn:focus,
.fj-apply-wrap .fja-dd-btn.open {
	border-color: #3C5D82 !important;
	box-shadow: 0 0 0 3px rgba(60, 93, 130, 0.1) !important;
}

/* Invalid/valid states on the button */
.fja-dd-btn.fame-input-invalid,
.fja-dd-btn.fja-input-invalid {
	border: 2px solid #ef4444 !important;
}

.fja-dd-btn.fame-input-valid,
.fja-dd-btn.fja-input-valid {
	border: 2px solid #10b981 !important;
}

/* ── CRITICAL: prevent grid/group from clipping the dropdown panel ── */
.fame-job-alert-grid {
	overflow: visible !important;
}

.fame-job-alert-group {
	overflow: visible !important;
	position: relative;
}

/* ── Fix dropdown panel z-index inside the blue container ── */
.fame-job-alert-container {
	overflow: visible !important;
	position: relative;
}

.fame-job-alert-form-element {
	overflow: visible !important;
}