/**
 * Errand Homepage Visual Optimization
 * 
 * Fixes button color overrides and enhances visual design for:
 * - Submit Order & View Services buttons
 * - Login/Register links  
 * - Why Choose Us section icons
 * - Track Your Order query button
 * - Overall clean and refined aesthetic
 *
 * @package Errand
 */

/* =============================================================================
   Override Global Link Styles - Fix Color Override Issues
   ============================================================================= */

/* Fix hero section button colors - override theme a:visited styles */
.hero-actions .btn,
.hero-actions .btn:link,
.hero-actions .btn:visited,
.hero-actions .btn:hover,
.hero-actions .btn:active,
.hero-actions .btn:focus {
	color: white;
	text-decoration: none;
}

.hero-actions .btn-primary,
.hero-actions .btn-primary:link,
.hero-actions .btn-primary:visited {
	background: var(--primary-color, #0073aa);
	color: white;
	border-color: var(--primary-color, #0073aa);
}

.hero-actions .btn-secondary,
.hero-actions .btn-secondary:link,
.hero-actions .btn-secondary:visited {
	background: transparent;
	color: white;
	border-color: white;
}

/* Fix form submit button colors */
.errand-submit-btn,
.errand-submit-btn:link,
.errand-submit-btn:visited,
.errand-submit-btn:hover,
.errand-submit-btn:active,
.errand-submit-btn:focus,
.button-primary,
.button-primary:link,
.button-primary:visited {
	background: var(--primary-color, #0073aa);
	color: white !important;
	text-decoration: none !important;
	border-color: var(--primary-color, #0073aa);
}

/* Override for hero section headings */
.hero-content h1,
.hero-content h2,
.hero-content h3,
.hero-content h4,
.hero-content h5,
.hero-content h6,
.hero-title {
	color: white;
}

/* Override for hero section paragraphs */
.hero-content p,
.hero-description {
	color: white !important;
}

/* =============================================================================
   Enhanced Hero Section
   ============================================================================= */

.errand-hero-section {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
	position: relative;
	padding: 120px 0;
	overflow: hidden;
}

.errand-hero-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
	pointer-events: none;
}

.hero-title {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 700;
	margin-bottom: 1.5rem;
	line-height: 1.1;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	color: white;
}

.hero-description {
	font-size: clamp(1.125rem, 2.5vw, 1.375rem);
	margin-bottom: 2.5rem;
	line-height: 1.6;
	opacity: 0.95;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	color: white;
}

/* =============================================================================
   Enhanced Section Styling
   ============================================================================= */

.errand-services-section,
.errand-features-section,
.errand-order-section,
.errand-query-section {
	padding: 100px 0;
	position: relative;
}

.errand-features-section {
	background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-accent) 100%);
}

.section-title {
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 700;
	text-align: center;
	margin-bottom: 4rem;
	color: var(--text-primary);
	position: relative;
	letter-spacing: -0.025em;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: -1rem;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 4px;
	background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
	border-radius: 2px;
}

/* =============================================================================
   Enhanced Features Grid - Why Choose Us
   ============================================================================= */

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 2.5rem;
	margin-top: 4rem;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.feature-item {
	text-align: center;
	padding: 2rem;
	box-shadow: var(--box-shadow);
	background: var(--bg-primary);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	border: 1px solid var(--border-light);
	border-radius: var(--radius-base);
}

.feature-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.feature-item:hover::before {
	transform: scaleX(1);
}

.feature-item:hover {
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
	transform: translateY(-8px);
	border-color: var(--border-color);
}

/* Enhanced Feature Icons - Fix Display Issues */
.feature-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 1.5rem;
	background: var(--primary-color);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 2rem;
	transition: all 0.3s ease;
	box-shadow: var(--shadow-md);
}

.feature-icon::before {
	content: '';
	position: absolute;
	inset: -2px;
	background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
	border-radius: 50%;
	z-index: -1;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.feature-item:hover .feature-icon::before {
	opacity: 1;
}

.feature-item:hover .feature-icon {
	transform: scale(1.1);
	box-shadow: var(--shadow-lg);
}

/* Fix Dashicons font loading and fallback icons */
.feature-icon i.dashicons {
	font-family: dashicons, 'Arial Unicode MS', Arial, sans-serif;
	font-size: 2.5rem;
	line-height: 1;
	width: auto;
	height: auto;
}

/* Alternative SVG icons as fallback */
.feature-icon .icon-clock::before {
	content: '⏰';
	font-size: 2.5rem;
}

.feature-icon .icon-shield::before {
	content: '🛡️';
	font-size: 2.5rem;
}

/* Responsive Design for Features Grid */
@media (max-width: 768px) {
	.features-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
		margin-top: 3rem;
		padding: 0 1rem;
	}
	
	.feature-item {
		padding: 2rem 1.5rem;
	}
	
	.feature-icon {
		width: 80px;
		height: 80px;
		font-size: 2rem;
		margin-bottom: 1.5rem;
	}
	
	.feature-item h3 {
		font-size: 1.375rem;
		margin-bottom: 0.75rem;
	}
	
	.feature-item p {
		font-size: 0.95rem;
	}
}

@media (max-width: 480px) {
	.features-grid {
		gap: 1.5rem;
		margin-top: 2.5rem;
	}
	
	.feature-item {
		padding: 1.5rem 1rem;
	}
	
	.feature-icon {
		width: 70px;
		height: 70px;
		font-size: 1.75rem;
		margin-bottom: 1.25rem;
	}
	
	.feature-item h3 {
		font-size: 1.25rem;
		margin-bottom: 0.5rem;
	}
	.feature-item h3
	
	.feature-item p {
		font-size: 0.9rem;
	}
}

.feature-icon .icon-professional::before {
	content: '👨‍💼';
	font-size: 2.5rem;
}

.feature-item h3 {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--text-primary);
}

.feature-item p {
	line-height: 1.6;
	color: var(--text-secondary);
	font-size: 1rem;
}

/* =============================================================================
   Enhanced Form Styling
   ============================================================================= */

.errand-form {
	max-width: 900px;
	margin: 0 auto;
	background: var(--bg-primary);
	padding: 3rem;
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	position: relative;
}

.errand-form::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.errand-form-section h3 {
	margin: 0 0 2rem 0;
	padding: 0 0 1rem 0;
	border-bottom: 2px solid var(--border-light);
	color: var(--text-primary);
	font-size: 1.375rem;
	font-weight: 600;
	letter-spacing: -0.025em;
}

.errand-form-row {
	margin-bottom: 1.75rem;
}

.errand-form-row label {
	display: block;
	margin-bottom: 0.75rem;
	font-weight: 600;
	color: var(--text-primary);
	font-size: 0.95rem;
}

/*.errand-form-row input[type="text"],*/
/*.errand-form-row input[type="email"],*/
/*.errand-form-row input[type="tel"],*/
/*.errand-form-row input[type="datetime-local"],*/
/*.errand-form-row select,*/
/*.errand-form-row textarea {*/
/*	width: 100%;*/
/*	padding: 10px;*/
/*	border: 1px solid #ddd;*/
/*	border-radius: 4px;*/
/*	font-size: 14px;*/
/*	box-sizing: border-box;*/
/*	transition: all 0.3s ease;*/
/*	background: white;*/
/*}*/

.errand-form-row input,
.errand-form-row select,
.errand-form-row textarea {
	width: 100%;
	padding: 1rem;
	border: 2px solid var(--border-color);
	border-radius: var(--radius-base);
	font-size: 1rem;
	box-sizing: border-box;
	transition: all 0.3s ease;
	background: var(--bg-primary);
	color: var(--text-primary);
}

.errand-form-row input:focus,
.errand-form-row select:focus,
.errand-form-row textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
	background: var(--bg-primary);
}

.lang-ar .errand-form-row,
.lang-he .errand-form-row {
	text-align: right;
}

.errand-form-submit {
	text-align: center;
	margin-top: 30px;
	padding-top: 2rem;
	border-top: 1px solid var(--border-color);
}

/* =============================================================================
   Enhanced Query Button - Track Your Order (Softer Design)
   ============================================================================= */

.errand-order-query-container {
	max-width: 700px;
	margin: 0 auto;
}

.errand-query-results {
	margin-top: 30px;
}

.errand-order-result {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}
.errand-order-result {
	animation: fadeIn 0.5s ease-out;
}

.errand-order-result:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
}

.errand-order-result h4 {
	margin: 0 0 1rem 0;
	color: var(--primary-color);
	font-size: 1.25rem;
	font-weight: 600;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 0.5rem;
}

.order-result-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #e5e7eb;
}

.order-result-header h4 {
	margin: 0;
	color: var(--primary-color);
	font-size: 1.25rem;
	font-weight: 600;
	border-width: 0px;
	padding: 0px;
}

.order-status-badge {
	display: inline-block;
	padding: 0.375rem 0.75rem;
	border-radius: 20px;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.025em;
}

.order-result-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
}

.order-info-section {
	background: #f8fafc;
	border-radius: 6px;
	padding: 1rem;
	border: 1px solid #e2e8f0;
}

.order-info-section h5 {
	margin: 0 0 0.75rem 0;
	color: var(--text-primary);
	font-size: 1rem;
	font-weight: 600;
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 0.5rem;
}

.query-results-header {
	display: flex;
	justify-content: flex-end;
	padding: 0.5rem 1rem 0;
	margin-bottom: 1rem;
}

.query-close-btn {
	background: none;
	border: none;
	color: var(--secondary-color);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	border-radius: 50%;
	transition: all 0.3s ease;
	width: 2rem;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.query-close-btn:hover {
	background: var(--danger-color);
	color: white;
	transform: scale(1.1);
}

.query-close-btn:focus {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

.errand-order-detail {
	margin-bottom: 0.75rem;
	display: flex;
	flexextract-align: flex-start;
}

.errand-order-detail strong {
	display: inline-block;
	min-width: 120px;
	width: 140px;
	color: var(--text-primary);
	font-weight: 600;
	margin-right: 0.5rem;
	flex-shrink: 0;
}

.errand-order-detail span {
	flex: 1;
	word-wrap: break-word;
}

.lang-ar .errand-order-detail,
.lang-he .errand-order-detail {
	flex-direction: row-reverse;
}

.errand-order-status {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.errand-order-status.pending {
	background: #fff3cd;
	color: #856404;
	border: 1px solid #ffeaa7;
}

.errand-order-status.pending,
.order-status-badge.status-pending {
	background: #fff3cd;
	color: #856404;
	border: 1px solid #ffeaa7;
}

.errand-order-status.accepted {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.errand-order-status.accepted,
.order-status-badge.status-accepted {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.errand-order-status.in-progress {
	background: #cce5ff;
	color: #004085;
	border: 1px solid #99d3ff;
}

.errand-order-status.in-progress,
.order-status-badge.status-in-progress {
	background: #cce5ff;
	color: #004085;
	border: 1px solid #99d3ff;
}

.errand-order-status.completed {
	background: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

.errand-order-status.completed,
.order-status-badge.status-completed {
	background: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

.errand-order-status.cancelled {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f1b0b7;
}

.errand-order-status.cancelled,
.order-status-badge.status-cancelled {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f1b0b7;
}

.errand-order-query-container .button-primary,
.errand-order-query-container .errand-submit-btn,
.errand-order-query-container button[type="submit"] {
	background: var(--primary-color);
	color: white;
	padding: 1rem 2rem;
	border: none;
	border-radius: var(--radius-base);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-width: 140px;
	box-shadow: var(--shadow-base);
}

.errand-order-query-container .button-primary:hover,
.errand-order-query-container .errand-submit-btn:hover,
.errand-order-query-container button[type="submit"]:hover {
	background: var(--primary-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.errand-order-query-container .button-primary:active,
.errand-order-query-container .errand-submit-btn:active,
.errand-order-query-container button[type="submit"]:active {
	transform: translateY(0);
}

/* =============================================================================
   Enhanced Submit Order Button - Unified Design
   ============================================================================= */

.errand-order-form-container .button-primary,
.errand-order-form-container .errand-submit-btn,
.errand-order-form-container button[type="submit"] {
	background: var(--primary-color);
	color: white;
	padding: 1rem 2rem;
	border: none;
	border-radius: var(--radius-base);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-width: 140px;
	box-shadow: var(--shadow-base);
}

.errand-order-form-container .button-primary:hover,
.errand-order-form-container .errand-submit-btn:hover,
.errand-order-form-container button[type="submit"]:hover {
	background: var(--primary-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.errand-order-form-container .button-primary:active,
.errand-order-form-container .errand-submit-btn:active,
.errand-order-form-container button[type="submit"]:active {
	transform: translateY(0);
}

/* =============================================================================
   Enhanced Login Option Styling
   ============================================================================= */

.errand-login-option {
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(6, 182, 212, 0.05));
	padding: 2rem;
	margin-bottom: 2.5rem;
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	text-align: center;
	position: relative;
}

.errand-login-option::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.errand-login-option p {
	margin-bottom: 1.5rem;
	color: var(--text-secondary);
	font-size: 1.1rem;
}

.errand-login-option .button {
	background: rgba(37, 99, 235, 0.08);
	color: var(--primary-color) !important;
	border: 1px solid rgba(37, 99, 235, 0.2);
	padding: 0.7rem 1.7rem;
	border-radius: var(--radius-base);
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	box-shadow: none;
	height: auto;
	min-height: 48px;
	box-sizing: border-box;
	justify-content: center;
}

.errand-login-option .button {
	margin-left: 10px;
}

.errand-login-option .button:hover {
	background: rgba(37, 99, 235, 0.12);
	border-color: rgba(37, 99, 235, 0.3);
	color: var(--primary-dark);
	transform: none;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* =============================================================================
   Responsive Design Enhancements
   ============================================================================= */

@media (max-width: 1024px) {
	.hero-title {
		font-size: clamp(2rem, 4vw, 2.75rem);
	}
	
	.hero-description {
		font-size: clamp(1rem, 2vw, 1.25rem);
	}
	
	.features-grid {
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
		gap: 2rem;
	}
	
	.feature-item {
		padding: 2.5rem 1.5rem;
	}
}

@media (max-width: 768px) {
	.errand-hero-section {
		padding: 80px 0;
	}
	
	.errand-services-section,
	.errand-features-section,
	.errand-order-section,
	.errand-query-section {
		padding: 60px 0;
	}
	
	.hero-actions {
		flex-direction: column;
		align-items: center;
		gap: 1rem;
	}
	
	.btn {
		min-width: 200px;
		padding: 1rem 1.5rem;
	}
	
	.features-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	
	.feature-item {
		padding: 2rem 1.5rem;
	}
	
	.feature-icon {
		width: 70px;
		height: 70px;
		font-size: 1.75rem;
	}
	
	.errand-form {
		padding: 2rem 1.5rem;
		margin: 0 1rem;
	}
	
	.section-title {
		margin-bottom: 2rem;
		font-size: clamp(1.75rem, 3vw, 2.25rem);
	}
	
	.errand-order-detail {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.errand-order-detail strong {
		width: auto;
		margin-bottom: 0.25rem;
	}
}

@media (max-width: 480px) {
	.hero-actions .btn {
		width: 100%;
		max-width: 280px;
	}
	
	.feature-icon {
		width: 60px;
		height: 60px;
		font-size: 1.5rem;
	}
	
	.errand-form {
		padding: 1.5rem 1rem;
		margin: 0 0.5rem;
	}
	
	.section-title {
		font-size: 1.75rem;
	}
	
	.errand-order-query-container .button-primary,
	.errand-order-query-container .errand-submit-btn,
	.errand-order-query-container button[type="submit"] {
		width: 100%;
		padding: 1rem 1.5rem;
	}
}

/* =============================================================================
   Service Tabs Order Form
   ============================================================================= */

/* Enhanced Service Area Tags - Flat Light Blue-Gray Fresh Style */
.service-area-tag {
	background: linear-gradient(135deg, rgba(100, 116, 139, 0.08), rgba(71, 85, 105, 0.06));
	color: #475569;
	border: 1px solid rgba(100, 116, 139, 0.2);
	padding: 0.375rem 0.875rem;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 500;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	backdrop-filter: blur(10px);
	display: inline-block;
	white-space: nowrap;
	text-align: center;
	vertical-align: middle;
	line-height: 1.3;
	margin: 0.125rem 0.25rem 0.125rem 0;
	max-width: calc(100% - 0.5rem);
	box-sizing: border-box;
	word-wrap: break-word;
	text-overflow: ellipsis;
}

.service-area-tag::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	transition: left 0.5s;
}

.service-area-tag:hover {
	background: linear-gradient(135deg, rgba(100, 116, 139, 0.12), rgba(71, 85, 105, 0.1));
	border-color: rgba(100, 116, 139, 0.3);
	color: #334155;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(100, 116, 139, 0.15);
}

.service-area-tag:hover::before {
	left: 100%;
}

/* Enhanced Service Action Buttons */
.service-order-link {
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease !important;
	border: none;
	box-shadow: var(--shadow-base);
	font-weight: 600;
	letter-spacing: -0.015em;
	padding: 1rem 2rem;
	border-radius: var(--radius-base);
	font-size: 1rem;
	text-align: center;
	display: inline-block;
	width: 100%;
	box-sizing: border-box;
}

/* Homepage specific button width */
.errand-service-tabs-order-container .service-order-link {
	width: auto;
}

.service-order-link {
	background: var(--primary-color);
	color: white;
	text-decoration: none;
	border: 2px solid var(--primary-color);
}

.service-order-link:link,
.service-order-link:visited,
.service-order-link:hover,
.service-order-link:active,
.service-order-link:focus {
	color: white;
	text-decoration: none;
}

.site-main .service-order-link:link,
.site-main .service-order-link:visited,
.site-main .service-order-link:hover,
.site-main .service-order-link:active,
.site-main .service-order-link:focus {
	color: white;
	background: var(--primary-color);
}

a:visited:hover .service-order-link {
	color: white;
	background: var(--primary-color);
}

.service-order-link:hover {
	background: var(--primary-dark) !important;
	border-color: var(--primary-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

/* Service Info Box Enhancement */
.service-info-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	border-bottom: 1px solid var(--border-light);
	gap: 1rem;
	padding: 0.875rem 0;
}

/* Special styling for service area label item (without flex layout) */
.service-info-item:has(+ .service-areas) {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 10px;
}

/* Alternative approach for browsers that don't support :has() */
.service-info-item + .service-areas {
	border-top: none;
	margin-top: -0.5rem;
}

.service-info-item:last-child {
	border-bottom: none;
}

.service-info-item strong {
	color: var(--text-primary);
	font-weight: 600;
	flex-shrink: 0;
	min-width: 120px;
}

.service-info-item span,
.service-info-item .service-areas {
	color: var(--text-secondary);
	flex: 0 0 auto;
	text-align: left;
}

.service-areas {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	justify-content: flex-start;
	align-items: flex-start;
	margin: 1rem 0;
	padding: 0.5rem 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Price Display Enhancement */
.service-price-display {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.service-price-primary {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--text-primary);
}

.service-price-secondary {
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--text-muted);
	opacity: 0.8;
}

@media (max-width: 1024px) {
	.service-info-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
	
	.service-info-item span,
	.service-info-item .service-areas {
		text-align: left;
	}
	
	.service-areas {
		justify-content: flex-start;
		margin: 1rem 0;
		padding: 0.5rem 0;
	}
	
	.service-area-tag {
		margin: 0.125rem 0.25rem 0.125rem 0;
		font-size: 0.8rem;
		padding: 0.3rem 0.7rem;
		max-width: calc(100% - 0.5rem);
	}
	
	.service-price-display {
		align-items: flex-start;
		margin-top: 0.5rem;
	}
}

/* =============================================================================
   Print Styles
   ============================================================================= */

@media print {
	.hero-actions,
	.errand-features-section,
	.errand-form,
	.errand-order-query-container {
		display: none;
	}
	
	.feature-item {
		break-inside: avoid;
		box-shadow: none;
		border: 1px solid #000;
	}
	
	.section-title::after {
		display: none;
	}
	
	.errand-order-result {
		page-break-inside: avoid;
		border: 1px solid #000;
		box-shadow: none;
	}
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.errand-order-result,
	.feature-item {
		border: 2px solid #000;
	}
}

/* =============================================================================
   Order Query Messages
   ============================================================================= */

.errand-message {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.5rem;
	border-radius: var(--radius-md);
	margin-bottom: 1rem;
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
}

.errand-message::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: currentColor;
}

.errand-message.info {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.05));
	border: 1px solid rgba(59, 130, 246, 0.2);
	color: #1e40af;
}

.errand-message.error {
	background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(252, 165, 165, 0.05));
	border: 1px solid rgba(239, 68, 68, 0.2);
	color: #dc2626;
}

.message-content {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: 1;
}

.message-content i {
	font-size: 1.25rem;
	opacity: 0.8;
}

.message-content span {
	font-weight: 500;
	font-size: 0.95rem;
}

.message-close-btn {
	background: none;
	border: none;
	color: inherit;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.5rem;
	border-radius: 50%;
	transition: all 0.3s ease;
	width: 2rem;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: 1rem;
	flex-shrink: 0;
}

.message-close-btn:hover {
	background: rgba(0, 0, 0, 0.1);
	transform: scale(1.1);
}

.message-close-btn:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Animation for auto-close */
.no-orders-message,
.error-message {
	animation: slideInFromTop 0.3s ease-out;
}

@keyframes slideInFromTop {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.errand-message {
		padding: 0.875rem 1rem;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}
	
	.message-content {
		width: 100%;
	}
	
	.message-close-btn {
		align-self: flex-end;
		margin-left: 0;
		margin-top: -0.5rem;
	}
}

/* =============================================================================
   Order Query Results List
   ============================================================================= */

.query-results-section {
	margin-top: 1.5rem;
}

.query-results-title {
	margin: 0 0 1.5rem 0;
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--text-primary);
	text-align: center;
	position: relative;
}

.query-results-title::after {
	content: '';
	position: absolute;
	bottom: -0.5rem;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
	border-radius: 2px;
}

.query-orders-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.query-order-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
	border-radius: var(--radius-lg);
	border: 1px solid rgba(229, 231, 235, 0.8);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	backdrop-filter: blur(10px);
}

.query-order-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
	opacity: 0;
	transition: opacity 0.3s ease;
}

.query-order-item:hover {
	background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(239, 246, 255, 0.9));
	border-color: rgba(59, 130, 246, 0.3);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.query-order-item:hover::before {
	opacity: 1;
}

.order-info {
	flex: 1;
	min-width: 0;
}

.order-number {
	margin: 0 0 0.5rem 0;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--text-primary);
	letter-spacing: -0.025em;
}

.order-service {
	margin: 0 0 0.375rem 0;
	font-size: 0.95rem;
	color: var(--text-secondary);
	font-weight: 500;
}

.order-date {
	margin: 0;
	font-size: 0.875rem;
	color: var(--text-muted);
}

.order-status {
	flex-shrink: 0;
}

.status-badge {
	display: inline-block;
	padding: 0.375rem 0.875rem;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.025em;
	transition: all 0.3s ease;
}

.status-badge.status-pending {
	background: linear-gradient(135deg, #fef3c7, #fde68a);
	color: #92400e;
	border: 1px solid #fbbf24;
}

.status-badge.status-accepted {
	background: linear-gradient(135deg, #d1fae5, #a7f3d0);
	color: #065f46;
	border: 1px solid #34d399;
}

.status-badge.status-in-progress {
	background: linear-gradient(135deg, #dbeafe, #bfdbfe);
	color: #1e40af;
	border: 1px solid #60a5fa;
}

.status-badge.status-completed {
	background: linear-gradient(135deg, #e0f2fe, #bae6fd);
	color: #0c4a6e;
	border: 1px solid #22d3ee;
}

.status-badge.status-cancelled {
	background: linear-gradient(135deg, #fee2e2, #fecaca);
	color: #991b1b;
	border: 1px solid #f87171;
}

.order-actions {
	flex-shrink: 0;
}

.view-order-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.25rem;
	background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
	color: white !important;
	text-decoration: none !important;
	border-radius: var(--radius-base);
	font-size: 0.875rem;
	font-weight: 600;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
	position: relative;
	overflow: hidden;
}

.view-order-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.view-order-btn:hover {
	background: linear-gradient(135deg, var(--primary-dark), #1e40af);
	color: white;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.view-order-btn:hover::before {
	left: 100%;
}

/* Responsive adjustments for order list */
@media (max-width: 768px) {
	.query-order-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
		padding: 1rem;
	}
	
	.order-info {
		width: 100%;
	}
	
	.order-status {
		align-self: flex-start;
	}
	
	.order-actions {
		align-self: flex-end;
		width: 100%;
		text-align: right;
	}
	
	.view-order-btn {
		padding: 0.625rem 1rem;
		font-size: 0.8rem;
	}
}

@media (max-width: 480px) {
	.query-results-title {
		font-size: 1.25rem;
		margin-bottom: 1rem;
	}
	
	.query-order-item {
		padding: 0.875rem;
	}
	
	.order-number {
		font-size: 1rem;
	}
	
	.order-service {
		font-size: 0.9rem;
	}
	
	.order-date {
		font-size: 0.8rem;
	}
}
