/* =========================================================================
 * 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;
}

/* -------------------------------------------------------------------------
 * Events Dropdown (Sold out events & waitlist)
 * ------------------------------------------------------------------------- */
.vt-events-dropdown {
	margin: 0 0 1.5rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
}

.vt-dropdown-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 1rem 1.25rem;
	background: #fef2f2;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	color: #991b1b;
	cursor: pointer;
	transition: background 0.2s;
}

.vt-dropdown-toggle:hover {
	background: #fecaca;
}

.vt-dropdown-toggle[aria-expanded="true"] .vt-dropdown-arrow {
	transform: rotate(180deg);
}

.vt-dropdown-arrow {
	transition: transform 0.2s;
	font-size: 0.75rem;
}

.vt-dropdown-menu {
	padding: 0.5rem;
	background: #fff;
	border-top: 1px solid #e5e7eb;
}

.vt-dropdown-menu[hidden] {
	display: none;
}

.vt-dropdown-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #f3f4f6;
}

.vt-dropdown-item:last-child {
	border-bottom: none;
}

.vt-dropdown-item__info {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	flex: 1;
}

.vt-dropdown-item__title {
	font-weight: 600;
	font-size: 0.95rem;
	color: #1f2937;
}

.vt-dropdown-item__meta {
	font-size: 0.8rem;
	color: #6b7280;
}

.vt-btn--small {
	padding: 0.4rem 0.75rem;
	font-size: 0.8rem;
}

/* Mobile adjustments */
@media (max-width: 600px) {
	.vt-dropdown-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
	
	.vt-dropdown-toggle {
		padding: 0.875rem 1rem;
		font-size: 0.9rem;
	}
}

.vt-events__date {
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.3;
}
.vt-events__time {
	display: inline;
	margin-left: 0.35rem;
	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__date {
		font-size: 0.95rem;
		line-height: 1.4;
	}
	.vt-events__time {
		margin-left: 0.25rem;
		font-size: 0.8rem;
	}
	.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;
}

/* Phone field: country prefix + number */
.vt-phone-field {
	display: flex;
	gap: 0.5rem;
}
.vt-phone-prefix {
	width: auto;
	min-width: 100px;
	flex-shrink: 0;
	padding: 0.6rem 0.5rem;
	font-size: 0.9rem;
}
.vt-phone-number {
	flex: 1;
}
@media (max-width: 480px) {
	.vt-phone-prefix {
		min-width: 85px;
		font-size: 0.85rem;
		padding: 0.6rem 0.35rem;
	}
}

.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-info--deposit {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #86efac;
	font-size: 0.85rem;
	line-height: 1.5;
}

.vt-deposit-info {
	margin: 0.5rem 0 1rem;
}

.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;
}

/* -------------------------------------------------------------------------
 * Thank You PAGE (standalone page via [vidimte_thankyou] shortcode)
 * ------------------------------------------------------------------------- */
.vt-ty {
	max-width: 480px;
	margin: 2rem auto;
	text-align: center;
	font-family: inherit;
}
.vt-ty--error {
	color: #991b1b;
	padding: 1.5rem;
	background: #fef2f2;
	border-radius: 8px;
}
.vt-ty__check {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #10b981;
	color: #fff;
	font-size: 2rem;
	line-height: 64px;
	margin: 0 auto 1rem;
}
.vt-ty__heading {
	font-size: 1.6rem;
	font-weight: 700;
	margin: 0 0 0.25rem;
	color: #111827;
}
.vt-ty__sub {
	font-size: 1rem;
	color: #6b7280;
	margin: 0 0 1.5rem;
}
.vt-ty__event-box {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 1rem 1.25rem;
	margin-bottom: 2rem;
	text-align: left;
}
.vt-ty__event-title {
	font-weight: 600;
	font-size: 1.05rem;
	margin: 0 0 0.25rem;
	color: #111827;
}
.vt-ty__event-meta {
	font-size: 0.875rem;
	color: #6b7280;
	margin: 0;
}
.vt-ty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
	margin-bottom: 2rem;
}
.vt-ty__btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: #374151;
	font-size: 0.8rem;
	font-weight: 500;
	width: 80px;
}
.vt-ty__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	border: 1.5px solid #d1d5db;
	background: #fff;
	font-size: 1.5rem;
	transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.vt-ty__btn:hover .vt-ty__icon {
	background: #eff6ff;
	border-color: #3b82f6;
	box-shadow: 0 2px 8px rgba(59,130,246,.15);
}
.vt-ty__note {
	font-size: 0.8rem;
	color: #9ca3af;
	margin: 0;
}
@media (max-width: 400px) {
	.vt-ty__actions { gap: 1rem; }
	.vt-ty__btn { width: 65px; }
	.vt-ty__icon { width: 52px; height: 52px; font-size: 1.25rem; }
}

/* -------------------------------------------------------------------------
 * Thank You block (calendar / maps / whatsapp)
 * ------------------------------------------------------------------------- */
.vt-thankyou {
	margin: 1rem 0;
	text-align: center;
}
.vt-thankyou[hidden] {
	display: none;
}
.vt-thankyou__title {
	font-size: 1.2rem;
	font-weight: 700;
	color: #065f46;
	margin: 0 0 0.25rem;
}
.vt-thankyou__subtitle {
	font-size: 0.9rem;
	color: #6b7280;
	margin: 0 0 1.5rem;
}
.vt-thankyou__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.25rem;
}
.vt-thankyou__btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: #374151;
	font-size: 0.8rem;
	font-weight: 500;
	width: 80px;
}
.vt-thankyou__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 1.5px solid #d1d5db;
	background: #f9fafb;
	font-size: 1.4rem;
	transition: background 0.15s, border-color 0.15s;
}
.vt-thankyou__btn:hover .vt-thankyou__icon {
	background: #eff6ff;
	border-color: #3b82f6;
}

@media (max-width: 400px) {
	.vt-thankyou__actions {
		gap: 0.75rem;
	}
	.vt-thankyou__btn {
		width: 65px;
	}
	.vt-thankyou__icon {
		width: 50px;
		height: 50px;
		font-size: 1.2rem;
	}
}

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