/**
 * Shared frontend styles for all 3 multi-step forms. Uses generic,
 * easily-overridable class names (`eg-` prefix) so the theme can add its
 * own overrides without fighting a plugin's !important rules.
 */

.eg-multistep {
	max-width: 720px;
	margin: 0 auto;
}

/* Progress */
.eg-progress-list {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	gap: 0.5rem;
}

.eg-progress-item {
	flex: 1 1 auto;
	text-align: center;
	padding: 0.5rem 0.75rem;
	font-size: 0.85rem;
	border-bottom: 3px solid #d8d8d8;
	color: #8a8a8a;
	cursor: default;
}

.eg-progress-item.is-done {
	border-bottom-color: #f6a500;
	color: #333;
	cursor: pointer;
}

.eg-progress-item.is-active {
	border-bottom-color: #f6a500;
	color: #111;
	font-weight: 600;
}

/* Step container */
.eg-step {
	padding: 0.25rem 0;
}

.eg-step h3.eg-step-heading {
	margin-top: 0;
	font-size: 1.15rem;
}

/* Field rows */
.eg-field {
	margin-bottom: 1.1rem;
}

.eg-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.eg-field input[type="text"],
.eg-field input[type="email"],
.eg-field input[type="tel"],
.eg-field input[type="number"],
.eg-field input[type="date"],
.eg-field select,
.eg-field textarea {
	width: 100%;
	max-width: 420px;
	padding: 0.5rem 0.6rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
}

.eg-field .eg-choice-row {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 0.3rem;
}

.eg-conditional {
	border-left: 3px solid #eee;
	padding-left: 1rem;
	margin: 0.75rem 0;
}

/* Navigation */
.eg-step-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 1.5rem;
	gap: 0.75rem;
}

.eg-step-nav button,
.eg-step-nav .wpcf7-submit {
	padding: 0.65rem 1.4rem;
	border-radius: 4px;
	border: none;
	font-size: 1rem;
	cursor: pointer;
}

.eg-btn-prev {
	background: #eee;
	color: #333;
}

.eg-btn-next,
.eg-step-nav .wpcf7-submit {
	background: #f6a500;
	color: #fff;
	margin-left: auto;
}

.eg-btn-prev:hover {
	background: #e2e2e2;
}

.eg-btn-next:hover,
.eg-step-nav .wpcf7-submit:hover {
	background: #d99200;
}

/* Summary step */
.eg-summary-list {
	display: grid;
	grid-template-columns: minmax(160px, 40%) 1fr;
	row-gap: 0.5rem;
	column-gap: 1rem;
}

.eg-summary-list dt {
	font-weight: 600;
	color: #555;
}

.eg-summary-list dd {
	margin: 0;
}

/* Service Center chooser ([eg_service_center]) */
.eg-service-center {
	max-width: 900px;
	margin: 0 auto;
}

.eg-sc-question {
	font-size: 1.2rem;
	font-weight: 600;
	text-align: center;
}

.eg-sc-choices {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) );
	gap: 1rem;
}

.eg-sc-choice {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	text-align: left;
	padding: 1.25rem;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.eg-sc-choice:hover,
.eg-sc-choice:focus-visible {
	border-color: #f6a500;
	box-shadow: 0 0 0 2px rgba(246, 165, 0, 0.25);
}

.eg-sc-choice-label {
	font-weight: 700;
	font-size: 1.05rem;
}

.eg-sc-choice-desc {
	color: #666;
	font-size: 0.9rem;
}

.eg-sc-back {
	background: none;
	border: none;
	color: #555;
	cursor: pointer;
	padding: 0.25rem 0;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

.eg-sc-back:hover {
	text-decoration: underline;
}

@media ( max-width: 600px ) {
	.eg-progress-item {
		font-size: 0.7rem;
		padding: 0.4rem 0.3rem;
	}

	.eg-summary-list {
		grid-template-columns: 1fr;
	}

	.eg-step-nav {
		flex-direction: column-reverse;
	}

	.eg-btn-next,
	.eg-step-nav .wpcf7-submit {
		margin-left: 0;
	}
}
