/* MSD Office Directory Styles */

.msd-offices-directory-page {
	background-color: #fff;
}

/* Header Section */
.msd-offices-directory-page .section.highlighted-section {
	background-color: var(--color-teal);
	padding: 2.5rem 0;
}

.msd-offices-directory-page .mcs-page-header .title {
	color: var(--color-white);
	font-size: 1.375rem;
	margin: 0;
}

/* Current Country Header */
.msd-header {
	background-color: #fff;
	padding: 2rem 0;
	border-bottom: 1px solid #e0e0e0;
}

.curent-country-description {
	margin-bottom: 1.5rem;
}

.curent-country-description p {
	font-size: 1rem;
	line-height: 1.6;
	margin: 0;
}

.msd-header-current-country-contact {
	display: flex;
	flex-direction: column;
	font-weight: 300;
	gap: 0.5rem;
}

.current-country {
	font-size: 1.375rem;
	font-weight: 300;
	line-height: 1.5;
}

.current-country-contact {
	font-size: 1.375rem;
}

.current-country-contact a {
	color: #00857c;
	text-decoration: none;
	transition: color 0.2s ease;
}

.current-country-contact a:hover {
	color: #006d66;
	text-decoration: underline;
}

/* Filter Section */
.msd-offices-directory-filter {
	background-color: #ffffff;
	padding: 2rem 0;
	border-bottom: 1px solid #e0e0e0;
}

/* Search Field */
.contacts-page-search-field {
}

.msd-offices-directory-page .mcs-form-control .mcs-form-input .form-control {
	font-size: 0.875rem;
}

.mcs-form-control-search {
}

.mcs-form-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.mcs-form-input-wrapper input {
}

.mcs-form-input-wrapper input:focus {
	outline: none;
	border-color: #006d66;
	box-shadow: 0 0 0 3px rgba(0, 133, 124, 0.1);
}

.mcs-form-control-icon {
	position: absolute;
	right: 1rem;
	color: #00857c;
}

/* Alphabet Filter */
.scrollable-section {
	overflow-x: auto;
}

.countries-list {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.countries-list li {
	margin: 0;
}

.btn-mcs-blank {
	background-color: transparent;
	border: 2px solid #00857c;
	color: #00857c;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.btn-mcs-blank:hover:not(.disabled) {
	background-color: #00857c;
	color: #fff;
	border-radius: 8px;
}

.btn-mcs-blank.active {
	color: #fff;
	font-weight: 700;
}

.btn-mcs-blank.disabled {
	border-color: #ccc;
	color: #ccc;
	cursor: not-allowed;
	opacity: 0.5;
}

/* Country Listings */
.msd-offices-directory-listings {
	padding: 0 0 3rem 0;
	background-color: #f5f5f5;
}

.msd-offices-directory-listings-inner {
	background-color: #ffffff;
	padding: 2rem;
	border: 1px solid #e0e0e0;
}

.msd-offices-directory-listings-options {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.msd-offices-directory-listings-option {
	border-top: 1px solid var(--color-gray-40);
	font-size: 1.125rem;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	transition: all 0.2s ease;
}

.country-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #003d71;
	margin-bottom: 0.5rem;
}

.listing-emails a {
	color: #00857c;
	text-decoration: none;
	font-size: 1rem;
	font-weight: 500;
	word-break: break-word;
	transition: color 0.2s ease;
}

.listing-emails a:hover {
	color: #006d66;
	text-decoration: underline;
}

/* No Results Message */
.no-results-message {
	text-align: center;
	padding: 3rem 0;
}

.no-results-message p {
	color: #666;
	font-size: 1.125rem;
	margin: 0;
}

.msd-offices-directory-page .msd-offices-directory-listings {
	background-color: var(--color-white);
}
.msd-offices-directory-page .msd-offices-directory-listings .country-title {
	font-size: 1.125rem;
}

/* MSD Office Directory Responsive Styles */
@media (max-width: 1180px) {
	/* Hide alphabet letters on tablet landscape and below */
	.msd-offices-directory-page .msd-offices-directory-filter .scrollable-section {
		display: none;
	}
}

@media (max-width: 768px) {
	.msd-offices-directory-page .mcs-page-header .title {
		font-size: 2rem;
	}

	.msd-offices-directory-listings-inner {
		padding: 1.5rem;
	}

	.msd-offices-directory-listings-option {
		padding: 1.5rem 0;
	}

	.countries-list {
		justify-content: flex-start;
		gap: 0.25rem;
	}

	.btn-mcs-blank {
		width: 36px;
		height: 36px;
		font-size: 0.875rem;
	}

	.scrollable-section {
		padding: 0 0.5rem;
	}
}

@media (max-width: 576px) {
	.msd-offices-directory-page .mcs-page-header .title {
		font-size: 1.75rem;
	}

	.msd-header-current-country-contact {
		font-size: 0.875rem;
	}

	.current-country-contact {
		font-size: 1rem;
	}
}

