/* ════════════════════════════════════════════════════════════
   Axis East Maintenance Module CSS
   Design Tokens & Responsive Layout
   ════════════════════════════════════════════════════════════ */

.ale-maintenance-wrapper {
	max-width: 900px;
	margin: 40px auto;
	padding: 0 20px;
	font-family: 'Cairo', system-ui, -apple-system, sans-serif;
	color: #222222;
	direction: rtl;
}

/* ── Hero Header ── */
.ale-maint-hero {
	text-align: center;
	margin-bottom: 32px;
}

.ale-maint-badge {
	display: inline-block;
	background: #e8f3ed;
	color: #0d7a4b;
	font-size: 0.875rem;
	font-weight: 700;
	padding: 6px 16px;
	border-radius: 50px;
	margin-bottom: 12px;
}

.ale-maint-hero-title {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 800;
	color: #093f29;
	margin: 0 0 10px 0;
	line-height: 1.3;
}

.ale-maint-hero-desc {
	font-size: 1.05rem;
	color: #5f6761;
	margin: 0;
	line-height: 1.6;
}

/* ── Main Card ── */
.ale-maint-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	padding: 32px;
	margin-bottom: 40px;
}

/* ── Progress Bar ── */
.ale-maint-progress-wrap {
	margin-bottom: 28px;
}

.ale-maint-progress-track {
	height: 8px;
	background: #f1f5f9;
	border-radius: 50px;
	overflow: hidden;
	margin-bottom: 8px;
}

.ale-maint-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #0d7a4b 0%, #3c9b6c 100%);
	border-radius: 50px;
	transition: width 0.4s ease;
}

.ale-maint-step-indicator {
	font-size: 0.85rem;
	font-weight: 700;
	color: #0d7a4b;
	text-align: left;
}

/* ── Form Body & Steps ── */
.ale-maint-step-title {
	font-size: 1.35rem;
	font-weight: 800;
	color: #222222;
	margin: 0 0 20px 0;
}

/* Options Grid (Cards) */
.ale-maint-options-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.ale-maint-option-card {
	background: #ffffff;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	cursor: pointer;
	transition: all 0.25s ease;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.ale-maint-option-card:hover {
	border-color: #3c9b6c;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(13, 122, 75, 0.08);
}

.ale-maint-option-card.selected {
	border-color: #0d7a4b;
	background: #f0fdf4;
	box-shadow: 0 0 0 3px rgba(13, 122, 75, 0.15);
}

.ale-maint-option-icon {
	font-size: 2rem;
	margin-bottom: 4px;
}

.ale-maint-option-label {
	font-size: 1rem;
	font-weight: 700;
	color: #1e293b;
}

/* Options Chips Grid */
.ale-maint-chips-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
}

.ale-maint-chip {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 50px;
	padding: 10px 22px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ale-maint-chip:hover {
	border-color: #0d7a4b;
	color: #0d7a4b;
	background: #ffffff;
}

.ale-maint-chip.selected {
	background: #0d7a4b;
	color: #ffffff;
	border-color: #0d7a4b;
}

/* Inputs & Form Fields */
.ale-maint-field-group {
	margin-bottom: 20px;
}

.ale-maint-field-group label {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	color: #334155;
	margin-bottom: 6px;
}

.ale-maint-input,
.ale-maint-textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1.5px solid #cbd5e1;
	border-radius: 10px;
	font-size: 0.95rem;
	font-family: inherit;
	color: #1e293b;
	background: #ffffff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.ale-maint-input:focus,
.ale-maint-textarea:focus {
	outline: none;
	border-color: #0d7a4b;
	box-shadow: 0 0 0 3px rgba(13, 122, 75, 0.12);
}

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

/* File Upload Zone */
.ale-maint-upload-zone {
	border: 2px dashed #cbd5e1;
	border-radius: 12px;
	padding: 28px;
	text-align: center;
	background: #f8fafc;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-bottom: 20px;
}

.ale-maint-upload-zone:hover {
	border-color: #0d7a4b;
	background: #f0fdf4;
}

.ale-maint-upload-icon {
	font-size: 2.2rem;
	margin-bottom: 8px;
}

.ale-maint-upload-text {
	font-size: 0.95rem;
	font-weight: 700;
	color: #334155;
	margin-bottom: 4px;
}

.ale-maint-upload-subtext {
	font-size: 0.8rem;
	color: #64748b;
}

.ale-maint-file-list {
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ale-maint-file-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 0.85rem;
}

.ale-maint-file-remove {
	color: #ef4444;
	cursor: pointer;
	font-weight: 700;
	margin-right: 10px;
}

/* ── Footer Actions ── */
.ale-maint-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid #f1f5f9;
}

.ale-maint-btn {
	padding: 12px 28px;
	border-radius: 10px;
	font-size: 0.95rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
}

.ale-maint-btn-primary,
.ale-maint-btn-next {
	background: #0d7a4b;
	color: #ffffff;
}

.ale-maint-btn-next {
	margin-inline-start: auto;
}

[dir="rtl"] .ale-maint-btn-next,
.ale-maintenance-wrapper[dir="rtl"] .ale-maint-btn-next {
	margin-right: auto;
	margin-left: 0;
}

.ale-maint-btn-primary:hover,
.ale-maint-btn-next:hover {
	background: #093f29;
	box-shadow: 0 4px 12px rgba(9, 63, 41, 0.2);
}

.ale-maint-btn-prev {
	background: #f1f5f9;
	color: #475569;
}

.ale-maint-btn-prev:hover {
	background: #e2e8f0;
	color: #1e293b;
}

.ale-maint-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ── Confirmation View ── */
.ale-maint-success-box {
	text-align: center;
	padding: 20px 0;
}

.ale-maint-success-icon {
	font-size: 3.5rem;
	margin-bottom: 16px;
}

.ale-maint-ticket-badge {
	display: inline-block;
	background: #ecfdf5;
	border: 2px solid #10b981;
	color: #047857;
	font-size: 1.4rem;
	font-weight: 800;
	padding: 10px 24px;
	border-radius: 12px;
	margin: 16px 0 24px 0;
	letter-spacing: 1px;
}

.ale-maint-whatsapp-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #25d366;
	color: #ffffff;
	font-size: 1.05rem;
	font-weight: 700;
	padding: 14px 32px;
	border-radius: 12px;
	text-decoration: none;
	transition: all 0.25s ease;
	box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.ale-maint-whatsapp-btn:hover {
	background: #1da851;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
	color: #ffffff;
}

/* ── Lookup Box ── */
.ale-maint-lookup-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 24px;
}

.ale-maint-lookup-box h3 {
	font-size: 1.1rem;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 16px 0;
}

.ale-maint-lookup-form {
	display: flex;
	gap: 12px;
}

.ale-maint-lookup-form input {
	flex: 1;
	padding: 10px 16px;
	border: 1.5px solid #cbd5e1;
	border-radius: 10px;
	font-size: 0.95rem;
}

.ale-maint-lookup-result {
	margin-top: 16px;
	padding: 16px;
	border-radius: 10px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
}

@media (max-width: 640px) {
	.ale-maint-card {
		padding: 20px;
	}
	.ale-maint-options-grid {
		grid-template-columns: 1fr;
	}
	.ale-maint-lookup-form {
		flex-direction: column;
	}
}

/* ── Floating Chat Modal Embedded Styles ── */
.axiseast-chat-widget {
	width: 440px !important;
	max-width: calc(100vw - 30px) !important;
	height: 580px !important;
	max-height: calc(100vh - 120px) !important;
}

.axiseast-chat-body .ale-maintenance-wrapper {
	margin: 0;
	padding: 0;
	max-width: 100%;
}

.axiseast-chat-body .ale-maint-hero,
.axiseast-chat-body .ale-maint-lookup-box {
	display: none !important;
}

.axiseast-chat-body .ale-maint-card {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
	margin-bottom: 0;
}

.axiseast-chat-body .ale-maint-step-title {
	font-size: 1.1rem;
	color: #ffffff;
	margin-bottom: 14px;
}

.axiseast-chat-body .ale-maint-options-grid {
	grid-template-columns: 1fr;
	gap: 10px;
}

.axiseast-chat-body .ale-maint-option-card {
	padding: 12px 14px;
	flex-direction: row;
	justify-content: flex-start;
	gap: 12px;
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.15);
	color: #ffffff;
}

.axiseast-chat-body .ale-maint-option-card:hover {
	background: rgba(13, 122, 75, 0.25);
	border-color: #10b981;
}

.axiseast-chat-body .ale-maint-option-card.selected {
	background: rgba(13, 122, 75, 0.35);
	border-color: #10b981;
	box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.axiseast-chat-body .ale-maint-option-label {
	color: #ffffff;
	font-size: 0.92rem;
	text-align: right;
}

.axiseast-chat-body .ale-maint-field-group label {
	color: #e2e8f0;
}

.axiseast-chat-body .ale-maint-input,
.axiseast-chat-body .ale-maint-textarea {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.2);
	color: #ffffff;
}

.axiseast-chat-body .ale-maint-input:focus,
.axiseast-chat-body .ale-maint-textarea:focus {
	background: rgba(255, 255, 255, 0.12);
	border-color: #10b981;
}

.axiseast-chat-body .ale-maint-upload-zone {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.2);
	padding: 18px;
}

.axiseast-chat-body .ale-maint-upload-text {
	color: #e2e8f0;
	font-size: 0.85rem;
}

.axiseast-chat-body .ale-maint-upload-subtext {
	color: #94a3b8;
}

.axiseast-chat-body .ale-maint-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin-top: 20px;
	padding-top: 16px;
}
