/**
 * TB HIV Care — Find a Service
 * STEP 6c: replaces assets/find-a-service.css entirely.
 *
 * Colours/border-radius pulled directly from custom_2.css so this stays
 * consistent with the rest of the site:
 *   Primary blue:  #1A4276
 *   Accent orange: #F99D1E
 *   Grey box:      #f5f5f5   (same as .greybg)
 *   Radius:        12px      (same as .border-rd)
 *
 * Layout uses your existing Bootstrap .container/.row/.col-* classes (set
 * up in the template tag PHP) — this file only adds what Bootstrap and your
 * theme don't already provide: the select loading state, the result card,
 * the chips, and the spinner animation.
 */

.tbhc-fas-intro {
	margin-bottom: 20px;
}

.tbhc-fas-hint {
	font-size: 0.95rem;
	color: #2E2F33;
	margin-bottom: 20px;
}

/* --- Filters row --- */

.tbhc-fas-field {
	margin-bottom: 15px;
}

.tbhc-fas-select-wrap {
	position: relative;
	display: block;
}

.tbhc-fas-select {
	width: 100%;
	padding: 10px 36px 10px 12px;
	border: 1px solid #C7CBD1;
	border-radius: 5px; /* matches the site's input/select radius */
	font-size: 1rem;
	background: #fff;
	appearance: none;
	-webkit-appearance: none;
}

.tbhc-fas-select:disabled {
	background: #f5f5f5; /* same grey as .greybg */
	color: #999;
	cursor: not-allowed;
}

/* --- Loading spinner (replaces a GIF — same purpose, no extra file/host) --- */

.tbhc-fas-spinner {
	display: none;
	position: absolute;
	right: 12px;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border: 2px solid #F99D1E;
	border-top-color: transparent;
	border-radius: 50%;
	animation: tbhc-fas-spin 0.7s linear infinite;
	pointer-events: none;
}

.tbhc-fas-select-wrap.is-loading .tbhc-fas-spinner {
	display: block;
}

.tbhc-fas-spinner-lg {
	display: inline-block;
	position: static;
	width: 32px;
	height: 32px;
	margin: 0;
	border-width: 3px;
}

.tbhc-fas-loading-row {
	display: flex;
	justify-content: center;
	padding: 30px 0;
}

@keyframes tbhc-fas-spin {
	to { transform: rotate(360deg); }
}

/* --- Result: contact card (left column) --- */

.tbhc-fas-result {
	margin-top: 10px;
}

.tbhc-fas-card {
	background: #fff;
	border: 1px solid #E3E5E8;
	border-radius: 12px; /* matches .border-rd */
	padding: 25px;
	height: 100%;
	color: #1A4276;
}
.tbhc-fas-card a{
	text-decoration: none;
}

.tbhc-fas-card h3 {
	color: #1A4276;
	font-weight: bold;
	font-size: 20px;
	margin-bottom: 10px;
}

.tbhc-fas-contact-label {
	color: #F99D1E;
	font-weight: 600;
	margin-bottom: 10px;
}

.tbhc-fas-contacts {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tbhc-fas-contacts li {
	padding: 5px 0;
}

.tbhc-fas-contacts li:first-child {
	padding-top: 0;
}

.tbhc-fas-phone-label {
	font-weight: bold;
}

.tbhc-fas-phone-row,
.tbhc-fas-hours-row {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid #EEE;
}

.tbhc-fas-hours-label {
	font-weight: bold;
}

.tbhc-fas-phone-row + .tbhc-fas-hours-row {
	border-top: none;
	padding-top: 0;
	margin-top: 4px;
}

.tbhc-fas-empty {
	color: #a33;
	font-weight: 600;
}

/* --- Result: other services (right column) --- */
/* Box itself uses your existing .greybg .border-rd .padd-all-around classes,
   applied directly in the JS markup — only chip-specific styling lives here. */

.tbhc-fas-other-services h4 {
	color: #1A4276;
	font-weight: bold;
	font-size: 18px;
	margin-bottom: 15px;
}

.tbhc-fas-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tbhc-fas-chip {
    color: #1A4276;
    background: #fff;
    border-radius: 999px;
    padding: 10px 18px 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.tbhc-fas-chip:hover {
	background: #1A4276;
	border-color: #1A4276;
	color: #fff;
}

.tbhc-fas-other-services{
	border: 1px solid #B8C1D9;
	background: #1A42761A;
	height: 100%;
}
@media (max-width: 991px) {
	.tbhc-fas-card-col {
		margin-bottom: 20px;
	}
}