/* Mirror Blur Overlay */
.pop-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 99999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.4s ease;
}

.pop-overlay.active {
	opacity: 1;
	visibility: visible;
}

.pop-overlay.people-and-tools { 
	background: #5a264fcc;
}

.pop-overlay.food-and-environment { 
	background: #7EB228cc;
}

.pop-overlay.partner-and-support { 
	background: #142E5Dcc;
}

.pop-overlay.supplemental { 
	background: #8492A0cc;
}

/* Mirror effect - creates a reflection of the blurred background */
.pop-overlay::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0.1) 0%,
		rgba(255, 255, 255, 0.05) 50%,
		rgba(255, 255, 255, 0) 100%
	);
	pointer-events: none;
	z-index: 1;
}

/* Popup Form */
.popup-form {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 20px;
	width: 1024px;
	max-width: 95%;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
	position: relative;
	z-index: 2;
	transform: translateY(30px);
	opacity: 0;
	transition: all 0.5s ease 0.1s;
	max-height: 95%;
  	overflow-y: auto;
	padding: 20px;
}

.pop-overlay.active .popup-form {
	transform: translateY(0);
	opacity: 1;
}

.popup-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
}

.popup-header h2 {
	color: #333;
	margin: 20px;
	font-family: "Montserrat", Sans-serif;
	font-size: 30px;
	font-weight: 600;
	line-height: 40px;
}

.close-btn {
	background: #ffffff;
	border: none;
	font-size: 1.8rem;
	color: #777;
	cursor: pointer;
	transition: color 0.3s;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	margin-right: 10px;
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 9;
}

.close-btn * {
	cursor: pointer;
}

.close-btn:hover {
	color: #ff7e5f;
	background-color: rgba(0, 0, 0, 0.05);
}

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

.form-group label {
	display: block;
	margin-bottom: 8px;
	color: #555;
	font-weight: 600;
	font-size: 0.95rem;
}

.form-control {
	width: 100%;
	padding: 15px;
	border: 2px solid #eee;
	border-radius: 10px;
	font-size: 1rem;
	transition: all 0.3s;
	background-color: white;
}

.form-control:focus {
	border-color: #6a11cb;
	outline: none;
	box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

.submit-btn {
	background: linear-gradient(to right, #6a11cb, #2575fc);
	color: white;
	border: none;
	width: 100%;
	padding: 16px;
	font-size: 1.1rem;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s;
	font-weight: 600;
	margin-top: 10px;
}

.submit-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(106, 17, 203, 0.2);
}

.form-footer {
	margin-top: 20px;
	color: #777;
	font-size: 0.9rem;
}

.form-footer a {
	color: #6a11cb;
	text-decoration: none;
	font-weight: 600;
}

.form-footer a:hover {
	text-decoration: underline;
}

/* Mirror effect decorations */
.mirror-reflection {
	position: absolute;
	width: 100%;
	height: 100px;
	bottom: 0;
	left: 0;
	background: linear-gradient(to top, rgba(255, 255, 255, 0.2), transparent);
	pointer-events: none;
	z-index: 1;
}

/* Background elements to enhance mirror effect */
.bg-elements {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: -1;
}

.bg-circle {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
}

.circle-1 {
	width: 300px;
	height: 300px;
	top: -100px;
	left: -100px;
}

.circle-2 {
	width: 200px;
	height: 200px;
	bottom: -50px;
	right: -50px;
}

.sm-checkbox {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
}

.sm-checkbox input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.sm-checkbox .checkmark {
	width: 23px;
	height: 23px;
	border: 2px solid #333;
	border-radius: 2px; /* optional */
	position: relative;
	box-sizing: border-box;
}

/* check icon */
.sm-checkbox input:checked + .checkmark::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 8px;
	height: 15px;
	border: solid #333;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

#sm-popup-overlay form,
#sm-popup-overlay .sm-popup-form {
	display: none;
}

#sm-popup-overlay .popup-form .sm-alert {
	display:none;
}

/* START - Specific form style */
.people-and-tools-volunteer .sm-checkbox .checkmark, 
.people-and-tools-volunteer .sm-checkbox input:checked + .checkmark::after,
.people-and-tools-team-training .sm-checkbox .checkmark, 
.people-and-tools-team-training .sm-checkbox input:checked + .checkmark::after,
.people-and-tools-technology-and-data .sm-checkbox .checkmark, 
.people-and-tools-technology-and-data .sm-checkbox input:checked + .checkmark::after {
  	border-color: #5A264F !important;
}

.food-and-environment .sm-checkbox .checkmark, 
.food-and-environment .sm-checkbox input:checked + .checkmark::after {
  	border-color: #7EB228 !important;
}

.partners-and-support .sm-checkbox .checkmark, 
.partners-and-support .sm-checkbox input:checked + .checkmark::after {
  	border-color: #142E5D !important;
}

.people-and-tools .popup-header h2 {
  	color: #5A264F !important;
}

.food-and-environment .popup-header h2 {
  	color: #7EB228 !important;
}

.partners-and-support .popup-header h2 {
  	color: #142E5D !important;
}

#sm-popup-overlay.people-and-tools-volunteer .people-and-tools-volunteer,
#sm-popup-overlay.people-and-tools-team-training .people-and-tools-team-training,
#sm-popup-overlay.people-and-tools-technology-and-data .people-and-tools-technology-and-data,

#sm-popup-overlay.food-and-environment-pantry-environment .food-and-environment-pantry-environment,
#sm-popup-overlay.food-and-environment-nourishing-food .food-and-environment-nourishing-food,
#sm-popup-overlay.food-and-environment-educate .food-and-environment-educate,

#sm-popup-overlay.partners-and-support-connect .partners-and-support-connect,
#sm-popup-overlay.partners-and-support-funding .partners-and-support-funding,
#sm-popup-overlay.partners-and-support-advocacy .partners-and-support-advocacy,

#sm-popup-overlay.supplemental-learn .supplemental-learn,
#sm-popup-overlay.supplemental-plan .supplemental-plan {
	display: block;
}

.self-evaluation-checklist .field-row:first-child .field-col {
	background: #34404B;
	color: #fff;
}

.people-and-tools .self-evaluation-checklist .field-row:first-child .field-col {
	background: #5A264F;
}

.food-and-environment .self-evaluation-checklist .field-row:first-child .field-col {
	background: #7EB228;
}

.partners-and-support .self-evaluation-checklist .field-row:first-child .field-col {
	background: #142E5D;
}
/* END - Specific form style */

.self-evaluation-checklist .field-row .field-col:nth-child(3),
.self-evaluation-checklist .field-row .field-col:nth-child(4) {
  	justify-content: center;
	max-width: 100px;
}

.self-evaluation-checklist .field-row .field-col:first-child {
  	justify-content: center;
	max-width: 50px;
}

body.survey-required main {
    filter: blur(20px);
    pointer-events: none;
}

@media (max-width: 768px) {
	.popup-form {
		width: 100%;
		max-width: 100%;
		max-height: 100%;
	}
	
	.smf-table .field-col:nth-child(1),
	.smf-table .field-row:nth-child(2) .field-col:nth-child(3),
	.smf-table .field-row:nth-child(2) .field-col:nth-child(4) {
		display:none;
	}

	.smf-table .field-col:nth-child(2) {
		flex-direction: column;
	}
	.self-evaluation-checklist .field-row .field-col:nth-child(3),
	.self-evaluation-checklist .field-row .field-col:nth-child(4) {
		max-width: 100%;
	}

	.self-evaluation-checklist .field-row .field-col:first-child {
		max-width: 100%;
	}
	
	.sm-forms .form-group label {
		text-align: center;
		line-height: 24px;
	}
}