/**
 * Contact Page Styles
 *
 * @package Errand
 */

/* Hero Section */
.contact-hero {
	background: linear-gradient(135deg, #667eea 0%, #10b981 100%);
	color: #fff;
	padding: 80px 0 70px;
	position: relative;
}

.contact-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(1000px 300px at 20% 0%, rgba(255,255,255,.12), transparent 60%),
		radial-gradient(800px 250px at 80% 10%, rgba(255,255,255,.12), transparent 60%);
	pointer-events: none;
}

.contact-hero-content {
	position: relative;
	text-align: center;
}

.contact-title {
	font-size: 2.75rem;
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 12px;
	color: white;
}

.contact-subtitle {
	font-size: 1.125rem;
	line-height: 1.7;
	opacity: .95;
	max-width: 760px;
	margin: 0 auto;
	color: white;
}

/* Content Wrapper */
.contact-content-wrapper {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 60px;
	margin: 60px 0;
}

/* Section Titles */
.section-title {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0 0 24px;
	color: #1e293b;
}

/* Contact Information */
.contact-info-section {
	background: #fff;
	border-radius: 16px;
	padding: 32px;
	box-shadow: 0 4px 20px rgba(0,0,0,.08);
	border: 1px solid #e2e8f0;
}

.contact-methods {
	margin-bottom: 32px;
}

.contact-method {
	display: flex;
	align-items: center;
	margin-bottom: 24px;
	padding: 20px;
	background: #f8fafc;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	transition: all 0.3s ease;
}

.contact-method:hover {
	background: #f1f5f9;
	border-color: #cbd5e1;
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0,0,0,.1);
}

.contact-icon {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	background: linear-gradient(135deg, #667eea, #10b981);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 16px;
	flex-shrink: 0;
}

.contact-icon i {
	font-size: 1.25rem;
}

.contact-details h3 {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 4px;
	color: #374151;
}

.contact-details p {
	margin: 0;
	color: #6b7280;
}

.contact-details a {
	color: #2563eb !important;
	text-decoration: none;
	transition: color 0.3s ease;
}

.contact-details a:hover {
	color: #1d4ed8 !important;
	text-decoration: underline;
}

/* Quick Actions */
.quick-actions {
	border-top: 1px solid #e2e8f0;
	padding-top: 24px;
}

.quick-actions h3 {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0 0 16px;
	color: #374151;
}

.action-buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.action-buttons .btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border-radius: 8px;
	font-weight: 500;
	text-decoration: none !important;
	transition: all 0.3s ease;
}

.action-buttons .btn i {
	margin-right: 8px;
	font-size: 0.875rem;
}

.action-buttons .btn-primary {
	background: linear-gradient(135deg, #667eea, #10b981);
	color: white !important;
	border: none;
}

.action-buttons .btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
	color: white !important;
}

.action-buttons .btn-outline {
	color: #374151 !important;
	border: 1px solid #d1d5db;
	background: white;
}

.action-buttons .btn-outline:hover {
	color: white !important;
	background: #374151;
	border-color: #374151;
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(55, 65, 81, 0.2);
}

/* Contact Form */
.contact-form-section {
	background: #fff;
	border-radius: 16px;
	padding: 32px;
	box-shadow: 0 4px 20px rgba(0,0,0,.08);
	border: 1px solid #e2e8f0;
}

.form-description {
	color: #6b7280;
	margin-bottom: 24px;
	line-height: 1.6;
}

.contact-form {
	max-width: none;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

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

.form-label {
	display: block;
	font-weight: 500;
	margin-bottom: 6px;
	color: #374151;
	font-size: 0.875rem;
}

.required {
	color: #ef4444;
	margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 0.875rem;
	transition: all 0.3s ease;
	background: #fff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-checkbox {
	display: flex;
	align-items: flex-start;
	cursor: pointer;
	margin-bottom: 0;
}

.form-checkbox input[type="checkbox"] {
	display: none;
}

.checkmark {
	width: 20px;
	height: 20px;
	border: 2px solid #d1d5db;
	border-radius: 4px;
	margin-right: 12px;
	margin-top: 2px;
	position: relative;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.form-checkbox input[type="checkbox"]:checked + .checkmark {
	background: #2563eb;
	border-color: #2563eb;
}

.form-checkbox input[type="checkbox"]:checked + .checkmark::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 2px;
	width: 6px;
	height: 10px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.checkbox-text {
	font-size: 0.875rem;
	color: #6b7280;
	line-height: 1.5;
}

.form-error {
	color: #ef4444;
	font-size: 0.75rem;
	margin-top: 4px;
	display: none;
}

.form-error.show {
	display: block;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
	border-color: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-actions {
	margin-top: 24px;
}

.btn-large {
	padding: 14px 32px;
	font-size: 1rem;
	font-weight: 600;
	width: 100%;
}

.btn-loading {
	display: none;
}

.btn.loading .btn-text {
	display: none;
}

.btn.loading .btn-loading {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* Form Messages */
.form-messages {
	margin-top: 20px;
	padding: 16px;
	border-radius: 8px;
	border: 1px solid;
}

.form-messages.success {
	background: #f0fdf4;
	border-color: #22c55e;
	color: #166534;
}

.form-messages.error {
	background: #fef2f2;
	border-color: #ef4444;
	color: #dc2626;
}

.message-content {
	font-weight: 500;
}

/* Responsive Design */
@media (max-width: 992px) {
	.contact-content-wrapper {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	
	.contact-info-section,
	.contact-form-section {
		padding: 24px;
	}
}

@media (max-width: 768px) {
	.contact-title {
		font-size: 2.1rem;
	}
	
	.contact-hero {
		padding: 64px 0 56px;
	}
	
	.form-row {
		grid-template-columns: 1fr;
		gap: 0;
	}
	
	.action-buttons {
		flex-direction: column;
	}
}

@media (max-width: 576px) {
	.contact-info-section,
	.contact-form-section {
		padding: 20px;
		margin: 0 -15px;
		border-radius: 0;
	}
	
	.contact-method {
		flex-direction: column;
		text-align: center;
		padding: 16px;
	}
	
	.contact-icon {
		margin-right: 0;
		margin-bottom: 12px;
	}
}
