/* ==========================================================================
   Laptop & Desktop Computer Service Request Popup Widget Styles
   Prefix: .mtw-dap-
   ========================================================================== */

/* Main Wrapper & Trigger Button */
.mtw-dap-wrapper {
	font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	display: inline-block;
}

.mtw-dap-trigger-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 32px;
	background: #0D6EFD;
	color: #FFFFFF;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-weight: 700;
	font-size: 15px;
	border-radius: 50px;
	border: none;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	outline: none;
	text-decoration: none;
}

.mtw-dap-trigger-btn:hover {
	background: #0B5ED7;
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(13, 110, 253, 0.45);
	color: #FFFFFF;
}

/* Modal Overlay Backdrop */
.mtw-dap-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	overflow-y: auto;
}

.mtw-dap-modal-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

/* Modal Container Box - Clean White Modern Theme */
.mtw-dap-modal-box {
	position: relative;
	background: #FFFFFF;
	border-radius: 24px;
	padding: 32px 28px;
	max-width: 520px;
	width: 100%;
	box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.8);
	color: #0F172A;
	box-sizing: border-box;
	transform: scale(0.94) translateY(15px);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	max-height: 92vh;
	overflow-y: auto;
}

.mtw-dap-modal-overlay.is-visible .mtw-dap-modal-box {
	transform: scale(1) translateY(0);
}

/* Scrollbar for Modal Box */
.mtw-dap-modal-box::-webkit-scrollbar {
	width: 5px;
}
.mtw-dap-modal-box::-webkit-scrollbar-track {
	background: #F1F5F9;
	border-radius: 4px;
}
.mtw-dap-modal-box::-webkit-scrollbar-thumb {
	background: #CBD5E1;
	border-radius: 4px;
}

/* Close Button × */
.mtw-dap-close-btn {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #F1F5F9;
	color: #64748B;
	border: none;
	font-size: 20px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	outline: none;
	z-index: 10;
}

.mtw-dap-close-btn:hover {
	background: #E2E8F0;
	color: #0F172A;
	transform: rotate(90deg);
}

/* Top Header Computer Badge Icon */
.mtw-dap-header-icon-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 14px;
}

.mtw-dap-computer-badge {
	width: 54px;
	height: 54px;
	border-radius: 16px;
	background: linear-gradient(135deg, #0D6EFD 0%, #0A58CA 100%);
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 20px rgba(13, 110, 253, 0.28);
}

/* Header Title & Subtitle */
.mtw-dap-header-text {
	text-align: center;
	margin-bottom: 20px;
}

.mtw-dap-title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-weight: 800;
	font-size: 24px;
	color: #0F172A;
	margin: 0 0 6px 0;
	line-height: 1.25;
	letter-spacing: -0.4px;
}

.mtw-dap-subtitle {
	font-size: 13.5px;
	line-height: 1.5;
	color: #64748B;
	margin: 0;
}

/* 2-Step Progress Indicator */
.mtw-dap-progress-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 14px;
	padding: 10px 16px;
	margin-bottom: 22px;
	gap: 12px;
}

.mtw-dap-step-indicator {
	display: flex;
	align-items: center;
	gap: 8px;
	opacity: 0.55;
	transition: all 0.3s ease;
}

.mtw-dap-step-indicator.active,
.mtw-dap-step-indicator.completed {
	opacity: 1;
}

.mtw-dap-step-num {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #E2E8F0;
	color: #475569;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.mtw-dap-step-indicator.active .mtw-dap-step-num {
	background: #0D6EFD;
	color: #FFFFFF;
	box-shadow: 0 3px 10px rgba(13, 110, 253, 0.3);
}

.mtw-dap-step-indicator.completed .mtw-dap-step-num {
	background: #10B981;
	color: #FFFFFF;
}

.mtw-dap-step-label {
	font-size: 12.5px;
	font-weight: 700;
	color: #334155;
	white-space: nowrap;
}

.mtw-dap-step-indicator.active .mtw-dap-step-label {
	color: #0D6EFD;
}

.mtw-dap-step-divider {
	flex: 1;
	height: 2px;
	background: #E2E8F0;
	max-width: 35px;
}

/* Form Layout */
.mtw-dap-form {
	display: flex;
	flex-direction: column;
}

.mtw-dap-step-content {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.mtw-dap-field-group {
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
}

.mtw-dap-label {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-weight: 700;
	font-size: 13.5px;
	color: #1E293B;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.mtw-dap-req {
	color: #EF4444;
}

.mtw-dap-optional {
	font-size: 12px;
	font-weight: 500;
	color: #94A3B8;
	margin-left: 4px;
}

/* Step 1: Device Selection Radio Cards */
.mtw-dap-radio-hidden {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.mtw-dap-device-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.mtw-dap-device-card {
	position: relative;
	cursor: pointer;
	user-select: none;
}

.mtw-dap-card-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16px 12px;
	background: #F8FAFC;
	border: 1.5px solid #E2E8F0;
	border-radius: 14px;
	text-align: center;
	transition: all 0.25s ease;
	position: relative;
}

.mtw-dap-card-icon {
	color: #64748B;
	margin-bottom: 8px;
	transition: color 0.25s ease, transform 0.25s ease;
}

.mtw-dap-card-title {
	font-size: 14px;
	font-weight: 700;
	color: #334155;
}

.mtw-dap-card-check {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #CBD5E1;
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: scale(0.6);
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mtw-dap-device-card:hover .mtw-dap-card-inner {
	border-color: #94A3B8;
	background: #F1F5F9;
}

.mtw-dap-device-card.is-selected .mtw-dap-card-inner,
.mtw-dap-device-card.active .mtw-dap-card-inner {
	border-color: #0D6EFD;
	background: #EFF6FF;
	box-shadow: 0 4px 14px rgba(13, 110, 253, 0.15);
}

.mtw-dap-device-card.is-selected .mtw-dap-card-icon,
.mtw-dap-device-card.active .mtw-dap-card-icon {
	color: #0D6EFD;
	transform: scale(1.08);
}

.mtw-dap-device-card.is-selected .mtw-dap-card-title,
.mtw-dap-device-card.active .mtw-dap-card-title {
	color: #0D6EFD;
}

.mtw-dap-device-card.is-selected .mtw-dap-card-check,
.mtw-dap-device-card.active .mtw-dap-card-check {
	background: #0D6EFD;
	opacity: 1;
	transform: scale(1);
}

/* Step 1: Problem Selection Grid */
.mtw-dap-problem-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.mtw-dap-problem-card {
	position: relative;
	cursor: pointer;
	user-select: none;
}

.mtw-dap-prob-inner {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 14px;
	background: #F8FAFC;
	border: 1.5px solid #E2E8F0;
	border-radius: 12px;
	transition: all 0.2s ease;
}

.mtw-dap-prob-icon {
	color: #64748B;
	display: flex;
	align-items: center;
	flex-shrink: 0;
	transition: color 0.2s ease;
}

.mtw-dap-prob-title {
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	line-height: 1.25;
}

.mtw-dap-problem-card:hover .mtw-dap-prob-inner {
	border-color: #94A3B8;
	background: #F1F5F9;
}

.mtw-dap-problem-card.is-selected .mtw-dap-prob-inner,
.mtw-dap-problem-card.active .mtw-dap-prob-inner {
	border-color: #0D6EFD;
	background: #EFF6FF;
	box-shadow: 0 2px 10px rgba(13, 110, 253, 0.12);
}

.mtw-dap-problem-card.is-selected .mtw-dap-prob-icon,
.mtw-dap-problem-card.active .mtw-dap-prob-icon {
	color: #0D6EFD;
}

.mtw-dap-problem-card.is-selected .mtw-dap-prob-title,
.mtw-dap-problem-card.active .mtw-dap-prob-title {
	color: #0A58CA;
	font-weight: 700;
}

/* Inputs, Textareas & Errors */
.mtw-dap-input,
.mtw-dap-textarea {
	width: 100%;
	padding: 12px 16px;
	background: #F8FAFC;
	border: 1.5px solid #E2E8F0;
	border-radius: 12px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #0F172A;
	outline: none;
	transition: all 0.25s ease;
	box-sizing: border-box;
}

.mtw-dap-input::placeholder,
.mtw-dap-textarea::placeholder {
	color: #94A3B8;
}

.mtw-dap-input:focus,
.mtw-dap-textarea:focus {
	border-color: #0D6EFD;
	background: #FFFFFF;
	box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.mtw-dap-input.is-invalid,
.mtw-dap-textarea.is-invalid {
	border-color: #EF4444 !important;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
	background: #FEF2F2;
}

.mtw-dap-textarea {
	resize: vertical;
	min-height: 75px;
}

.mtw-dap-error-msg {
	font-size: 12px;
	font-weight: 600;
	color: #EF4444;
	margin-top: 6px;
}

/* Navigation Buttons */
.mtw-dap-btn,
.mtw-dap-next-btn {
	width: 100%;
	padding: 14px 28px;
	background: #0D6EFD;
	color: #FFFFFF;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-weight: 700;
	font-size: 15px;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: 0 6px 18px rgba(13, 110, 253, 0.28);
	transition: all 0.25s ease;
	outline: none;
	margin-top: 6px;
}

.mtw-dap-btn:hover,
.mtw-dap-next-btn:hover {
	background: #0B5ED7;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(13, 110, 253, 0.4);
}

.mtw-dap-nav-buttons {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 6px;
}

.mtw-dap-btn-secondary,
.mtw-dap-back-btn {
	padding: 14px 24px;
	background: #F1F5F9;
	color: #475569;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-weight: 700;
	font-size: 14px;
	border: 1px solid #CBD5E1;
	border-radius: 50px;
	cursor: pointer;
	transition: all 0.25s ease;
	outline: none;
	white-space: nowrap;
}

.mtw-dap-back-btn:hover {
	background: #E2E8F0;
	color: #0F172A;
}

.mtw-dap-submit-btn {
	flex: 1;
	padding: 14px 24px;
	background: #25D366;
	color: #FFFFFF;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-weight: 700;
	font-size: 15px;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
	transition: all 0.25s ease;
	outline: none;
}

.mtw-dap-submit-btn:hover {
	background: #20BD5A;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
}

.mtw-dap-wa-icon {
	fill: currentColor;
}

/* Success Confirmation State */
.mtw-dap-success-state {
	text-align: center;
	padding: 20px 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.mtw-dap-success-icon {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: #D1FAE5;
	color: #10B981;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.mtw-dap-success-title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 22px;
	font-weight: 800;
	color: #0F172A;
	margin: 0 0 8px 0;
}

.mtw-dap-success-msg {
	font-size: 14px;
	line-height: 1.5;
	color: #64748B;
	margin: 0 0 24px 0;
	max-width: 380px;
}

.mtw-dap-reset-btn {
	padding: 12px 32px;
	background: #0F172A;
	color: #FFFFFF;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-weight: 700;
	font-size: 14px;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.mtw-dap-reset-btn:hover {
	background: #334155;
}

/* Responsive Styles */
@media (max-width: 576px) {
	.mtw-dap-modal-box {
		padding: 26px 18px 22px 18px;
		border-radius: 20px;
	}

	.mtw-dap-title {
		font-size: 20px;
	}

	.mtw-dap-problem-grid {
		grid-template-columns: 1fr;
	}

	.mtw-dap-progress-bar {
		padding: 8px 12px;
		gap: 6px;
	}

	.mtw-dap-step-label {
		font-size: 11.5px;
	}

	.mtw-dap-nav-buttons {
		flex-direction: column-reverse;
		gap: 8px;
	}

	.mtw-dap-back-btn,
	.mtw-dap-submit-btn {
		width: 100%;
	}
}
