/* Global Box-Sizing */
* {
	box-sizing: border-box;
}

/* Base styles */
body {
	font-family: 'Noto Sans Thai', sans-serif; /* Changed font to Noto Sans Thai */
	margin: 0;
	padding: 0;
	background-color: #f0f2f5;
	color: #333;
}

a{color:#007bff;}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Header Section */
.header {
	background-color: #007bff; /* Blue color from image */
	color: white;
	padding: 10px 15px; /* Adjusted padding for horizontal spacing */
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Adjust header-left/right padding to avoid double padding */
.header-left {
	display: flex;
	align-items: center;
	padding-left: 0; /* Removed padding as it's now on .header */
}

.header-left .logo {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: #fff; /* Placeholder for logo */
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 24px;
	color: #007bff;
	margin-right: 15px;
	overflow: hidden; /* Ensure image fits */
}

.header-left .logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.header-left .title h1 {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
}

.header-left .title p {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
}

.header-right {
	display: flex;
	align-items: center;
	padding-right: 0; /* Removed padding as it's now on .header */
}

.header-right .social-icons a {
	color: white;
	font-size: 20px;
	margin-left: 15px;
	text-decoration: none;
}

/* Navigation Bar */
.navbar {
	background-color: #ffffff;
	padding: 10px 15px; /* Adjusted padding for better spacing */
	border-radius: 15px;
	margin-top: 20px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	position: sticky; /* Sticky position for all screen sizes */
	top: 0;
	z-index: 1000;
	display: flex; /* Added flex for alignment */
	justify-content: center; /* Center items by default (for nav links) */
	align-items: center;
	flex-wrap: wrap; /* Allow wrapping of content if needed */
}

.navbar ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex; /* Flex for horizontal layout (Desktop) */
	justify-content: center; /* Center links */
	flex-wrap: wrap;
	flex-grow: 1; /* Allow ul to take available space */
}

.navbar ul li {
	margin: 0 15px;
}

.navbar ul li a {
	text-decoration: none;
	color: #007bff;
	font-weight: 700;
	font-size: X-Large;
	padding: 5px 10px;
	border-radius: 8px;
	transition: background-color 0.3s ease;
}

.navbar ul li a:hover {
	background-color: #e9f5ff;
}

/* Hamburger Toggler - Hidden by default on desktop, shown on mobile */
.navbar-toggler {
	display: none; /* Hidden by default on desktop */
	background: none;
	border: none;
	font-size: 24px;
	color: #007bff;
	cursor: pointer;
	padding: 5px;
}

/* Main Content - Hero Section */
.hero {
	text-align: center;
	padding: 40px 20px;
	background-color: #e9f5ff;
	border-radius: 15px;
	margin-top: 20px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero h2 {
	color: #007bff;
	font-size: 32px;
	margin-bottom: 10px;
}

.hero p {
	font-size: 18px;
	color: #555;
}

/* Search Complaint Form Section */
.search-complaint-section {
	background-color: #ffffff;
	border-radius: 15px;
	padding: 30px;
	margin-top: 20px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	text-align: center;
}

.search-complaint-section h3 {
	color: #007bff;
	font-size: 24px;
	margin-bottom: 20px;
}

.search-complaint-form {
	display: flex;
	flex-direction: column; /* Stack input and button vertically on small screens */
	align-items: center;
	gap: 15px;
}

.search-input-group {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 15px;
	width: 100%;
	max-width: 600px; /* Limit overall width */
}

.search-input-group input[type="text"] {
	flex-grow: 1;
	min-width: 200px; /* Ensure input is not too small */
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 16px;
}

.search-input-group button {
	background-color: #007bff;
	color: white;
	padding: 10px 20px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.search-input-group button:hover {
	background-color: #0056b3;
}

.warning-message {
	color: #dc3545; /* Red color for warning */
	font-size: 14px;
	margin-top: 10px;
	display: none; /* Hidden by default. User will control visibility via JS */
}


/* Complaint Detail Section */
.complaint-detail-section {
	background-color: #ffffff;
	border-radius: 15px;
	padding: 30px;
	margin-top: 20px; /* Added margin to separate from search form */
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	/* By default, this section will be visible. User will hide/show via JS */
}

.detail-left {
	flex: 1; /* 50% width */
	min-width: 300px;
}

.detail-right {
	flex: 1; /* 50% width */
	min-width: 280px;
	background-color: #f9f9f9;
	border-radius: 10px;
	padding: 20px;
	box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}

.detail-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
	border-bottom: 1px solid #eee;
	padding-bottom: 15px;
}

.detail-header h3 {
	margin: 0;
	color: #007bff;
	font-size: 24px;
}

.detail-header .print-icon {
	font-size: 24px;
	color: #555;
	cursor: pointer;
}

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

.detail-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 700;
	color: #333;
}

.detail-group p {
	margin: 0;
	color: #555;
	line-height: 1.6;
}

.detail-group .map-placeholder {
	width: 100%;
	height: 300px;
	background-color: #e0e0e0;
	border-radius: 8px;
	display: flex;
	justify-content: center;
	align-items: center;
	color: #666;
	font-size: 16px;
	margin-top: 10px;
	border: 1px solid #ccc;
}

.detail-group .image-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

.detail-group .image-gallery img {
	width: 100px;
	height: 100px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #ddd;
}

/* Status Timeline */
.status-timeline {
	/* Added padding here for responsive, instead of on .detail-right */
}
.status-timeline h4 {
	color: #007bff;
	font-size: 20px;
	margin-bottom: 15px;
	text-align: center;
}

.status-item {
	display: flex;
	align-items: flex-start;
	margin-bottom: 20px;
	position: relative;
}

.status-item .status-icon {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background-color: #ff0000;
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	font-weight: 700;
	margin-right: 15px;
	flex-shrink: 0;
	z-index: 1;
}

.status-item.completed .status-icon {
	background-color: #28a745; /* Green for completed */
}

.status-item.regist .status-icon {
	background-color: #ff6307; /* Green for completed */
}

.status-item.in-progress .status-icon {
	background-color: #ffc107; /* Yellow for in progress */
}

.status-item .status-content {
	flex-grow: 1;
}

.status-item .status-title {
	font-weight: 700;
	color: #333;
	margin-bottom: 5px;
}

.status-item .status-description {
	font-size: 14px;
	color: #666;
}

.status-item .attachments {
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Styles for images within attachments */
.status-item .attachments img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #ddd;
}

/* Styles for file links within attachments */
.status-item .attachments a {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	background-color: #e9f5ff;
	color: #007bff;
	border-radius: 8px;
	text-decoration: none;
	font-size: 14px;
	transition: background-color 0.3s ease;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.status-item .attachments a .file-icon {
	margin-right: 8px;
	font-size: 16px;
}

.status-item .attachments a .file-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.status-item .attachments a .file-name {
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 150px; /* Adjust as needed */
}

.status-item .attachments a .file-size {
	font-size: 12px;
	color: #555;
}


.status-timeline .line {
	position: absolute;
	left: 15px; /* Adjust to align with center of icon */
	top: 45px;
	bottom: 0;
	width: 2px;
	background-color: #eee;
	z-index: 0;
}

.status-timeline .status-item:last-child .line {
	display: none; /* Hide line for the last item */
}

/* Category Grid */
.category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	padding: 20px 0;
	margin-top: 20px;
}

.category-item {
	background-color: #ffffff;
	border-radius: 15px;
	padding: 20px;
	text-align: center;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.category-item:hover {
	transform: translateY(-5px);
}

.category-item .icon {
	width: 150px;
	height: 150px;
	margin: 0 auto 15px;
	background-color: #e9f5ff; /* Placeholder for icon background */
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 40px;
	color: #007bff;
	overflow: hidden; /* Ensure image fits */
}

.category-item .icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.category-item p {
	margin: 0;
	font-weight: 700;
	color: #007bff;
	font-size: x-large;
}

/* Complaint Form Section */
.complaint-form-section {
	background-color: #ffffff;
	border-radius: 15px;
	padding: 30px;
	margin-top: 20px; /* Added margin to separate from category grid */
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.complaint-form-section h3 {
	color: #007bff;
	font-size: 24px;
	text-align: center;
	margin-bottom: 25px;
}

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

.form-group textarea {
	height:300px;
}

.form-group .comment {
	height:150px !important;
}

.form-group button {
	background-color: #007bff;
	color: white;
	padding: 10px 20px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.form-group button:hover{background-color: #0056b3;}

.separate{
	width:100%;
	display:flex;
	flex-wrap: wrap;
}
.half-left {
	width:49%;
	padding-right:1%;
}
.half-right {
	width:49%;
	padding-left:1%;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 700;
	color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
	width: calc(100% - 20px); /* Adjust for padding */
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 16px;
}

.form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 20px;
}

.form-row .form-group {
	flex: 1;
	min-width: 280px; /* Ensure fields don't get too small */
	margin-bottom: 0; /* Reset margin as gap handles spacing */
}

.map-placeholder {
	width: 100%;
	height: 300px;
	background-color: #e0e0e0;
	border-radius: 8px;
	display: flex;
	justify-content: center;
	align-items: center;
	color: #666;
	font-size: 18px;
	margin-bottom: 20px;
	border: 1px solid #ccc;
}

.file-upload-group {
	border: 2px dashed #ccc;
	border-radius: 8px;
	padding: 20px;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.file-upload-group:hover {
	background-color: #f9f9f9;
}

.file-upload-group input[type="file"] {
	display: none; /* File input is hidden, triggered by label */
}

.file-upload-group label {
	display: block;
	cursor: pointer;
	color: #007bff;
	font-weight: 700;
	margin-bottom: 10px;
}

.file-upload-group p {
	margin: 0;
	color: #777;
	font-size: 14px;
}

.checkbox-group {
	display: flex;
	align-items: center;
	margin-top: 20px;
	margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
	margin-right: 10px;
	transform: scale(1.2); /* Make checkbox slightly larger */
}

.checkbox-group label {
	font-size: 15px;
	color: #555;
	cursor: pointer;
}

/* Style for the clickable "ข้อตกลง" text */
.terms-link {
	color: #007bff;
	text-decoration: underline;
	cursor: pointer;
}

.submit-button-container {
	text-align: center;
	margin-top: 30px;
}

.submit-button {
	background-color: #28a745; /* Green submit button */
	color: white;
	padding: 12px 30px;
	border: none;
	border-radius: 8px;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.2s ease;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.submit-button:hover {
	background-color: #218838;
	transform: translateY(-2px);
}

/* Footer Section */
.footer {
	background-color: #0056b3; /* Darker blue for footer */
	color: white;
	padding: 30px 15px; /* Adjusted padding for horizontal spacing */
	margin: 30px 0 0 0;
}

.footer-content {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
}

.footer-left, .footer-right {
	flex: 1;
	min-width: 300px;
	margin-bottom: 20px;
}

.footer-left h4, .footer-right h4 {
	font-size: 20px;
	margin-bottom: 10px;
}

.footer-left p, .footer-right p {
	margin: 5px 0;
	font-size: 14px;
}

.footer-right .contact-info {
	display: flex;
	flex-direction: column;
}

.footer-right .contact-info span {
	margin-bottom: 5px;
}

.footer-right .admin-login {
	margin-top: 20px;
}

.footer-right .admin-login a {
	display: inline-block;
	background-color: #007bff;
	color: white;
	padding: 10px 20px;
	border-radius: 8px;
	text-decoration: none;
	transition: background-color 0.3s ease;
}

.footer-right .admin-login a:hover {
	background-color: #0056b3;
}

/* Modal Styles */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6); /* Darker overlay */
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 2000; /* Ensure it's above everything */
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-content {
	background-color: #ffffff;
	padding: 30px;
	border-radius: 15px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); /* More prominent shadow */
	max-width: 700px; /* Increased max-width for better readability */
	width: 90%;
	max-height: 85vh; /* Allow more vertical space */
	overflow-y: auto; /* Enable scrolling for long content */
	position: relative;
	transform: translateY(20px); /* Initial slight offset for animation */
	transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
	transform: translateY(0); /* Slide up animation */
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #eee;
	padding-bottom: 15px;
	margin-bottom: 20px;
}

.modal-header h4 {
	margin: 0;
	color: #007bff;
	font-size: 22px;
}

.modal-close {
	background: none;
	border: none;
	font-size: 28px; /* Larger close button */
	color: #888;
	cursor: pointer;
	transition: color 0.2s ease;
}

.modal-close:hover {
	color: #333;
}

.modal-body {
	line-height: 1.7;
	color: #444;
	font-size: 15px;
}

.modal-body h5 {
	color: #007bff;
	margin-top: 20px;
	margin-bottom: 10px;
	font-size: 18px;
}

.modal-body ul {
	list-style: disc;
	margin-left: 20px;
	margin-bottom: 15px;
}

.modal-body ol {
	list-style: decimal;
	margin-left: 20px;
	margin-bottom: 15px;
}

.modal-body p:last-child {
	margin-bottom: 0;
}


/* Responsive Design */
@media (max-width: 768px) {
	.half-left, .half-right{
		width:100%;
		padding:0;
	}
	
	.header {
		flex-direction: column;
		text-align: center;
		padding: 15px; /* Consistent padding */
		margin: 0; /* Ensure full width */
		border-radius: 0; /* Sharp corners for full width */
	}

	.header-left {
		flex-direction: column;
		padding-left: 0;
		margin-bottom: 15px;
	}

	.header-left .logo {
		margin-right: 0;
		margin-bottom: 10px;
	}

	.header-right {
		padding-right: 0;
		justify-content: center;
	}

	/* Navbar on small screens (Hamburger Menu) */
	.navbar {
		flex-direction: column; /* Stack items vertically */
		align-items: flex-end; /* Align toggler to the right */
		padding: 10px 15px; /* Adjusted padding for better spacing */
	}

	.navbar-toggler {
		display: block; /* Show the toggler */
		width: 100%; /* Take full width to push menu below */
		text-align: right; /* Align icon to the right */
	}

	.navbar ul {
		display: none; /* Hide navigation links by default on mobile */
		flex-direction: column; /* Stack links vertically */
		width: 100%; /* Take full width */
		margin-top: 0; /* Reset margin as position absolute is used */
		background-color: #f8f8f8; /* Slightly different background for menu */
		border-radius: 10px;
		box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
		padding: 10px 0; /* Add padding to menu items */

		/* Absolute positioning for overlay effect */
		position: absolute;
		top: 100%; /* Position below the toggler */
		right: 0;
		width: 100%; /* Take full width of its parent (.navbar) */
		max-height: 80vh; /* Limit height for scrollability if many items */
		overflow-y: auto; /* Enable scrolling if content overflows */
		z-index: 1001; /* Ensure it's above other content */
	}

	.navbar ul.active {
		display: flex; /* Show navigation links when active */
	}

	.navbar ul li {
		margin: 5px 0; /* Adjust vertical margin for stacked links */
		text-align: center; /* Center text */
	}

	.navbar ul li a {
		display: block; /* Make link block-level for full click area */
		padding: 10px 15px; /* Adjust padding for better click area */
	}


	.hero h2 {
		font-size: 28px;
	}

	.hero p {
		font-size: 16px;
	}

	.search-input-group {
		flex-direction: column;
		gap: 10px;
	}

	.search-input-group input[type="text"] {
		max-width: 100%;
		min-width: unset;
	}

	.complaint-detail-section {
		flex-direction: column;
		gap: 20px;
	}

	.detail-left, .detail-right {
		min-width: unset; /* Allow to shrink below 280px */
		width: 100%;
		padding: 0; /* Set padding to 0 as requested */
	}

	/* Added padding to status-timeline instead of detail-right */
	.status-timeline {
		padding: 15px;
	}

	/* Adjusted for Timeline content overflow */
	.status-item .attachments a .file-name {
		max-width: 100%; /* Allow file name to take full available width */
		white-space: normal; /* Allow text to wrap */
		text-overflow: unset; /* Remove ellipsis if wrapping */
	}
	.status-item .attachments a {
		flex-direction: column; /* Stack icon and text vertically */
		align-items: center; /* Center items when stacked */
		text-align: center;
		padding: 8px; /* Adjust padding for stacked content */
	}
	.status-item .attachments a .file-icon {
		margin-right: 0; /* Remove right margin */
		margin-bottom: 5px; /* Add bottom margin for spacing */
	}
	.status-item .attachments a .file-info {
		align-items: center; /* Center file info when wrapped */
	}


	.detail-group .image-gallery img {
		width: 80px;
		height: 80px;
	}

	.status-item .attachments img {
		width: 60px; /* Adjusted for smaller screens */
		height: 60px; /* Adjusted for smaller screens */
	}

	.status-item .attachments a {
		padding: 6px 10px;
	}

	.status-item .attachments a .file-icon {
		font-size: 14px;
	}

	.status-item .attachments a .file-name {
		max-width: 120px;
	}

	.status-item .attachments a .file-size {
		font-size: 11px;
	}

	.category-grid {
		grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
	}

	.category-item {
		padding: 15px;
	}

	.category-item .icon {
		width: 90px;
		height: 90px;
		font-size: 30px;
	}

	.form-row {
		flex-direction: column;
		gap: 0; /* Remove gap for single column layout */
	}

	.form-row .form-group {
		min-width: unset;
		width: 100%;
		margin-bottom: 20px; /* Add back margin for vertical spacing */
	}

	.footer {
		padding: 30px 15px; /* Adjusted padding for responsive */
		margin: 0; /* Ensure full width */
		border-radius: 0; /* Sharp corners for full width */
	}

	.footer-content {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.footer-left, .footer-right {
		min-width: unset;
		width: 100%;
	}
}

@media (max-width: 480px) {
	.header-left .title h1 {
		font-size: 20px;
	}

	.header-left .title p {
		font-size: 14px;
	}

	.navbar-toggler {
		font-size: 22px;
	}
	.navbar ul li a {
		padding: 8px 10px;
		font-size: 14px;
	}

	.hero h2 {
		font-size: 24px;
	}

	.hero p {
		font-size: 14px;
	}

	.search-complaint-section {
		padding: 20px;
	}

	.search-complaint-section h3 {
		font-size: 20px;
	}

	.search-input-group input[type="text"] {
		font-size: 14px;
		min-width: unset;
	}

	.search-input-group button {
		font-size: 14px;
		padding: 8px 15px;
	}

	.complaint-detail-section {
		padding: 20px;
	}

	.detail-header h3 {
		font-size: 20px;
	}

	.detail-group label {
		font-size: 14px;
	}

	.detail-group p {
		font-size: 14px;
	}

	.detail-group .map-placeholder {
		height: 150px;
		font-size: 14px;
	}

	.detail-group .image-gallery img {
		width: 60px;
		height: 60px;
	}

	.status-timeline h4 {
		font-size: 18px;
	}

	.status-item .status-icon {
		width: 25px;
		height: 25px;
		font-size: 12px;
	}

	.status-item .status-title {
		font-size: 14px;
	}

	.status-item .status-description {
		font-size: 12px;
	}

	.status-item .attachments img {
		width: 50px;
		height: 50px;
	}

	.status-item .attachments a {
		font-size: 12px;
		padding: 3px 8px;
	}

	.status-item .attachments a .file-icon {
		font-size: 12px;
	}

	.status-item .attachments a .file-name {
		max-width: 80px; /* Further reduce max-width for very small screens */
	}

	.status-item .attachments a .file-size {
		font-size: 10px;
	}

	.category-grid {
		grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
	}

	.category-item .icon {
		width: 100px;
		height: 100px;
		font-size: 25px;
	}

	.complaint-form-section {
		padding: 20px;
	}

	.complaint-form-section h3 {
		font-size: 20px;
	}

	.form-group input[type="text"],
	.form-group input[type="email"],
	.form-group input[type="tel"],
	.form-group select,
	.form-group textarea {
		font-size: 14px;
	}
}

.invalid-feedback {
	color: red;
	font-size: 0.875em;
	margin-top: 0.25rem;
}

.form-control.is-invalid {
	border-color: red;
}

.required{
	color: red;
}

 .rating-container {
	background-color: #ffffff;
	padding: 30px;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	text-align: center;
	max-width: 400px;
	width: 100%; /* Ensures it takes full width on smaller screens */
}

.rating-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	color: #1f2937;
}

.stars {
	display: inline-block;
	direction: rtl; /* Stars from right to left for easier styling */
	unicode-bidi: bidi-override;
	font-size: 2rem; /* Larger stars */
	color: #d1d5db; /* Grey for unselected stars */
}

.star {
	display: inline-block;
	cursor: pointer;
	transition: color 0.2s ease-in-out, transform 0.1s ease-in-out;
	padding: 0 5px; /* Spacing between stars */
}

.star:hover,
.star:hover ~ .star {
	color: #fcd34d; /* Yellow on hover */
	transform: scale(1.1); /* Slight grow on hover */
}

/* Class for selected stars */
.star.selected,
.star.selected ~ .star {
	color: #fbbf24; /* Deeper yellow for selected */
}

.rating-display {
	font-size: 1.2rem;
	color: #4b5563; /* Darker grey for text */
	margin-top: 15px;
	font-weight: 600;
}

.rating-message {
	font-size: 0.9rem;
	color: #6b7280;
	margin-top: 10px;
}

/* Responsive adjustments for smaller screens (e.g., mobile phones) */
@media (max-width: 480px) {
	.rating-container {
		padding: 20px; /* Slightly less padding on smaller screens */
	}
	.rating-title {
		font-size: 1.3rem; /* Slightly smaller title */
		margin-bottom: 1rem;
	}
	.stars {
		font-size: 2.5rem; /* Smaller stars for better fit on small screens */
	}
	.rating-display {
		font-size: 1.1rem; /* Smaller display text */
	}
	.rating-message {
		font-size: 0.8rem; /* Smaller message text */
	}
}
