/* MaxVision Eye Test Booking — storefront */

:root {
	--mvetb-black: #000;
	--mvetb-white: #fff;
	--mvetb-grey-100: #f5f5f5;
	--mvetb-grey-200: #e8e8e8;
	--mvetb-grey-300: #d0d0d0;
	--mvetb-grey-500: #888;
	--mvetb-grey-700: #444;
	--mvetb-red: #c41e3a;
	--mvetb-green: #2d8a4e;
	--mvetb-green-bg: #e8f5ec;
	--mvetb-radius: 4px;
	--mvetb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.mvetb-app {
	font-family: var(--mvetb-font);
	color: var(--mvetb-black);
	background: var(--mvetb-white);
	min-height: 80vh;
	display: flex;
	flex-direction: column;
}

/* Header */
.mvetb-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 20px 32px;
	border-bottom: 1px solid var(--mvetb-grey-200);
	position: relative;
}

.mvetb-header__logo {
	justify-self: start;
}

.mvetb-logo-text {
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 2px;
}

.mvetb-logo-img {
	max-height: 32px;
	width: auto;
}

.mvetb-header__title {
	font-size: 16px;
	font-weight: 600;
	margin: 0;
	text-align: center;
	letter-spacing: 0.5px;
}

.mvetb-close {
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: var(--mvetb-black);
	line-height: 1;
	padding: 4px 8px;
}

/* Stepper */
.mvetb-stepper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	grid-column: 1 / -1;
	margin-top: 16px;
}

.mvetb-stepper__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 80px;
}

.mvetb-stepper__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--mvetb-grey-300);
	transition: background 0.2s;
}

.mvetb-stepper__item.active .mvetb-stepper__dot,
.mvetb-stepper__item.completed .mvetb-stepper__dot {
	background: var(--mvetb-black);
}

.mvetb-stepper__label {
	font-size: 11px;
	color: var(--mvetb-grey-500);
	white-space: nowrap;
}

.mvetb-stepper__item.active .mvetb-stepper__label {
	color: var(--mvetb-black);
	font-weight: 600;
}

.mvetb-stepper__item.completed .mvetb-stepper__label {
	color: var(--mvetb-grey-700);
}

.mvetb-stepper__line {
	width: 60px;
	height: 1px;
	background: var(--mvetb-grey-300);
	margin-bottom: 20px;
}

.mvetb-stepper__item.completed + .mvetb-stepper__line,
.mvetb-stepper__line.completed {
	background: var(--mvetb-black);
}

/* Main layout */
.mvetb-main {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	gap: 0;
	flex: 1;
	min-height: 0;
}

.mvetb-content {
	padding: 32px 40px;
	overflow-y: auto;
	max-height: 520px;
}

.mvetb-hero {
	background: var(--mvetb-grey-100);
	border-left: 1px solid var(--mvetb-grey-200);
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 4 / 3;
	max-height: 380px;
	align-self: start;
}

.mvetb-hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

.mvetb-hero__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 280px;
	color: var(--mvetb-grey-300);
}

/* Test type cards */
.mvetb-type-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.mvetb-type-card {
	display: flex;
	align-items: center;
	padding: 24px 20px;
	border: 1px solid var(--mvetb-grey-200);
	border-bottom: none;
	cursor: pointer;
	transition: background 0.15s;
	gap: 16px;
}

.mvetb-type-card:last-child {
	border-bottom: 1px solid var(--mvetb-grey-200);
}

.mvetb-type-card:hover {
	background: var(--mvetb-grey-100);
}

.mvetb-type-card__icon {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mvetb-type-card__icon svg {
	width: 28px;
	height: 28px;
	stroke: var(--mvetb-black);
	fill: none;
	stroke-width: 1.5;
}

.mvetb-type-card__body {
	flex: 1;
}

.mvetb-type-card__title {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 4px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.mvetb-type-card__price {
	color: var(--mvetb-red);
	font-weight: 700;
	font-size: 14px;
}

.mvetb-type-card__desc {
	font-size: 13px;
	color: var(--mvetb-grey-500);
	margin: 0;
}

.mvetb-type-card__arrow {
	font-size: 18px;
	color: var(--mvetb-grey-500);
}

/* Store step */
.mvetb-store-header h2 {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 20px;
}

.mvetb-search-wrap {
	position: relative;
	margin-bottom: 12px;
}

.mvetb-search-input {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--mvetb-grey-300);
	border-radius: var(--mvetb-radius);
	font-size: 14px;
	background: var(--mvetb-white);
}

.mvetb-use-location {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--mvetb-black);
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	margin-bottom: 16px;
	text-decoration: underline;
}

.mvetb-store-count {
	font-size: 13px;
	color: var(--mvetb-grey-500);
	margin-bottom: 16px;
}

.mvetb-store-list {
	display: flex;
	flex-direction: column;
}

.mvetb-store-card {
	padding: 20px 0;
	border-bottom: 1px solid var(--mvetb-grey-200);
}

.mvetb-store-card__name {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 6px;
}

.mvetb-store-card__address {
	font-size: 13px;
	color: var(--mvetb-grey-700);
	margin: 0 0 8px;
	line-height: 1.5;
}

.mvetb-store-card__service {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--mvetb-grey-500);
	margin-bottom: 8px;
}

.mvetb-store-card__hours {
	font-size: 12px;
	color: var(--mvetb-grey-700);
	margin-bottom: 4px;
}

.mvetb-store-card__status {
	font-size: 12px;
	font-weight: 600;
}

.mvetb-store-card__status.open {
	color: var(--mvetb-green);
}

.mvetb-store-card__actions {
	display: flex;
	gap: 10px;
	margin-top: 12px;
}

/* Buttons */
.mvetb-btn {
	padding: 12px 24px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 24px;
	cursor: pointer;
	border: 1px solid var(--mvetb-black);
	transition: all 0.15s;
	letter-spacing: 0.3px;
}

.mvetb-btn--primary {
	background: var(--mvetb-black);
	color: var(--mvetb-white);
}

.mvetb-btn--primary:hover {
	background: var(--mvetb-grey-700);
}

.mvetb-btn--primary:disabled {
	background: var(--mvetb-grey-300);
	border-color: var(--mvetb-grey-300);
	cursor: not-allowed;
}

.mvetb-btn--outline {
	background: var(--mvetb-white);
	color: var(--mvetb-black);
}

.mvetb-btn--outline:hover {
	background: var(--mvetb-grey-100);
}

.mvetb-btn--full {
	width: 100%;
	text-align: center;
}

.mvetb-btn--sm {
	padding: 8px 18px;
	font-size: 12px;
}

/* Map */
.mvetb-map-container {
	width: 100%;
	height: 100%;
	min-height: 0;
}

/* Date & Time */
.mvetb-calendar {
	margin-bottom: 32px;
}

.mvetb-calendar__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.mvetb-calendar__month {
	font-size: 16px;
	font-weight: 700;
}

.mvetb-calendar__nav {
	background: none;
	border: none;
	font-size: 18px;
	cursor: pointer;
	padding: 4px 8px;
}

.mvetb-calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	text-align: center;
}

.mvetb-calendar__day-label {
	font-size: 11px;
	font-weight: 600;
	color: var(--mvetb-grey-500);
	padding: 8px 0;
}

.mvetb-calendar__day {
	padding: 10px 4px;
	font-size: 13px;
	cursor: pointer;
	border: 1px solid transparent;
	border-radius: var(--mvetb-radius);
}

.mvetb-calendar__day:hover:not(.disabled):not(.selected) {
	border-color: var(--mvetb-grey-300);
}

.mvetb-calendar__day.disabled {
	color: var(--mvetb-grey-300);
	cursor: not-allowed;
}

.mvetb-calendar__day.selected {
	background: var(--mvetb-black);
	color: var(--mvetb-white);
}

.mvetb-calendar__day.available {
	border-color: var(--mvetb-grey-200);
}

.mvetb-slots h3 {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 16px;
}

.mvetb-slots__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.mvetb-slot {
	padding: 10px 8px;
	font-size: 12px;
	text-align: center;
	border: 1px solid var(--mvetb-grey-300);
	border-radius: var(--mvetb-radius);
	cursor: pointer;
	background: var(--mvetb-white);
	transition: all 0.15s;
}

.mvetb-slot:hover:not(.selected) {
	border-color: var(--mvetb-black);
}

.mvetb-slot.selected {
	background: var(--mvetb-black);
	color: var(--mvetb-white);
	border-color: var(--mvetb-black);
}

/* Form */
.mvetb-form-section h2 {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 8px;
}

.mvetb-form-section p {
	font-size: 13px;
	color: var(--mvetb-grey-500);
	margin: 0 0 24px;
}

.mvetb-field {
	margin-bottom: 20px;
}

.mvetb-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 6px;
}

.mvetb-field label .required {
	color: var(--mvetb-red);
}

.mvetb-field input,
.mvetb-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: none;
	background: var(--mvetb-grey-100);
	border-radius: var(--mvetb-radius);
	font-size: 14px;
	font-family: inherit;
}

.mvetb-field textarea {
	resize: vertical;
	min-height: 80px;
}

.mvetb-char-count {
	font-size: 11px;
	color: var(--mvetb-grey-500);
	text-align: right;
	margin-top: 4px;
}

.mvetb-phone-wrap {
	display: flex;
	gap: 8px;
}

.mvetb-phone-code {
	width: 90px;
	flex-shrink: 0;
	padding: 12px 8px;
	background: var(--mvetb-grey-100);
	border: none;
	border-radius: var(--mvetb-radius);
	font-size: 13px;
}

.mvetb-phone-wrap input {
	flex: 1;
}

.mvetb-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 24px 0;
	font-size: 13px;
}

.mvetb-checkbox input {
	margin-top: 3px;
}

.mvetb-checkbox a {
	color: var(--mvetb-black);
}

/* Confirmation */
.mvetb-success {
	background: var(--mvetb-green-bg);
	border: 1px solid #b8dfc4;
	border-radius: var(--mvetb-radius);
	padding: 14px 16px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 24px;
	font-size: 13px;
	color: var(--mvetb-green);
}

.mvetb-success svg {
	flex-shrink: 0;
	margin-top: 2px;
}

.mvetb-confirm-details h3 {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 16px;
}

.mvetb-detail-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
	font-size: 13px;
	line-height: 1.5;
}

.mvetb-detail-row svg {
	flex-shrink: 0;
	margin-top: 2px;
	stroke: var(--mvetb-black);
	fill: none;
	stroke-width: 1.5;
}

.mvetb-detail-row strong {
	display: block;
	font-weight: 600;
}

.mvetb-confirm-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 24px;
}

.mvetb-confirm-actions .mvetb-btn-row {
	display: flex;
	gap: 10px;
}

.mvetb-return-home {
	display: inline-block;
	margin-top: 20px;
	font-size: 13px;
	color: var(--mvetb-black);
	text-decoration: underline;
}

/* Loading & empty */
.mvetb-loading {
	text-align: center;
	padding: 40px;
	color: var(--mvetb-grey-500);
}

.mvetb-empty {
	text-align: center;
	padding: 40px 20px;
	color: var(--mvetb-grey-500);
	font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
	.mvetb-main {
		grid-template-columns: 1fr;
	}

	.mvetb-hero {
		display: none;
	}

	.mvetb-header {
		grid-template-columns: 1fr auto;
		padding: 16px;
	}

	.mvetb-stepper {
		overflow-x: auto;
		justify-content: flex-start;
		padding-bottom: 8px;
	}

	.mvetb-content {
		padding: 20px 16px;
		max-height: none;
	}

	.mvetb-slots__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.mvetb-store-card__actions {
		flex-direction: column;
	}
}
