/* ESP Inspection Booking Modal */

.esp-ib-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(15, 23, 42, 0.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.esp-ib-overlay.esp-ib-overlay--open {
	opacity: 1;
	visibility: visible;
}

.esp-ib-modal {
	position: relative;
	width: 100%;
	max-width: 900px;
	max-height: 95vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	padding: 32px 36px 28px;
	font-family: "Poppinsregular", "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
	color: #1e293b;
}

.esp-ib-close {
	position: absolute;
	top: 16px;
	right: 20px;
	width: 32px;
	height: 32px;
	border: none;
	background: none;
	font-size: 24px;
	line-height: 1;
	color: #94a3b8;
	cursor: pointer;
	padding: 0;
	transition: color 0.15s;
}

.esp-ib-close:hover {
	color: #334155;
}

/* Header */
.esp-ib-header {
	text-align: center;
	margin-bottom: 24px;
	padding-right: 30px;
}

.esp-ib-header h2 {
	margin: 0 0 8px;
	font-family: "Poppinssemibold", "Poppins", sans-serif;
	font-size: 24px;
	font-weight: 600;
	color: #0f172a;
}

.esp-ib-subtitle {
	margin: 0;
	font-size: 14px;
	color: #64748b;
	line-height: 1.5;
}

/* Stepper */
.esp-ib-stepper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin-bottom: 28px;
}

.esp-ib-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.esp-ib-step__circle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e2e8f0;
	color: #94a3b8;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.2s, color 0.2s;
}

.esp-ib-step__label {
	font-size: 13px;
	color: #94a3b8;
	font-weight: 500;
	transition: color 0.2s;
}

.esp-ib-step--active .esp-ib-step__circle,
.esp-ib-step--done .esp-ib-step__circle {
	background: #2276D6;
	color: #fff;
}

.esp-ib-step--active .esp-ib-step__label,
.esp-ib-step--done .esp-ib-step__label {
	color: #2276D6;
}

.esp-ib-stepper__line {
	width: 80px;
	height: 2px;
	background: #e2e8f0;
	margin: 0 12px;
	margin-bottom: 22px;
	transition: background 0.2s;
}

.esp-ib-stepper__line--active {
	background: #2276D6;
}

/* Panels */
.esp-ib-panel {
	display: none;
}

.esp-ib-panel--active {
	display: block;
}

.esp-ib-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	background: #f0f5ff;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 20px;
}

.esp-ib-step1-right {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.esp-ib-price-preview {
	background: #e8f0fe;
	border-radius: 12px;
	padding: 28px 20px;
	text-align: center;
	transition: background 0.2s ease;
}

.esp-ib-price-preview strong {
	display: block;
	font-family: "Poppinssemibold", "Poppins", sans-serif;
	font-size: 36px;
	font-weight: 600;
	color: #2276D6;
	line-height: 1.2;
	margin-bottom: 8px;
}

.esp-ib-price-preview p {
	margin: 0;
	font-size: 13px;
	color: #64748b;
	line-height: 1.4;
}

/* Cards */
.esp-ib-card {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.esp-ib-card h3 {
	margin: 0 0 16px;
	font-family: "Poppinssemibold", "Poppins", sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #0f172a;
}

.esp-ib-card__header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}

.esp-ib-card__header h3 {
	margin: 0;
}

.esp-ib-icon {
	width: 20px;
	height: 20px;
	color: #2276D6;
	flex-shrink: 0;
}

/* Fields */
.esp-ib-field {
	margin-bottom: 16px;
}

.esp-ib-field:last-child {
	margin-bottom: 0;
}

.esp-ib-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 500;
	color: #475569;
}

.esp-ib-field select,
.esp-ib-input-wrap input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	color: #1e293b;
	background: #fff;
	transition: border-color 0.15s;
	box-sizing: border-box;
}

.esp-ib-field select:focus,
.esp-ib-input-wrap input:focus {
	outline: none;
	border-color: #2276D6;
	box-shadow: 0 0 0 3px rgba(34, 118, 214, 0.1);
}

.esp-ib-input-wrap {
	position: relative;
}

.esp-ib-input-wrap svg {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	color: #94a3b8;
	pointer-events: none;
}

.esp-ib-input-wrap input {
	padding-left: 38px;
}

/* Radio options */
.esp-ib-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.esp-ib-options--inline {
	flex-direction: row;
}

.esp-ib-option {
	display: block;
	cursor: pointer;
}

.esp-ib-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.esp-ib-option span {
	display: block;
	padding: 10px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 14px;
	color: #334155;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.esp-ib-option input:checked + span {
	border-color: #2276D6;
	background: #eff6ff;
	color: #2276D6;
	font-weight: 500;
}

.esp-ib-options--inline .esp-ib-option {
	flex: 1;
}

/* Summary */
.esp-ib-summary {
	margin: 0 0 16px;
}

.esp-ib-summary__row {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid #f1f5f9;
	font-size: 14px;
}

.esp-ib-summary__row dt {
	color: #64748b;
	font-weight: 400;
}

.esp-ib-summary__row dd {
	margin: 0;
	color: #1e293b;
	font-weight: 500;
}

.esp-ib-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	font-size: 15px;
}

.esp-ib-total strong {
	font-size: 22px;
	color: #2276D6;
	font-family: "Poppinssemibold", "Poppins", sans-serif;
}

.esp-ib-included {
	background: #eff6ff;
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 12px;
	color: #475569;
	line-height: 1.5;
}

/* Payment gateway area */
.esp-ib-gateway {
	border: 2px dashed #cbd5e1;
	border-radius: 10px;
	padding: 28px 20px;
	text-align: center;
	margin-bottom: 16px;
}

.esp-ib-gateway svg {
	width: 36px;
	height: 36px;
	color: #94a3b8;
	margin-bottom: 8px;
}

.esp-ib-gateway p {
	margin: 0 0 4px;
	font-size: 14px;
	color: #334155;
}

.esp-ib-gateway span {
	font-size: 12px;
	color: #94a3b8;
}

.esp-ib-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 12px;
	color: #16a34a;
	margin-bottom: 12px;
}

.esp-ib-secure svg {
	width: 14px;
	height: 14px;
}

.esp-ib-methods {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 20px;
}

.esp-ib-methods span {
	padding: 4px 10px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	font-size: 11px;
	color: #64748b;
	font-weight: 500;
}

.esp-ib-terms {
	text-align: center;
	font-size: 11px;
	color: #94a3b8;
	margin: 12px 0 0;
}

.esp-ib-terms a {
	color: #2276D6;
	text-decoration: underline;
}

.esp-ib-terms a:hover {
	color: #1a67be;
}

/* Buttons */
.esp-ib-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s, opacity 0.15s;
	text-decoration: none;
}

.esp-ib-btn--primary {
	background: #2276D6;
	color: #fff;
}

.esp-ib-btn--primary:hover {
	background: #1a67be;
	color: #fff;
}

.esp-ib-btn--primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.esp-ib-btn--outline {
	background: #fff;
	color: #2276D6;
	border: 1px solid #2276D6;
}

.esp-ib-btn--outline:hover {
	background: #eff6ff;
}

.esp-ib-btn--full {
	width: 100%;
}

.esp-ib-footer {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 12px;
}

/* Error */
.esp-ib-error {
	color: #dc2626;
	font-size: 13px;
	padding: 8px 12px;
	background: #fef2f2;
	border-radius: 6px;
	margin-bottom: 8px;
}

.esp-ib-footer .esp-ib-error {
	flex: 1;
	margin-bottom: 0;
}

/* Success */
.esp-ib-success {
	text-align: center;
	padding: 20px 0;
}

.esp-ib-success__icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	background: #dcfce7;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.esp-ib-success__icon svg {
	width: 32px;
	height: 32px;
	color: #16a34a;
}

.esp-ib-success h3 {
	margin: 0 0 6px;
	font-size: 22px;
	font-family: "Poppinssemibold", "Poppins", sans-serif;
	color: #0f172a;
}

.esp-ib-success__sub {
	margin: 0 0 24px;
	color: #64748b;
	font-size: 14px;
}

.esp-ib-booking-id {
	background: #eff6ff;
	border-radius: 10px;
	padding: 16px 20px;
	margin-bottom: 16px;
}

.esp-ib-booking-id span {
	display: block;
	font-size: 12px;
	color: #64748b;
	margin-bottom: 4px;
}

.esp-ib-booking-id strong {
	font-size: 20px;
	color: #2276D6;
	font-family: "Poppinssemibold", "Poppins", sans-serif;
	letter-spacing: 0.5px;
}

.esp-ib-success__email {
	font-size: 13px;
	color: #64748b;
	margin-bottom: 24px;
}

.esp-ib-success__actions {
	display: flex;
	gap: 12px;
	justify-content: center;
}

/* Trigger button default style */
.esp-ib-trigger {
	background: #2276D6;
	color: #fff;
	border: none;
	padding: 14px 28px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.15s;
}

.esp-ib-trigger:hover {
	background: #1a67be;
}

/* Responsive */
@media (max-width: 768px) {
	.esp-ib-modal {
		padding: 24px 20px 20px;
	}

	.esp-ib-content {
		grid-template-columns: 1fr;
	}

	.esp-ib-footer {
		flex-direction: column;
	}

	.esp-ib-footer .esp-ib-btn {
		width: 100%;
	}

	.esp-ib-success__actions {
		flex-direction: column;
	}

	.esp-ib-options--inline {
		flex-direction: column;
	}
}
