/* TrustZone Smart Booking — Frontend Responsive Stylesheet */
.tzb-wrapper {
	--tzb-primary: #0B3C5D;
	--tzb-primary-dark: #072840;
	--tzb-accent: #F27405;
	--tzb-accent-hover: #d96400;
	--tzb-accent-soft: #fff4e8;
	--tzb-bg: #f8fafc;
	--tzb-card: #ffffff;
	--tzb-border: #dce3ec;
	--tzb-text: #1e293b;
	--tzb-muted: #64748b;
	--tzb-radius: 14px;
	--tzb-shadow: 0 12px 32px rgba(11, 60, 93, 0.08);

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	color: var(--tzb-text);
	max-width: 900px;
	margin: 24px auto;
	padding: 0 12px;
	box-sizing: border-box;
	direction: ltr;
	text-align: left;
}

.tzb-wrapper *,
.tzb-wrapper *::before,
.tzb-wrapper *::after {
	box-sizing: border-box;
}

.tzb-card {
	background: var(--tzb-card);
	border: 1px solid var(--tzb-border);
	border-radius: var(--tzb-radius);
	box-shadow: var(--tzb-shadow);
	overflow: hidden;
}

/* Header & Stepper */
.tzb-header {
	background: linear-gradient(135deg, var(--tzb-primary) 0%, #0e4f7a 100%);
	color: #ffffff;
	padding: 32px 32px 26px;
}

.tzb-header-badge {
	display: inline-block;
	background: rgba(242, 116, 5, 0.18);
	border: 1px solid rgba(242, 116, 5, 0.5);
	color: #ffd5b0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.4px;
	padding: 5px 12px;
	border-radius: 999px;
	margin-bottom: 12px;
}

.tzb-title {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.25;
}

.tzb-subtitle {
	margin: 0 0 24px;
	font-size: 14.5px;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.5;
}

.tzb-stepper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.tzb-step {
	display: flex;
	align-items: center;
	gap: 10px;
	opacity: 0.6;
	transition: opacity 0.2s ease;
}

.tzb-step.is-active,
.tzb-step.is-done {
	opacity: 1;
}

.tzb-step-num {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	border: 2px solid rgba(255, 255, 255, 0.4);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	flex-shrink: 0;
}

.tzb-step.is-active .tzb-step-num {
	background: var(--tzb-accent);
	border-color: var(--tzb-accent);
	color: #ffffff;
}

.tzb-step.is-done .tzb-step-num {
	background: #16a34a;
	border-color: #16a34a;
	color: #ffffff;
}

.tzb-step-label {
	font-size: 13.5px;
	font-weight: 600;
	white-space: nowrap;
}

.tzb-step-line {
	flex: 1;
	height: 2px;
	background: rgba(255, 255, 255, 0.22);
	min-width: 20px;
}

/* Form Body */
.tzb-form {
	padding: 30px 32px 32px;
}

.tzb-hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	pointer-events: none;
}

.tzb-step-panel {
	display: none;
	animation: tzbFadeIn 0.22s ease;
}

.tzb-step-panel.is-active {
	display: block;
}

@keyframes tzbFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.tzb-section-heading {
	margin-bottom: 18px;
}

.tzb-section-heading h3 {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 700;
	color: var(--tzb-primary);
}

.tzb-section-heading p {
	margin: 0;
	font-size: 13.5px;
	color: var(--tzb-muted);
}

.tzb-section-accent {
	border-left: 4px solid var(--tzb-accent);
	padding-left: 14px;
}

.tzb-conditional-block + .tzb-conditional-block {
	margin-top: 28px;
	padding-top: 26px;
	border-top: 1px dashed var(--tzb-border);
}

/* Service Selection Cards */
.tzb-service-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.tzb-service-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 18px 16px;
	border: 2px solid var(--tzb-border);
	border-radius: 12px;
	background: #ffffff;
	cursor: pointer;
	transition: all 0.2s ease;
}

.tzb-service-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.tzb-service-card:hover {
	border-color: var(--tzb-primary);
	transform: translateY(-2px);
}

.tzb-service-card.is-selected {
	border-color: var(--tzb-accent);
	background: var(--tzb-accent-soft);
	box-shadow: 0 6px 16px rgba(242, 116, 5, 0.14);
}

.tzb-service-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(11, 60, 93, 0.08);
	color: var(--tzb-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.tzb-service-card.is-selected .tzb-service-icon {
	background: var(--tzb-accent);
	color: #ffffff;
}

.tzb-service-icon svg {
	width: 22px;
	height: 22px;
}

.tzb-service-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--tzb-primary);
	margin-bottom: 4px;
}

.tzb-service-desc {
	font-size: 12.5px;
	color: var(--tzb-muted);
	line-height: 1.4;
}

/* Grids & Fields */
.tzb-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.tzb-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.tzb-col-span-2 {
	grid-column: span 2;
}

.tzb-mt-12 { margin-top: 12px; }
.tzb-mt-16 { margin-top: 16px; }
.tzb-mt-24 { margin-top: 24px; }

.tzb-field label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--tzb-text);
	margin-bottom: 6px;
}

.tzb-req {
	color: #dc2626;
}

.tzb-hint {
	font-weight: 400;
	font-size: 12px;
	color: var(--tzb-muted);
}

.tzb-field input[type="text"],
.tzb-field input[type="email"],
.tzb-field input[type="tel"],
.tzb-field input[type="number"],
.tzb-field input[type="date"],
.tzb-field select,
.tzb-field textarea {
	width: 100%;
	padding: 11px 13px;
	font-size: 14px;
	color: var(--tzb-text);
	background: #ffffff;
	border: 1.5px solid var(--tzb-border);
	border-radius: 9px;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	font-family: inherit;
}

.tzb-field input:focus,
.tzb-field select:focus,
.tzb-field textarea:focus {
	border-color: var(--tzb-primary);
	box-shadow: 0 0 0 3px rgba(11, 60, 93, 0.12);
}

.tzb-field .tzb-invalid {
	border-color: #dc2626 !important;
	background: #fef2f2;
}

/* Pill Multi-Select */
.tzb-pill-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tzb-pill {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	margin: 0 !important;
}

.tzb-pill input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.tzb-pill span {
	display: inline-block;
	padding: 8px 13px;
	font-size: 13px;
	font-weight: 500;
	border: 1.5px solid var(--tzb-border);
	border-radius: 999px;
	background: #ffffff;
	color: var(--tzb-text);
	transition: all 0.15s ease;
}

.tzb-pill input:checked + span {
	background: var(--tzb-primary);
	border-color: var(--tzb-primary);
	color: #ffffff;
}

/* Radio Row & Callouts */
.tzb-radio-row {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	padding-top: 6px;
}

.tzb-radio-row label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 500;
	margin: 0;
	cursor: pointer;
}

.tzb-callout-box {
	background: var(--tzb-accent-soft);
	border: 1px solid rgba(242, 116, 5, 0.35);
	border-radius: 10px;
	padding: 14px 16px;
}

/* Equipment Repeater */
.tzb-repeater-box {
	background: var(--tzb-bg);
	border: 1px solid var(--tzb-border);
	border-radius: 10px;
	padding: 14px 16px;
}

.tzb-repeater-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.tzb-repeater-head strong {
	display: block;
	font-size: 14px;
	color: var(--tzb-primary);
}

.tzb-repeater-row {
	display: grid;
	grid-template-columns: 1.5fr 1.2fr 1fr 0.7fr auto;
	gap: 8px;
	margin-bottom: 8px;
	align-items: center;
}

.tzb-repeater-row input {
	padding: 9px 10px;
	font-size: 13px;
	border: 1px solid var(--tzb-border);
	border-radius: 7px;
	background: #ffffff;
	width: 100%;
}

.tzb-remove-row {
	width: 32px;
	height: 32px;
	border: 1px solid #fca5a5;
	background: #fff1f2;
	color: #dc2626;
	border-radius: 7px;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Accordion */
.tzb-accordion {
	border: 1px solid var(--tzb-border);
	border-radius: 10px;
	background: var(--tzb-bg);
	padding: 12px 16px;
}

.tzb-accordion summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 13.5px;
	color: var(--tzb-primary);
}

.tzb-accordion-body {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--tzb-border);
}

/* Upload Zone & Review Box */
.tzb-upload-zone {
	border: 2px dashed var(--tzb-border);
	border-radius: 10px;
	padding: 18px;
	background: var(--tzb-bg);
	text-align: center;
}

.tzb-upload-zone input[type="file"] {
	max-width: 100%;
	margin-bottom: 6px;
}

.tzb-upload-hint {
	display: block;
	font-size: 12px;
	color: var(--tzb-muted);
}

.tzb-review-box {
	background: var(--tzb-bg);
	border: 1px solid var(--tzb-border);
	border-radius: 10px;
	padding: 18px 20px;
}

.tzb-review-box h4 {
	margin: 0 0 10px;
	font-size: 15px;
	color: var(--tzb-primary);
}

.tzb-review-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px 18px;
	font-size: 13.5px;
}

.tzb-review-grid div span {
	color: var(--tzb-muted);
}

/* Alerts & Buttons */
.tzb-alert-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	padding: 12px 15px;
	border-radius: 9px;
	margin-bottom: 18px;
	font-size: 13.5px;
	font-weight: 500;
}

.tzb-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 26px;
	padding-top: 20px;
	border-top: 1px solid var(--tzb-border);
}

.tzb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	font-size: 14.5px;
	font-weight: 600;
	border-radius: 9px;
	border: none;
	cursor: pointer;
	text-decoration: none !important;
	transition: all 0.2s ease;
	line-height: 1.2;
}

.tzb-btn-sm {
	padding: 7px 12px;
	font-size: 12.5px;
}

.tzb-btn-primary {
	background: var(--tzb-primary);
	color: #ffffff !important;
}

.tzb-btn-primary:hover {
	background: var(--tzb-primary-dark);
}

.tzb-btn-accent {
	background: var(--tzb-accent);
	color: #ffffff !important;
}

.tzb-btn-accent:hover {
	background: var(--tzb-accent-hover);
}

.tzb-btn-secondary {
	background: #e2e8f0;
	color: var(--tzb-text) !important;
}

.tzb-btn-secondary:hover {
	background: #cbd5e1;
}

.tzb-btn-outline {
	background: transparent;
	border: 1.5px solid var(--tzb-primary);
	color: var(--tzb-primary) !important;
}

.tzb-btn-outline:hover {
	background: var(--tzb-primary);
	color: #ffffff !important;
}

.tzb-btn-whatsapp {
	background: #25D366;
	color: #ffffff !important;
}

.tzb-btn-whatsapp:hover {
	background: #1ebe5d;
}

.tzb-btn-whatsapp em {
	font-style: normal;
	opacity: 0.92;
}

.tzb-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: tzbSpin 0.7s linear infinite;
}

@keyframes tzbSpin {
	to { transform: rotate(360deg); }
}

/* Success Panel */
.tzb-success-panel {
	padding: 40px 32px;
	text-align: center;
}

.tzb-success-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #dcfce7;
	color: #16a34a;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.tzb-success-icon svg {
	width: 34px;
	height: 34px;
}

.tzb-success-panel h3 {
	margin: 0 0 8px;
	font-size: 23px;
	color: var(--tzb-primary);
}

.tzb-success-sub {
	margin: 0 0 22px;
	font-size: 14.5px;
	color: var(--tzb-muted);
}

.tzb-ref-box {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: var(--tzb-bg);
	border: 1.5px solid var(--tzb-primary);
	border-radius: 10px;
	padding: 10px 18px;
	margin-bottom: 22px;
}

.tzb-ref-box span {
	font-size: 12px;
	text-transform: uppercase;
	color: var(--tzb-muted);
	font-weight: 600;
}

.tzb-ref-box strong {
	font-size: 18px;
	color: var(--tzb-primary);
	letter-spacing: 0.5px;
}

.tzb-copy-btn {
	background: var(--tzb-accent);
	color: #ffffff;
	border: none;
	border-radius: 6px;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.tzb-summary-card {
	max-width: 560px;
	margin: 0 auto 24px;
	text-align: left;
	background: var(--tzb-bg);
	border: 1px solid var(--tzb-border);
	border-radius: 10px;
	padding: 16px 20px;
	font-size: 14px;
	line-height: 1.7;
}

.tzb-success-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

/* Tablet & Mobile Responsive */
@media (max-width: 768px) {
	.tzb-header {
		padding: 24px 20px 20px;
	}
	.tzb-title {
		font-size: 21px;
	}
	.tzb-form {
		padding: 22px 18px 24px;
	}
	.tzb-service-grid,
	.tzb-grid-2,
	.tzb-grid-3,
	.tzb-review-grid {
		grid-template-columns: 1fr;
	}
	.tzb-col-span-2 {
		grid-column: span 1;
	}
	.tzb-repeater-row {
		grid-template-columns: 1fr 1fr;
	}
	.tzb-step-label {
		display: none;
	}
	.tzb-step.is-active .tzb-step-label {
		display: inline;
	}
}

@media (max-width: 480px) {
	.tzb-actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}
	.tzb-actions .tzb-btn {
		width: 100%;
	}
	.tzb-repeater-row {
		grid-template-columns: 1fr;
	}
	.tzb-ref-box {
		flex-wrap: wrap;
		justify-content: center;
	}
}
