/* =========================================================================
 * VidimTe Reservations - Public styles
 *
 * All classes are scoped under .vt- to avoid theme conflicts.
 * Modal z-index is 999999 to live above Elementor sticky headers and
 * cookie banners.
 * ========================================================================= */

/* -------------------------------------------------------------------------
 * Events list
 * ------------------------------------------------------------------------- */
.vt-events {
	box-sizing: border-box;
	max-width: 100%;
	margin: 1.5rem 0;
	font-family: inherit;
	color: inherit;
}
.vt-events *,
.vt-events *::before,
.vt-events *::after {
	box-sizing: border-box;
}

.vt-events--empty {
	padding: 1rem 1.25rem;
	background: #f6f7f9;
	border-radius: 6px;
	text-align: center;
}

.vt-events__row {
	display: grid;
	grid-template-columns: minmax(140px, 1fr) minmax(160px, 2fr) auto;
	gap: 1rem;
	align-items: center;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid #e5e7eb;
}
.vt-events__row:last-child {
	border-bottom: none;
}
.vt-events__row.is-sold-out {
	opacity: 0.85;
}

.vt-events__date {
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.3;
}
.vt-events__time {
	display: block;
	margin-top: 0.15rem;
	font-weight: 400;
	font-size: 0.85rem;
	color: #6b7280;
}

.vt-events__location {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}
.vt-events__city {
	font-weight: 500;
}
.vt-events__venue {
	font-size: 0.85rem;
	color: #6b7280;
}

.vt-events__action {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

@media (max-width: 720px) {
	.vt-events__row {
		grid-template-columns: 1fr;
		gap: 0.5rem;
		padding: 1rem 0.75rem;
	}
	.vt-events__action {
		justify-content: flex-start;
	}
}

/* -------------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------------- */
.vt-btn {
	display: inline-block;
	padding: 0.65rem 1.25rem;
	border: 1px solid transparent;
	border-radius: 4px;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.vt-btn:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}
.vt-btn[disabled],
.vt-btn[aria-disabled="true"] {
	opacity: 0.55;
	cursor: not-allowed;
}

.vt-btn--primary {
	background: #111827;
	color: #fff;
	border-color: #111827;
}
.vt-btn--primary:hover:not([disabled]) {
	background: #1f2937;
	border-color: #1f2937;
	color: #fff;
}

.vt-btn--secondary {
	background: #fff;
	color: #111827;
	border-color: #d1d5db;
}
.vt-btn--secondary:hover:not([disabled]) {
	background: #f3f4f6;
	color: #111827;
}

/* -------------------------------------------------------------------------
 * Badges
 * ------------------------------------------------------------------------- */
.vt-badge {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	border-radius: 3px;
}
.vt-badge--sold-out {
	background: #b91c1c;
	color: #fff;
}

/* -------------------------------------------------------------------------
 * Modal
 * ------------------------------------------------------------------------- */
.vt-modal[hidden] {
	display: none !important;
}
.vt-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 2rem 1rem;
	overflow-y: auto;
	font-family: inherit;
	color: #111827;
	-webkit-font-smoothing: antialiased;
}
.vt-modal *,
.vt-modal *::before,
.vt-modal *::after {
	box-sizing: border-box;
}

.vt-modal__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	cursor: pointer;
}

.vt-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 540px;
	margin: auto 0;
	padding: 2rem 1.75rem 1.75rem;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
	animation: vt-modal-in 0.18s ease-out;
}
.vt-modal__dialog--small {
	max-width: 440px;
}

@keyframes vt-modal-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.vt-modal__close {
	position: absolute;
	top: 0.5rem;
	right: 0.65rem;
	width: 36px;
	height: 36px;
	background: transparent;
	border: 0;
	color: #4b5563;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	border-radius: 4px;
}
.vt-modal__close:hover {
	background: #f3f4f6;
	color: #111827;
}
.vt-modal__close:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.vt-modal__title {
	margin: 0 2rem 0.25rem 0;
	font-size: 1.4rem;
	line-height: 1.3;
	font-weight: 700;
	color: #111827;
}
.vt-modal__subtitle {
	margin: 0 0 1.25rem;
	color: #4b5563;
	font-size: 0.95rem;
}

/* Body scroll lock helper (set by JS on <body>). */
body.vt-modal-open {
	overflow: hidden;
}

@media (max-width: 540px) {
	.vt-modal {
		padding: 0;
	}
	.vt-modal__dialog {
		min-height: 100vh;
		border-radius: 0;
		padding-top: 3rem;
	}
}

/* -------------------------------------------------------------------------
 * Form
 * ------------------------------------------------------------------------- */
.vt-form {
	margin: 1rem 0 0;
}
.vt-form__row {
	margin-bottom: 0.85rem;
}
.vt-form__label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: #374151;
}
.vt-required {
	color: #b91c1c;
}
.vt-form__input {
	display: block;
	width: 100%;
	padding: 0.6rem 0.75rem;
	font: inherit;
	font-size: 1rem;
	color: #111827;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 5px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.vt-form__input:focus {
	outline: 0;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.vt-form__input.is-invalid {
	border-color: #b91c1c;
}

.vt-form__error {
	margin: 0.75rem 0;
	padding: 0.55rem 0.85rem;
	background: #fee2e2;
	color: #991b1b;
	border-radius: 5px;
	font-size: 0.9rem;
}

/* -------------------------------------------------------------------------
 * Work types fieldset
 * ------------------------------------------------------------------------- */
.vt-work-types {
	margin: 1rem 0;
	padding: 0;
	border: 0;
}
.vt-work-types > legend {
	margin-bottom: 0.5rem;
	padding: 0;
	font-size: 0.9rem;
	font-weight: 500;
	color: #374151;
}

.vt-work {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0.75rem;
	padding: 0.7rem 0.85rem;
	margin-bottom: 0.45rem;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.vt-work:hover:not(.is-disabled) {
	background: #f3f4f6;
	border-color: #d1d5db;
}
.vt-work.is-checked {
	background: #ecfdf5;
	border-color: #10b981;
}
.vt-work.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.vt-work.is-hidden {
	display: none;
}
.vt-work input[type="radio"],
.vt-work input[type="checkbox"] {
	margin: 0;
	width: 18px;
	height: 18px;
}
.vt-work__label {
	font-size: 0.95rem;
	color: #111827;
}
.vt-work__price {
	font-weight: 600;
	color: #111827;
	white-space: nowrap;
}

/* -------------------------------------------------------------------------
 * Total
 * ------------------------------------------------------------------------- */
.vt-total {
	display: flex;
	justify-content: flex-end;
	align-items: baseline;
	gap: 0.5rem;
	margin: 1rem 0;
	padding-top: 0.75rem;
	border-top: 1px solid #e5e7eb;
	font-size: 1.05rem;
}
.vt-total__label {
	color: #6b7280;
}
.vt-total__amount {
	font-size: 1.4rem;
	font-weight: 700;
	color: #111827;
}

/* -------------------------------------------------------------------------
 * Actions / steps
 * ------------------------------------------------------------------------- */
.vt-actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 1.25rem;
}
@media (min-width: 480px) {
	.vt-actions {
		flex-direction: row;
		flex-wrap: wrap;
	}
	.vt-actions .vt-btn {
		flex: 1 1 auto;
		min-width: 0;
	}
}

.vt-info {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	background: #eff6ff;
	color: #1e3a8a;
	border-radius: 5px;
	font-size: 0.9rem;
}

.vt-result {
	margin: 1rem 0 1.5rem;
	padding: 1rem 1.25rem;
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #10b981;
	border-radius: 6px;
	font-size: 1rem;
	line-height: 1.5;
}
.vt-result--error {
	background: #fef2f2;
	color: #991b1b;
	border-color: #b91c1c;
}

.vt-step[hidden] {
	display: none !important;
}
