/* =============================================
   Ambulance Step Form
   ============================================= */

.ib-amb-form-wrap {
	font-family: inherit;
}

/* ---------- Step Indicators ---------- */
.ib-amb-steps {
	display: flex;
	align-items: center;
	margin-bottom: 2rem;
}

.ib-amb-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	flex-shrink: 0;
}

.ib-amb-step__circle {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e5e7eb;
	color: #9ca3af;
	font-size: 0.875rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s, color 0.25s;
}

.ib-amb-step__label {
	font-size: 0.72rem;
	color: #9ca3af;
	font-weight: 500;
	white-space: nowrap;
	transition: color 0.25s;
}

.ib-amb-step.active .ib-amb-step__circle,
.ib-amb-step.done .ib-amb-step__circle {
	background: var(--theme-palette-color-1, #dc2626);
	color: #fff;
}

.ib-amb-step.active .ib-amb-step__label,
.ib-amb-step.done .ib-amb-step__label {
	color: var(--theme-palette-color-1, #dc2626);
}

.ib-amb-step__line {
	flex: 1;
	height: 2px;
	background: #e5e7eb;
	margin: 0 0.5rem;
	margin-bottom: 1.1rem;
	transition: background 0.25s;
}

.ib-amb-step__line.done {
	background: var(--theme-palette-color-1, #dc2626);
}

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

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

.ib-amb-panel__title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #111827;
	margin: 0 0 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--theme-palette-color-1, #dc2626);
}

/* ---------- Form Grid ---------- */
.ib-amb-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.ib-amb-field--full {
	grid-column: 1 / -1;
}

/* ---------- Fields ---------- */
.ib-amb-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.ib-amb-field label {
	font-size: 0.82rem;
	font-weight: 600;
	color: #374151;
}

.ib-amb-field label span {
	color: var(--theme-palette-color-1, #dc2626);
}

.ib-amb-field input,
.ib-amb-field select,
.ib-amb-field textarea {
	width: 100%;
	padding: 0.6rem 0.8rem;
	border: 1.5px solid #d1d5db;
	border-radius: 8px;
	font-size: 0.875rem;
	color: #111827;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
	outline: none;
	box-sizing: border-box;
	font-family: inherit;
}

.ib-amb-field input:focus,
.ib-amb-field select:focus,
.ib-amb-field textarea:focus {
	border-color: var(--theme-palette-color-1, #dc2626);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-palette-color-1, #dc2626) 15%, transparent);
}

.ib-amb-field input.error,
.ib-amb-field select.error,
.ib-amb-field textarea.error {
	border-color: #dc2626;
}

.ib-amb-field textarea {
	resize: vertical;
}

/* ---------- Navigation ---------- */
.ib-amb-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 1.75rem;
	gap: 1rem;
}

.ib-amb-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.65rem 1.4rem;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: background 0.2s, transform 0.15s;
}

.ib-amb-btn--next,
.ib-amb-btn--submit {
	background: var(--theme-palette-color-1, #dc2626);
	color: #fff;
	margin-left: auto;
}

.ib-amb-btn--next:hover,
.ib-amb-btn--submit:hover {
	background: var(--theme-palette-color-2, #b91c1c);
	transform: translateY(-1px);
}

.ib-amb-btn--back {
	background: #f3f4f6;
	color: #374151;
}

.ib-amb-btn--back:hover {
	background: #e5e7eb;
}

/* ---------- Confirmation Summary ---------- */
.ib-amb-confirm-note {
	font-size: 0.82rem;
	color: #6b7280;
	margin: 0 0 1rem;
}

.ib-amb-summary {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.ib-amb-summary__section h4 {
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--theme-palette-color-1, #dc2626);
	margin: 0 0 0.6rem;
}

.ib-amb-summary__row {
	display: flex;
	gap: 0.5rem;
	font-size: 0.85rem;
	padding: 0.3rem 0;
	border-bottom: 1px dashed #e5e7eb;
}

.ib-amb-summary__row:last-child {
	border-bottom: none;
}

.ib-amb-summary__label {
	color: #6b7280;
	min-width: 140px;
	flex-shrink: 0;
}

.ib-amb-summary__value {
	color: #111827;
	font-weight: 500;
	word-break: break-word;
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
	.ib-amb-grid {
		grid-template-columns: 1fr;
	}

	.ib-amb-step__label {
		display: none;
	}

	.ib-amb-summary__label {
		min-width: 110px;
	}

	.ib-amb-step__line {
		margin-bottom: 0px;
	}
}
