/* Basic reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: #333;
	background-color: #f1f1f1;
}
p {
	font-family: 'Poppins', sans-serif;
}
form h3 {
	font-size: 1.25rem;
	margin-left: 0;
}
form select {
	min-width: 0;
}
textarea {
	/* width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px; */
	width: 100%;
	height: 250px;
	padding: 12px 20px;
	box-sizing: border-box;
	border: 2px solid #ccc;
	border-radius: 4px;
	background-color: #f8f8f8;
	resize: none;
	/* pointer-events: none; */
}
form.referral-status-update-form label {
	display: block;
	font-weight: bold;
	margin: 0;
	padding: 0;
	min-width: none;
	max-width: none;
	font-size: 1rem;
}

#centerer {
	max-width: none;
}
#masthead {
	/* width: 96%; */
	padding: 8px 2%;
	border-bottom: 1px solid #ccc;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.1);
}
#masthead-right {
	float: right;
	padding: 16px 16px 0px 0px;
}
#masthead a#masthead-si_link {
	color: #1378f4;
	font-size: 110%;
}
#masthead-icon {
	display: block;
	float: left;
	height: 80px;
	width: auto;
}
#masthead-title {
	margin: 0px 0px 0px 6px;
	float: left;
	font-size: 110%;
}
#masthead-title-large {
	font-size: 220%;
	line-height: 100%;
}
#footer {
	padding-bottom: 100px;
}
h2 {
	text-align: center;
}
#page-intro {
	/* padding:0px 15% 16px 15%; */
	text-align: center;
}
.page-intro-content {
	text-align: left;
	display: flex;
	gap: 16px;
	/* border: 1px solid #ccc;
	border-radius: 8px; */
	padding: 16px;
}
.page-intro-content-left {
	border: 1px solid #ccc;
	border-radius: 16px;
	padding: 16px;
	flex: 1;
}
.page-intro-content-right {
	border: 1px solid #ccc;
	border-radius: 16px;
	padding: 16px;
	flex: 1;
}
.partner-btn {
	background-color: #1378f4;
	color: #fff;
	border: none;
	border-radius: 16px;
	padding: 8px 16px;
	/* cursor: pointer; */
}
#partner-list {
	margin: 0px 0px;
}
.partner-full {
	border: 1px solid #ccc;
	margin-bottom: 20px;
	padding: 16px;
	border-radius: 5px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}
.partner-item {
	border: 1px solid #ccc;
	margin-bottom: 20px;
	padding: 16px;
}
.partner-blurb {
	font-family: Nunito, sans-serif;
}
.partner-info {
	float: left;
	width: 60%;
}
.partner-contact {
	float: left;
	width: 35%;
	margin-left: 5%;
	overflow-wrap: break-word;
	white-space: normal;
}
.partner-name {
	font-size: 140%;
	margin-bottom: 8px;
}
.partner-contact div {
	margin: 8px 0px;
}
.partner-profile_link {
	display: block;
	font-size: 120%;
	margin: 6px 0px;
}
a.category-link {
	display: block;
	text-align: center;
	float: left;
	color: #000;
	min-width: 300px;
	padding: 10px 10px 10px 4px;
	border-left-width: 16px;
	border-left-style: solid;
	margin: 8px 16px 0px 0px;
	border-radius: 6px;
}
#switch-categories-browser a.category-link {
	font-size: 110%;
	margin: 8px 16px 0px 0px;
}
.partner-item a.category-link {
	font-size: 90%;
	padding: 6px;
	min-width: 0px;
}

.category-masthead {
	width: 100%;
}
.category-masthead h2 {
	width: 100%;
	margin-top: 16px;
	border-bottom-width: 4px;
	border-bottom-style: solid;
	padding: 6px;
}
.category-masthead .category-description {
	margin: 0px 30px;
}

.category-blurb {
	float: left;
	width: 58%;
	font-style: italic;
	padding-top: 8px;
}
.category-ECE {
	/*background-color:#F1636D;/*RED*/
	background-color: #f2babe;
	border-color: #f1636d;
}
.category-AFTER_SUMMER {
	background-color: #bdcbef; /*BLUE*/
	border-color: #657bb7; /*BLUE*/
}
.category-CULTURE_REC {
	background-color: #c0f7da; /*GREEN*/
	border-color: #53bd86; /*GREEN*/
}
.category-HEALTH {
	background-color: #fff8c9; /*YELLOW*/
	border-color: #faeb76; /*YELLOW*/
}
.category-MENTAL_HEALTH {
	background-color: #ffe7f0; /*ORANGE*/
	border-color: #ff76dd; /*ORANGE*/
}
.category-FAMILY {
	background-color: #e5c4ff; /*PURPLE*/
	border-color: #b564ef; /*PURPLE*/
}
.category-PROFESSIONALS {
	background-color: #ffe2c6; /*ORANGE*/
	border-color: #ffac54; /*ORANGE*/
}
.category-MATERNAL_INFANT {
	background-color: #f7e688ea; /*ORANGE*/
	border-color: #a2bb16; /*ORANGE*/
}
a.category-link:link {
	color: #000;
}
a.category-link:visited {
	color: #000;
}
#current_filters-bar {
	position: fixed;
	bottom: 0px;
	left: 0px;
	padding: 8px 8px 16px 8px;
	border: 1px solid #ccc;
	background-color: #fff;
	width: 100%;
	-webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
	-moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
	box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
}
#current_filters-bar .category-link {
	display: inline-block;
	float: none;
}
#current_filters-viewing {
	display: inline-block;
	font-size: 120%;
}
#category-browser-switch {
	text-align: center;
	font-size: 120%;
	padding: 8px 12px;
	border: 1px solid #1378f4;
	border-radius: 8px;
}

@media only screen and (max-width: 1023px) {
	#partner-list {
		margin: 0px;
	}
	#page-intro {
		padding: 0px 16px;
	}
	.partner-item {
	}
	.partner-info {
		float: none;
		width: 100%;
	}
	.partner-details {
		float: none;
		width: 100%;
	}
	.partner-contact {
		float: none;
		width: 100%;
	}
	.category-masthead h2 {
		width: auto;
	}
	.category-masthead .category-description {
		margin: 0px;
	}
	a.category-link {
		display: block;
		text-align: center;
		float: none;
		color: #000;
		min-width: 0px;
		width: 94%;
		padding: 10px 0.5% 10px 0.5%;
		margin: 8px 0.5% 0px 0.5%;
	}
	.category-blurb {
		float: none;
		width: 100%;
		font-style: italic;
	}
	#current_filters-bar .category-link {
		width: 60%;
		display: inline-block;
		float: none;
	}
	#current_filters-viewing {
		width: auto;
		display: inline-block;
		font-size: 120%;
	}
	#category-browser-switch {
		display: block;
		text-align: center;
		font-size: 120%;
		padding: 8px 2%;
		margin: 12px 2%;
		border: 1px solid #1378f4;
		border-radius: 8px;
		width: 90%;
	}
}

.contact-box {
	padding: 1%;
	border-left: 3px solid #ccc;
}
.contact-row {
	padding: 3px 0px;
}
.contact-row-label {
	font-weight: bold;
}

.info_row {
	padding: 2px 0px;
}
.info_row-label {
	font-weight: bold;
	display: inline-block;
	min-width: 100px;
}
#referral_text {
	font-size: 110%;
	margin: 4px;
	padding: 1rem;
	border-left: 4px solid #53bd86;
	background-color: #f1f1f1;
}

/* Search Input Box */
.search-container {
	margin: 1rem auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 770px;
	width: 95%;
}
.search-bar {
	background-color: #fff;
	border-radius: 24px;
	padding: 10px;
	box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px,
		rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
	margin-bottom: 1rem;
	width: 100%;
	position: relative;
}
.search-bar input[type='search'] {
	border: none;
	outline: none;
	font-size: 16px;
	padding: 10px;
	width: 100%;
}
.search-bar input[type='search']:focus {
	outline: none;
}
#search-suggestions {
	background-color: #fff;
	border-top: 1px solid #ccc;
	overflow-y: auto;
	z-index: 1;
	text-align: left;
	padding: 12px;
}

#search-suggestions ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

#search-suggestions li {
	padding: 5px;
	cursor: pointer;
}

#search-suggestions li:hover {
	background-color: #f2f2f2;
}
#search-suggestions {
	display: none;
}

#search-suggestions.show {
	display: block;
}
.suggested-keyword {
	padding: 5px;
	cursor: pointer;
}
.suggested-keyword.selected {
	background-color: #f1f1f1;
	border-left: 3px solid #007bff;
}
.suggested-keyword strong {
	font-weight: bold;
	background-color: #ff0;
}
.search-options {
	margin-left: 20px;
}
.search-options label {
	margin-right: 10px;
}
/* Add custom CSS here for HTMX transition */
.fade-me-out.htmx-swapping {
	opacity: 0;
	transition: opacity 500ms ease-out;
}
.fade-me-in.htmx-added {
	opacity: 0;
}
.fade-me-in {
	opacity: 1;
	transition: opacity 500ms ease-in;
}

/* GENERAL LIST IN TABLE FORMAT */
.list table {
	width: 100%;
	border-spacing: 0 5px;
}
.list th {
	font-weight: bold;
	padding: 10px;
	background-color: #f7f7f7;
}
.list td {
	padding: 5px;
	text-align: center;
}
/* Align the first column to the left */
.list td:first-child {
	text-align: center;
	/* text-align: left; */
}
/* Alternating row colors */
.list tr:nth-child(even) {
	background-color: #f2f2f2;
}
.list .sub-text {
	font-weight: lighter;
	font-size: 0.875rem;
	color: #777;
}
.list .action-btn {
	margin: 5px;
	background-color: #006f99;
	border: 1px solid #fff;
	border-radius: 5px;
	padding: 5px 10px;
	color: #fff;
	cursor: pointer;
	font-size: 0.75rem;
	text-decoration: none;
}
.list .action-btn-small {
	margin: 3px;
	background-color: #006f99;
	border: 1px solid #fff;
	border-radius: 5px;
	padding: 2px 5px;
	color: #fff;
	cursor: pointer;
	font-size: 0.65rem;
	text-decoration: none;
}
.list .action-btn a,
.list .action-btn-small a {
	text-decoration: none;
	color: #fff;
}
.list .action-btn:hover,
.list .action-btn-small:hover {
	background-color: #0f5298;
	color: #fff;
}

#referrals-list {
	/* overflow: auto; */
	overflow-x: auto;
}

/* HTMX MODAL */
.modal {
	display: none;
	position: fixed;
	z-index: 20000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.4);
	overscroll-behavior: none;
}
.modal-content {
	background-color: #fefefe;
	margin: 10vh auto;
	padding: 20px;
	border: 1px solid #888;
	border-radius: 16px;
	width: 60%;
	position: relative;
}
.close {
	color: rgb(30, 48, 80);
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	position: absolute;
	top: 1.2rem;
	right: 1.3rem;
}

/* Specific styling for the modal content */
/* profile-edit modal */
#profile-edit-modal.modal-content {
	max-width: 800px;
}

#data-modal-content .form-instructions {
	margin-left: 0;
}
#data-modal-content .textarea-box {
	margin: 0;
	padding: 0;
}
#data-modal-content .form-section {
	width: 100%;
	padding: 0.825rem;
	/* border: 1px solid #ccc; */
	border-radius: 8px;
	box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px;
	margin-bottom: 1rem;
}
#referral-detail-modal.modal-content {
	max-width: 800px;
}
#partner-card-modal.modal-content {
	max-width: 800px;
}

/* HTMX CUSTOM INDICATOR */
.custom-htmx-indicator {
	display: none;
	transition: display 500ms ease-in;
}
.htmx-request .custom-htmx-indicator {
	display: inline;
}
.htmx-request.custom-htmx-indicator {
	display: inline;
}

/* Partner Login Section */
.partner-access-section-wrapper {
	display: flex;
	flex-direction: column;
	justify-content: start;
	align-items: center;
	width: 100%;
	min-height: 100vh;
	background-color: #f1f1f1;
}
.partner-access-request-form-section {
	max-width: 600px;
	padding-inline: 20px;
	background-color: #f9f9f9;
	border-radius: 8px;
	margin-inline: 1rem;
	margin-top: 8rem;
}

#partner-access-form-return-msg {
	max-width: 600px;
	margin: 1rem;
	width: 100%;
}
#referral-status-update-form-return-msg {
	margin: 1rem;
	padding: 1rem;
	border-radius: 10px;
}

#show-referrals-dropdown {
	padding: 5px;
	/* border: 1px solid #ccc;
	border-radius: 8px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.1); */
}

.referral-summary-wrapper {
	display: grid;
	padding: 6px;
	/* grid-template-columns: 1fr 2fr; */
	background-color: #f9f9f9;
	border-radius: 10px;
	gap: 1.5rem;
}

.grid-container-for-2columns {
	display: grid;
	grid-template-columns: max-content 1fr;
	grid-gap: 6px;
	/* border: 1px solid #000; */
	/* border-radius: 6px; */
	padding: 6px;
	/* margin: 0 1rem 1rem 1rem; */
	max-width: 925px;
	align-items: center;
}
.grid-container-for-2columns.no-border {
	border: none;
}
.grid-rows {
	display: contents;

	& > label:first-child {
		font-weight: bold;
		/* text-align: right; */
		font-size: 1.1em;
	}
}
.grid-rows > label {
	font-weight: bold;
	/* text-align: right; */
	font-size: 1.1em;
}
.grid-rows > input {
	padding: 6px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.section-title {
	font-size: 20px;
	font-weight: bold;
	margin-bottom: 10px;
}

.section-description {
	margin-bottom: 20px;
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	font-weight: bold;
	margin-bottom: 5px;
}

.form-group input[type='email'] {
	width: 95%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.btn-get-link {
	padding: 10px 20px;
	background-color: #007bff;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

.btn-get-link:hover {
	background-color: #0056b3;
}

/* Profile Settings Page */
.settings-container {
	max-width: 600px;
	margin: 0;
	padding: 20px;
}

.setting-item {
	margin-bottom: 30px;
}

.setting-item label {
	display: block;
	font-weight: bold;
	margin-bottom: 10px;
}

.setting-item select {
	width: 100%;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.toggle-switch {
	position: relative;
	display: inline-block;
	width: 60px;
	height: 43px;
}

.toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.toggle-switch label {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: 0.4s;
	border-radius: 34px;
}

.toggle-switch label:before {
	position: absolute;
	content: '';
	height: 26px;
	width: 26px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: 0.4s;
	border-radius: 50%;
}

.toggle-switch input:checked + label {
	background-color: #2196f3;
}

.toggle-switch input:checked + label:before {
	transform: translateX(26px);
}

.info-message {
	background-color: #f1f1f1;
	padding: 10px;
	border-radius: 4px;
}

/* Base styling for all alerts */
.alert {
	display: flex;
	justify-content: space-between; /* Aligns children (message and button) horizontally */
	align-items: center; /* Centers children vertically */
	padding: 10px;
	margin-bottom: 20px;
	border: 1px solid transparent;
	border-radius: 4px;
	font-size: 14px;
	/* max-width: 925px; */
}
/* Style for success alerts */
.alert-success {
	color: #155724;
	background-color: #d4edda;
	border-color: #c3e6cb;
}
/* Style for danger or error alerts */
.alert-danger {
	color: #721c24;
	background-color: #f8d7da;
	border-color: #f5c6cb;
}
/* Optional: Add some additional spacing and style if you have a close button inside the alert */
.alert .alert-close {
	font-size: 18px;
	color: inherit;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0; /* Removes default padding */
	margin: 0; /* Removes default margin */
}

/* Save and Cancel Buttons */
.save-cancel-btns {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 20px;
}
.save-btn {
	background-color: #007bff;
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
}
.save-btn:hover {
	background-color: #0056b3;
}

.cancel-btn {
	background-color: #6c757d;
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
}
.cancel-btn:hover {
	background-color: #5a6268;
}

/* Service Tags */
.service-tags {
	padding: 10px;
	display: flex;
	flex-wrap: wrap;
	max-width: 750px;
}
.service-tag {
	background-color: #f1f1f1;
	border-radius: 4px;
	padding: 2.5px 5px;
	margin-right: 10px;
	margin-bottom: 10px;
}

/* Tab Styling */
.tab-card {
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	overflow: hidden;
	margin-block-start: 1em;
	border: 1px solid #ccc;
}
.tabs {
	list-style-type: none;
	padding: 0;
	display: flex;
	margin: 0;
	border-bottom: 1px solid #ddd;
}
.tab {
	padding: 16px 32px;
	cursor: pointer;
	text-align: center;
	background-color: transparent;
	transition: background-color 0.3s ease;
	font-size: 16px;
	color: #555;
	border: none;
	outline: none;
	position: relative;
}
.tab:hover {
	background-color: #f5f5f5;
}
.tab.active {
	color: #000;
	background-color: #fff;
	font-weight: bold;
}
.tab.active::after {
	content: '';
	display: block;
	position: absolute;
	bottom: -1px;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	height: 2px;
	background-color: #6200ee; /* Indigo as per Material Design */
}
.tab-content {
	padding: 20px;
}

.service-blurb {
	margin-bottom: 1rem;
	max-width: 750px;
}
@media (max-width: 1600px) {
	.modal-content {
		width: 70%;
	}
}
@media (max-with: 1300px) {
	.modal-content {
		width: 85%;
	}
	/* not sure why this is not working */
	.referral-summary-wrapper {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 1023px) {
	.modal-content {
		width: 90%;
	}
}
@media (max-width: 768px) {
	.alert {
		flex-direction: column;

		& a {
			word-break: break-all;
		}
		& p {
			font-size: 0.825rem;
		}
	}
	.modal-content {
		padding: 10px;
	}
	.service-tag {
		margin-right: 4px;
	}
	.font-size {
		font-size: 0.8rem;
	}
	.page-intro-content {
		flex-direction: column;
		padding-inline: 0;
	}
	#page-intro {
		padding-inline: 0;
	}
	.partner-btn {
		font-size: 0.8rem;
	}
}
@media (max-width: 600px) {
	.grid-container-for-2columns {
		grid-template-columns: 1fr;
	}
	/* .modal-content {
		width: 95%;
	}
	.service-tag {
		margin-right: 2px;
	}
	.font-size {
		font-size: 0.7rem;
	} */
}

.a-to-b-container {
	display: flex;
	justify-content: space-around;
	align-items: center;
	flex-wrap: wrap;
	padding-inline: 20px;
	margin-block: 8px;
}

.person {
	flex: 1;
	text-align: center;
	padding-inline: 20px;
	padding-block: 4px;
	width: 200px;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px;
}
.arrow {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 40px;
}

@media (max-width: 768px) {
	.a-to-b-container {
		flex-direction: column;
		gap: 1.5rem;
	}
	.arrow {
		transform: rotate(90deg);
		margin: 0;
	}
}

/* Referral Status History Styling */
.status-history {
	font-family: Arial, sans-serif;
	margin-block: 1rem;
}

.status-history h2 {
	font-size: 1.5em;
	margin-bottom: 10px;
}

.status-history ul {
	list-style-type: none;
	padding: 0;
	margin-left: 0;
}

.status-history .status-item {
	border: 1px solid #ccc;
	border-radius: 5px;
	padding: 10px;
	margin-bottom: 10px;
	background-color: #f9f9f9;
}

.status-history .status-header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 5px;
}

.status-history .status-value {
	font-weight: bold;
	color: #333;
}

.status-history .status-date {
	font-size: 0.9em;
	color: #666;
}

.status-history .status-text {
	font-size: 1em;
	color: #333;
}
