:root {
    /* colors */
    --smf-color-primary: #7EB228;
	--smf-color-secondary: #004AAE;
	--smf-color-text: #797E88;
    --smf-color-heading: #1F1F1F;
    --smf-color-white: #FFFFFF;
    --smf-color-shadow: #797E8833;
    --smf-color-border: #E0E0E0;
    --smf-color-blue: #142E5D;
    /* ... and so on */

    /* sizes */
    --smf-h1: 42px;
	--smf-h2: 36px;
	--smf-h3: 24px;
    --smf-h4: 18px;
    --smf-h5: 16px;
    --smf-h6: 14px;
}

.form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    padding: 40px;
    margin: 20px;
}

.sm-forms {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 0;
    flex-direction: column;
}

.sm-forms .form-group {
    margin-bottom: 0px;
}

.sm-forms .form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: var(--smf-color-text);
	font-size: 16px;
	margin-top: 8px;
}

.field-row:not(:first-child) .field-col:nth-child(3) {
  background: #FAFFF3 !important;
}

.sm-forms .form-group input, 
.sm-forms .form-group textarea, 
.sm-forms .form-group select, 
.sm-forms .form-group button {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    width: 100%;
    padding: 14px;
    border: 1px solid var(--smf-color-border);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.sm-forms .form-group button {
    border-radius: 30px;
}

.sm-forms .form-group input:focus, 
.sm-forms .form-group textarea:focus, 
.sm-forms .form-group select:focus {
    outline: none;
    border-color: var(--smf-color-secondary);
    box-shadow: 0 0 0 3px var(--smf-color-shadow);
}

.sm-forms .form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.sm-forms .form-group button {
    background: var(--smf-color-secondary);
    color: var(--smf-color-white);
    border: none;
    padding: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
	max-width: 400px;
	margin: 30px auto;
	display: block;
	width: 90%;
}

.sm-forms .form-group button:hover {
    background: var(--smf-color-blue);
}

.sm-forms fieldset {
    padding: 20px;
    margin: 10px 0;
}

.sm-forms legend {
    padding: 0 15px;
    font-weight: 600;
    font-size: 24px;
}

.sm-forms .sm-checkbox .checkmark {
    margin-right: 15px;
}

/* Width classes */
.sm-forms .form-group, 
.sm-forms .form-group.w-100 {
    flex: 0 0 100%;
}

.sm-forms .form-group.w-50 {
    flex: 0 0 calc(50% - 10px);
}

.sm-forms .form-group.w-33 {
    flex: 0 0 calc(33.333% - 14px);
}

.sm-forms .form-group.w-25 {
    flex: 0 0 calc(25% - 15px);
}

.sm-forms .form-group.w-75 {
    flex: 0 0 calc(75% - 15px);
}

/* Custom Select Styling */
.sm-forms .form-group .select-wrapper {
    position: relative;
}

.sm-forms .form-group .select-wrapper::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--smf-color-text);
    pointer-events: none;
}

.sm-forms .form-group select {
    appearance: none;
    background-color: white;
}

/* Checkbox and Radio Styling */
.sm-forms .form-group .checkbox-group, 
.sm-forms .form-group .radio-group {
    margin-bottom: 15px;
}

.sm-forms .form-group .checkbox-label, 
.sm-forms .form-group .radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
}
/* 
.sm-forms .form-group input[type="checkbox"], 
.sm-forms .form-group input[type="radio"] {
    display: none;
} */
.sm-forms .form-group input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 18px;
	height: 18px;
	border: 1px solid #555;
	border-radius: 3px; /* make it square like checkbox */
	display: inline-block;
	position: relative;
	cursor: pointer;
	padding: 10px;
}

/* Add the check mark when selected */
.sm-forms .form-group input[type="radio"]:checked::after {	
	content: "✔";
	font-size: 20px;
	color: #007bff;
	position: absolute;
	top: -5px;
  	left: 2px;
}

.sm-forms .form-group input[type="checkbox"] + span, 
.sm-forms .form-group input[type="radio"] + span {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid var(--smf-color-border);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.sm-forms .form-group input[type="radio"] + span {
    border-radius: 50%;
}

.sm-forms .form-group input[type="checkbox"]:checked + span, 
.sm-forms .form-group input[type="radio"]:checked + span {
    border-color: var(--smf-color-primary);
    background-color: var(--smf-color-blue);
}

.sm-forms .form-group input[type="checkbox"]:checked + span::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

.sm-forms .form-group input[type="radio"]:checked + span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
	border: 1px solid var(--smf-color-border);
}

.sm-alert {
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sm-alert:hover {
    transform: translateY(-2px);
}

.sm-alert-icon {
    margin-right: 15px;
    font-size: 24px;
    flex-shrink: 0;
}

.sm-alert-content {
    flex-grow: 1;
}

.sm-alert-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 18px;
}

.sm-alert-message {
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.8);
}

.sm-alert-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
    margin-left: 10px;
}

.sm-alert-close:hover {
    opacity: 1;
}

/* Info Alert (Blue) */
.sm-alert-info {
    background-color: #e3f2fd;
    color: #1565c0;
    border-left: 5px solid #2196f3;
}

/* Success Alert (Green) */
.sm-alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 5px solid #4caf50;
}

/* Error Alert (Red) */
.sm-alert-error {
    background-color: #ffebee;
    color: #c62828;
    border-left: 5px solid #f44336;
}

/* Warning Alert (Yellow) */
.sm-alert-warning {
    background-color: #fff8e1;
    color: #ff8f00;
    border-left: 5px solid #ffc107;
}

.hidden {
    display: none;
}

.fade-out {
    opacity: 0;
    transform: translateX(100px);
}

@media (max-width: 600px) {
    .container {
        padding: 20px 15px;
    }
    
    .sm-alert {
        padding: 14px 16px;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sm-forms .form-group.w-50,
    .sm-forms .form-group.w-33,
    .sm-forms .form-group.w-25,
    .sm-forms .form-group.w-75 {
        flex: 0 0 100%;
    }
    
    .form-container {
        padding: 25px;
    }
}

/* Focus and hover states */
.sm-forms .form-group input:hover, 
.sm-forms .form-group textarea:hover, 
.sm-forms .form-group select:hover {
    border-color: var(--smf-color-text);
}

/* Animation for form elements */
.sm-forms .form-group {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
    margin-bottom: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stagger the animation for form groups */
.sm-forms .form-group:nth-child(1) { animation-delay: 0.1s; }
.sm-forms .form-group:nth-child(2) { animation-delay: 0.2s; }
.sm-forms .form-group:nth-child(3) { animation-delay: 0.3s; }
.sm-forms .form-group:nth-child(4) { animation-delay: 0.4s; }
.sm-forms .form-group:nth-child(5) { animation-delay: 0.5s; }
.sm-forms .form-group:nth-child(6) { animation-delay: 0.6s; }
.sm-forms .form-group:nth-child(7) { animation-delay: 0.7s; }
.sm-forms .form-group:nth-child(8) { animation-delay: 0.8s; }
.sm-forms .form-group:nth-child(9) { animation-delay: 0.9s; }
.sm-forms .form-group:nth-child(10) { animation-delay: 1.0s; }
.sm-forms .form-group:nth-child(11) { animation-delay: 1.1s; }
.sm-forms .form-group:nth-child(12) { animation-delay: 1.2s; }
.sm-forms .form-group:nth-child(13) { animation-delay: 1.3s; }
.sm-forms .form-group:nth-child(14) { animation-delay: 1.4s; }
.sm-forms .form-group:nth-child(15) { animation-delay: 1.5s; }
.sm-forms .form-group:nth-child(16) { animation-delay: 1.6s; }
.sm-forms .form-group:nth-child(17) { animation-delay: 1.7s; }
.sm-forms .form-group:nth-child(18) { animation-delay: 1.8s; }
.sm-forms .form-group:nth-child(19) { animation-delay: 1.9s; }
.sm-forms .form-group:nth-child(20) { animation-delay: 2.0s; }

/* Table wrapper */
.smf-table {
	width: 100%;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 10px;
}

/* Table row styles */
.smf-table .field-row {
	display: flex;
	flex-wrap: wrap;
	border-bottom: 1px solid #ddd;
}

.smf-table .field-row:last-child {
	border-bottom: none;
}

/* Table column styles */
.smf-table .field-col {
	flex: 1;
	padding: 12px 15px;
	box-sizing: border-box;
	border-right: 1px solid #ddd;
	display: flex;
	align-items: center;
}

.smf-table .field-col:last-child {
	border-right: none;
}

/* Header row styling */
.smf-table .field-row:first-child .field-col {
	background-color: #f5f5f5;
	font-weight: bold;
	justify-content: center;
	text-align: center;
}

/* Question row styling */
.smf-table .field-row:nth-child(2) .field-col {
	background-color: #f9f9f9;
	font-weight: 500;
}

/* Checkbox alignment */
.smf-table .field-col input[type="checkbox"] {
	margin: 0 auto;
	transform: scale(1.2);
}

/* Custom design for class .smf-table */
.smf-table.pantry-self-evaluation {
	border-radius: 0;
	border: 0;
}

.smf-table.pantry-self-evaluation .field-row {
	border-bottom: 1px solid #5A264F;
}
.smf-table.pantry-self-evaluation .field-row:first-child {
	border: 0;
	background: #5A264F;
	border-radius: 5px;
}
.smf-table.pantry-self-evaluation .field-row .field-col {
	border: 0;
	background: none;
}
.smf-table.pantry-self-evaluation .field-row .field-col h3 {
	font-family: "Montserrat";
	color: #5A264F;
	font-size: 24px;
	font-weight: 600;
	line-height: 26px;
}
.smf-table.pantry-self-evaluation .field-row .field-col span {
	font-family: "Montserrat";
	color: #ffffff;
	font-size: 18px;
	font-weight: 600;
	line-height: 20px;
}
.smf-table.pantry-self-evaluation .field-row .field-col span.yesno {
	font-family: "Montserrat";
	color: #5A264F;
	font-size: 24px;
	font-weight: 600;
	line-height: 26px;
}
.smf-table.pantry-self-evaluation .field-row .field-col:nth-child(1) {
	flex: 0 0 50px;
	border-right: 1px solid #5A264F;
}
.smf-table.pantry-self-evaluation .field-row .field-col:nth-child(3),
.smf-table.pantry-self-evaluation .field-row .field-col:nth-child(4) {
	flex: 0 0 100px;
	display: flex;
	align-items: center;   /* vertical center */
	justify-content: center; /* horizontal center */
}

/* Responsive styles */
@media (max-width: 768px) {
	.smf-table .field-row {
		flex-direction: column;
		border-bottom: 2px solid #ddd;
	}

	.smf-table .field-col {
		border-right: none;
		border-bottom: 1px solid #eee;
		padding: 10px 15px;
		justify-content: space-between;
	}

	.smf-table .field-col:last-child {
		border-bottom: none;
	}

	/* Add labels for mobile view */
	.smf-table .field-row:not(:first-child) .field-col:nth-child(1)::before {
		content: "No.";
		font-weight: bold;
		margin-right: 10px;
	}

	.smf-table .field-row:not(:first-child) .field-col:nth-child(2)::before {
		content: "Question:";
		font-weight: bold;
		margin-right: 10px;
	}

	.smf-table .field-row:not(:first-child) .field-col:nth-child(3)::before {
		content: "Yes:";
		font-weight: bold;
		margin-right: 10px;
	}

	.smf-table .field-row:not(:first-child) .field-col:nth-child(4)::before {
		content: "No:";
		font-weight: bold;
		margin-right: 10px;
	}

	/* Hide header row on mobile */
	.smf-table .field-row:first-child {
		display: none;
	}

	/* Adjust second row for mobile */
	.smf-table .field-row:nth-child(2) {
		background-color: #f5f5f5;
		font-weight: bold;
		text-align: center;
		padding: 15px;
	}

	.smf-table .field-row:nth-child(2) .field-col {
		border-bottom: none;
		justify-content: center;
		background-color: transparent;
	}

	.smf-table .field-row:nth-child(2) .field-col::before {
		display: none;
	}
}

/* Print styles */
@media print {
	.smf-table {
		border: 1px solid #000;
	}

	.field-row {
		break-inside: avoid;
	}
}