/* Reviews Section Styles */

/* Hide Google Reviews Section - MAXIMUM AGGRESSIVE - Override inline styles */
html body section.homepage-reviews-section,
html body .homepage-reviews-section,
html body section[class*="homepage-reviews"],
body section.homepage-reviews-section,
body .homepage-reviews-section,
section.homepage-reviews-section,
.homepage-reviews-section,
section[class*="homepage-reviews"],
html body section.homepage-reviews-section[style],
html body .homepage-reviews-section[style],
section.homepage-reviews-section[style*="padding"],
section.homepage-reviews-section[style*="background"],
.homepage-reviews-section[style*="padding"],
.homepage-reviews-section[style*="background"],
[class*="google"][class*="review"],
[id*="google"][id*="review"],
.elementor-widget-google_reviews,
.elementor-element[class*="google-review"],
.google-reviews-container,
.google-reviews-empty {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	position: absolute !important;
	left: -9999px !important;
	width: 0 !important;
	max-width: 0 !important;
	min-height: 0 !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	background: transparent !important;
	background-color: transparent !important;
}
/* Hide all children */
html body section.homepage-reviews-section *,
html body .homepage-reviews-section * {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
}

	#reviews-section {
		padding: 3em 0;
		background-color: #f9f9f9;
		box-sizing: border-box;
	}
	
	#reviews-section .container {
		padding: 0 15px;
		box-sizing: border-box;
	}

	#reviews-heading {
		text-align: center;
		font-size: 2.5em;
		margin-bottom: 1em;
		color: #223645;
		word-wrap: break-word;
		hyphens: auto;
	}

	#reviews-actions {
		text-align: center;
		margin-bottom: 2em;
		padding: 0 15px;
		box-sizing: border-box;
	}

#submit-review-button {
	background-color: #0d0149;
	color: #ffffff;
	padding: 1em 2em;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 1.1em;
	transition: background-color 0.3s ease;
}

#submit-review-button:hover {
	background-color: #1a0280;
	transform: translateY(-3px);
	box-shadow: 0 4px 15px rgba(13, 1, 73, 0.4);
}

/* Reviews Carousel */
	#reviews-carousel-wrapper {
		margin: 2em 0;
		width: 100%;
		overflow: hidden;
		padding: 0 10px;
		box-sizing: border-box;
	}
	
	#reviews-carousel {
		width: 100%;
		overflow: hidden;
		padding-bottom: 40px; /* Space for pagination */
	}
	
	.swiper-wrapper {
		display: flex;
		align-items: stretch;
	}

	.review-card {
		background: #ffffff;
		padding: 2em;
		border-radius: 8px;
		box-shadow: 0 2px 10px rgba(0,0,0,0.1);
		height: auto;
		min-height: 250px;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		box-sizing: border-box;
		width: 100%;
	}

.review-stars {
	color: #f9d64f;
	font-size: 1.2em;
	margin-bottom: 1em;
}

.review-stars i {
	margin-right: 3px;
}

.review-text {
	font-size: 1.1em;
	line-height: 1.6;
	color: #333;
	margin-bottom: 1.5em;
	flex-grow: 1;
}

.review-author {
	margin-top: auto;
}

.review-author strong {
	display: block;
	font-size: 1.1em;
	color: #223645;
	margin-bottom: 0.3em;
}

.review-author span {
	display: block;
	font-size: 0.9em;
	color: #888;
}

/* Swiper Pagination */
	.swiper-pagination-bullet {
		background-color: #0d0149;
		opacity: 0.5;
		width: 10px;
		height: 10px;
	}

	.swiper-pagination-bullet-active {
		opacity: 1;
	}
	
	.swiper-slide {
		width: 100%;
		box-sizing: border-box;
	}

/* Modal Styles */
.modal {
	display: none !important; /* Force hidden by default */
	position: fixed;
	z-index: 10000;
	left: 0;
	top: 0;
	width: 100%;
	max-width: 100vw;
	height: 100%;
	overflow-y: auto;
	overflow-x: hidden !important;
	background-color: rgba(0,0,0,0.5);
	-webkit-overflow-scrolling: touch;
	align-items: flex-start;
	justify-content: center;
}

/* Prevent any child elements from causing overflow */
.modal * {
	max-width: 100%;
	box-sizing: border-box;
}

/* Only show modal when explicitly set to display by JavaScript */
.modal[style*="display: flex"],
.modal[style*="display:block"],
.modal[style*="display: block"] {
	display: flex !important;
}

	.modal-content {
		background-color: #fefefe;
		margin: 5% auto;
		padding: 2em;
		border: 1px solid #888;
		width: 90%;
		max-width: 600px;
		border-radius: 8px;
		position: relative;
		box-sizing: border-box;
		max-height: 90vh;
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		display: flex;
		flex-direction: column;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}
	
	#review-form {
		display: flex;
		flex-direction: column;
		width: 100%;
		box-sizing: border-box;
	}

.modal-close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	position: absolute;
	right: 20px;
	top: 15px;
}

.modal-close:hover,
.modal-close:focus {
	color: #000;
}

/* Rating Stars */
.rating-input {
	font-size: 2em;
	cursor: pointer;
}

.rating-input .star {
	color: #ddd;
	margin-right: 5px;
	transition: color 0.2s;
}

.rating-input .star:hover,
.rating-input .star.active {
	color: #f9d64f;
}

.rating-input .star.active {
	color: #f9d64f;
}

/* Form Styles */
.form-group {
	margin-bottom: 1.5em;
	width: 100%;
	box-sizing: border-box;
}

.form-group label {
	display: block;
	margin-bottom: 0.5em;
	font-weight: 600;
	width: 100%;
	box-sizing: border-box;
}

.form-group input,
.form-group textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.75em;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1em;
	font-family: inherit;
	box-sizing: border-box;
}

.form-group textarea {
	resize: vertical;
}

/* Pending Reviews Admin */
.pending-review-item {
	background: #ffffff;
	padding: 1.5em;
	margin-bottom: 1em;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pending-review-item h4 {
	margin: 0 0 0.5em 0;
	color: #223645;
}

.review-meta {
	font-size: 0.9em;
	color: #888;
	margin-bottom: 1em;
}

.review-actions {
	margin-top: 1em;
}

.approve-button,
.reject-button {
	padding: 0.5em 1.5em;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1em;
	margin-right: 1em;
	transition: background-color 0.3s ease;
}

.approve-button {
	background-color: #28a745;
	color: #ffffff;
}

.approve-button:hover {
	background-color: #218838;
}

.reject-button {
	background-color: #dc3545;
	color: #ffffff;
}

.reject-button:hover {
	background-color: #c82333;
}

/* Success/Error Messages */
#form-message.success {
	color: #28a745;
	font-weight: 600;
}

#form-message.error {
	color: #dc3545;
	font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
	#reviews-section {
		padding: 2em 15px !important;
	}
	
	#reviews-heading {
		font-size: 1.8em !important;
		margin-bottom: 15px !important;
	}
	
	#reviews-section p {
		font-size: 1em !important;
		margin-bottom: 30px !important;
	}
	
	#submit-review-button {
		padding: 0.8em 1.5em !important;
		font-size: 1em !important;
		width: 100%;
		max-width: 300px;
	}
	
	#reviews-carousel-wrapper {
		margin-top: 20px !important;
		padding: 0 5px !important;
	}
	
	#reviews-carousel {
		padding-bottom: 50px !important; /* More space for pagination on mobile */
	}
	
	.review-card {
		padding: 1.5em;
		min-height: 200px;
	}
	
	.review-text {
		font-size: 1em !important;
	}
	
	.review-author strong {
		font-size: 1em !important;
	}
	
	.modal {
		padding: 0 !important;
		overflow-y: auto !important;
		overflow-x: hidden !important;
		-webkit-overflow-scrolling: touch;
		align-items: flex-start !important;
		justify-content: flex-start !important;
		width: 100% !important;
		max-width: 100vw !important;
		/* Don't force display: flex - only show when modal is actually open */
		/* display: flex is set by JavaScript when modal opens */
	}
	
	/* Prevent any horizontal overflow */
	.modal * {
		max-width: 100% !important;
		box-sizing: border-box !important;
	}
	
	/* When modal is open, ensure it's properly displayed */
	.modal[style*="display: flex"] {
		display: flex !important;
		align-items: flex-start !important;
		justify-content: flex-start !important;
	}
	
	/* Only show modal when it has display: flex or display: block set inline */
	.modal[style*="display: flex"],
	.modal[style*="display:block"] {
		display: flex !important;
	}
	
	.modal-content {
		width: 100% !important;
		max-width: 100vw !important;
		margin: 0 !important;
		padding: 1.5em 1em !important;
		padding-top: 3em !important; /* Space for close button */
		border-radius: 0 !important;
		min-height: auto !important;
		max-height: 100vh !important;
		height: auto !important;
		box-sizing: border-box !important;
		position: relative;
		overflow-y: auto !important;
		overflow-x: hidden !important;
		-webkit-overflow-scrolling: touch;
		display: flex !important;
		flex-direction: column !important;
		word-wrap: break-word !important;
		overflow-wrap: break-word !important;
	}
	
	/* Ensure all form elements are visible and properly sized */
	#review-form {
		width: 100% !important;
		max-width: 100% !important;
		display: flex !important;
		flex-direction: column !important;
		gap: 1em !important;
	}
	
	#review-form .form-group {
		width: 100% !important;
		max-width: 100% !important;
		margin-bottom: 1.2em !important;
		display: flex !important;
		flex-direction: column !important;
	}
	
	#review-form label {
		width: 100% !important;
		display: block !important;
		margin-bottom: 0.5em !important;
	}
	
	#review-form input[type="text"],
	#review-form input[type="email"],
	#review-form textarea {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
		padding: 0.75em !important;
		font-size: 16px !important; /* Prevent zoom on iOS */
		overflow-x: hidden !important;
		word-wrap: break-word !important;
	}
	
	#review-form button[type="submit"] {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		padding: 0.75em !important;
	}
	
	#rating-stars {
		width: 100% !important;
		max-width: 100% !important;
		display: flex !important;
		justify-content: center !important;
		flex-wrap: wrap !important;
		gap: 8px !important;
		margin: 0.5em 0 !important;
		box-sizing: border-box !important;
		overflow: hidden !important;
	}
	
	#rating-stars .star {
		font-size: 1.5em !important;
		margin: 0 !important;
		cursor: pointer;
		flex-shrink: 0 !important;
		max-width: none !important;
	}
	
	/* Ensure modal fits within viewport */
	.modal[style*="display: flex"] {
		align-items: flex-start !important;
		justify-content: flex-start !important;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}
	
	.modal-close {
		right: 15px !important;
		top: 10px !important;
		font-size: 32px !important;
		z-index: 10001;
		width: 40px !important;
		height: 40px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		line-height: 1 !important;
		cursor: pointer !important;
	}
	
	#modal-heading {
		font-size: 1.5em !important;
		margin-top: 0.5em !important;
		margin-bottom: 1em !important;
	}
	
	.form-group {
		margin-bottom: 1.2em !important;
	}
	
	.form-group label {
		font-size: 0.95em !important;
	}
	
	.form-group input,
	.form-group textarea {
		font-size: 16px !important; /* Prevents zoom on iOS */
		padding: 0.6em !important;
		-webkit-appearance: none;
		-webkit-border-radius: 4px;
		border-radius: 4px;
	}
	
	/* Ensure modal form is scrollable on small screens */
	#review-form {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
	}
	
	#review-form .form-group {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	
	#review-form input,
	#review-form textarea,
	#review-form button {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	
	#review-form textarea {
		resize: vertical;
		min-height: 100px;
		max-height: 200px;
	}
	
	#rating-stars {
		width: 100% !important;
		display: flex !important;
		justify-content: center !important;
		flex-wrap: wrap !important;
		gap: 5px !important;
	}
	
	#rating-stars .star {
		margin-right: 0 !important;
		flex-shrink: 0;
	}
	
	.rating-input {
		font-size: 1.5em !important;
		display: flex;
		justify-content: center;
		gap: 5px;
	}
	
	.rating-input .star {
		font-size: 1.2em !important;
		margin-right: 0 !important;
	}
	
	#submit-review-form-button {
		padding: 0.8em !important;
		font-size: 1em !important;
	}
	
	/* Admin sections mobile */
	#admin-login-section,
	#pending-reviews-section,
	#approved-reviews-section {
		margin-top: 2em !important;
		padding: 1.5em 1em !important;
		max-width: 100% !important;
	}
	
	#pending-reviews-heading,
	#approved-reviews-heading {
		font-size: 1.3em !important;
		word-wrap: break-word;
	}
	
	/* Admin section header with logout button */
	#pending-reviews-section > div:first-child {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 1em !important;
	}
	
	#admin-logout-button {
		width: 100% !important;
		margin-top: 0.5em !important;
	}
	
	.pending-review-item {
		padding: 1em !important;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}
	
	.pending-review-item h4 {
		font-size: 1.1em !important;
		word-wrap: break-word;
	}
	
	.pending-review-item .review-text {
		word-wrap: break-word;
		overflow-wrap: break-word;
	}
	
	.review-actions {
		display: flex;
		flex-direction: column;
		gap: 0.5em;
	}
	
	.approve-button,
	.reject-button {
		width: 100%;
		margin-right: 0 !important;
	}
}

@media (max-width: 480px) {
	#reviews-section {
		padding: 1.5em 10px !important;
	}
	
	#reviews-heading {
		font-size: 1.5em !important;
		margin-bottom: 10px !important;
	}
	
	#reviews-section p {
		font-size: 0.9em !important;
		margin-bottom: 20px !important;
	}
	
	#submit-review-button {
		padding: 0.7em 1.2em !important;
		font-size: 0.95em !important;
	}
	
	.modal-content {
		padding: 1em 0.8em !important;
		padding-top: 2.5em !important; /* Space for close button */
		max-height: 100vh !important;
		height: auto !important;
		overflow-y: auto !important;
		overflow-x: hidden !important;
		min-height: auto !important;
		width: 100vw !important;
		max-width: 100vw !important;
	}
	
	/* Ensure no element causes horizontal overflow */
	.modal-content * {
		max-width: 100% !important;
		word-wrap: break-word !important;
		overflow-wrap: break-word !important;
	}
	
	/* Ensure all elements fit on screen */
	#modal-heading {
		font-size: 1.2em !important;
		margin-bottom: 0.8em !important;
		line-height: 1.3 !important;
	}
	
	#review-form .form-group {
		margin-bottom: 1em !important;
	}
	
	#review-form label {
		font-size: 0.9em !important;
		margin-bottom: 0.4em !important;
	}
	
	#review-form input,
	#review-form textarea {
		font-size: 16px !important;
		padding: 0.6em !important;
	}
	
	#rating-stars {
		font-size: 1.2em !important;
		gap: 5px !important;
	}
	
	#rating-stars .star {
		font-size: 1.2em !important;
	}
	
	#review-form {
		flex: 1;
		display: flex;
		flex-direction: column;
	}
	
	#modal-heading {
		font-size: 1.2em !important;
		margin-bottom: 0.8em !important;
	}
	
	.rating-input {
		font-size: 1.3em !important;
		justify-content: center !important;
		flex-wrap: wrap !important;
		width: 100% !important;
		gap: 5px !important;
	}
	
	.rating-input .star {
		margin-right: 0 !important;
		flex-shrink: 0;
	}
	
	/* Prevent body scroll when modal is open on mobile - simpler approach */
	body.modal-open {
		overflow: hidden !important;
		/* Don't use position: fixed as it breaks layout */
		/* The overflow: hidden should be enough to prevent scrolling */
	}
	
	#modal-heading {
		font-size: 1.3em !important;
	}
	
	.rating-input {
		font-size: 1.3em !important;
	}
}

