.pbl-reservation {
	width: 100%;
}

.pbl-reservation__intro {
	max-width: 40rem;
	margin: 0 auto 2rem;
	text-align: center;
}

.pbl-reservation__title {
	margin: 0 0 1rem;
	font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
	font-weight: 600;
	line-height: 1.2;
	color: #002042;
}

.pbl-reservation__subtitle {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.4;
	color: #002042;
}

.pbl-reservation__form {
	background: #e6f2ff;
	border-radius: 12px;
	padding: 2rem;
}

.pbl-reservation__honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.pbl-reservation__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 2.5rem;
	align-items: start;
}

.pbl-reservation__col {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 0;
}

.pbl-reservation__row {
	display: grid;
	gap: 1rem;
	min-width: 0;
}

.pbl-reservation__row--name-phone {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pbl-reservation__col .pbl-field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 0;
}

.pbl-reservation__col .pbl-label {
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.375rem;
	color: #002042;
}

.pbl-reservation__col .pbl-input,
.pbl-reservation__col .pbl-select {
	min-height: 44px;
	padding: 0.75rem;
	border: 1px solid #d2e6fe;
	border-radius: 4px;
	background: #fff;
	font-size: 0.875rem;
	line-height: 1rem;
	color: #002042;
	width: 100%;
}

.pbl-reservation__col .pbl-select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23002042' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.875rem center;
	padding-right: 2.25rem;
}

.pbl-reservation__col .pbl-input::placeholder {
	color: #a3a3a3;
}

.pbl-reservation__col .pbl-input:focus,
.pbl-reservation__col .pbl-select:focus {
	border-color: #0a57cd;
	box-shadow: 0 0 0 3px rgba(10, 87, 205, 0.15);
	outline: none;
}

/* EU-style plate: country strip (dropdown) + free text */
.pbl-plate {
	display: flex;
	align-items: stretch;
	width: 100%;
	min-height: 3.5rem;
	height: 3.5rem;
	border: 2px solid #1a2b3c;
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 32, 66, 0.08);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pbl-plate:focus-within {
	border-color: #0a57cd;
	box-shadow: 0 0 0 3px rgba(10, 87, 205, 0.15);
}

.pbl-field.is-invalid .pbl-plate {
	outline: 2px solid #da1d1d;
	outline-offset: 2px;
}

.pbl-plate__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	min-height: 0;
	margin: 0;
	padding: 0 1rem;
	border: 0;
	border-radius: 0;
	background: #fff;
	font-family: 'IBM Plex Mono', ui-monospace, monospace;
	font-size: 1.25rem;
	font-weight: 700;
	font-variant-numeric: slashed-zero;
	font-feature-settings: 'zero' 1;
	letter-spacing: 0.12em;
	line-height: 1;
	color: #111;
	text-transform: uppercase;
}

.pbl-plate__input::placeholder {
	color: #a3a3a3;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: none;
	font-size: 0.9375rem;
}

.pbl-plate__input:focus {
	outline: none;
	box-shadow: none;
}

.pbl-reservation__slots {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.pbl-reservation__slots .pbl-label {
	padding: 0;
	margin-bottom: 0.5rem;
}

.pbl-reservation__slot-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.625rem;
}

.pbl-reservation__slot {
	display: block;
	cursor: pointer;
	min-width: 0;
}

.pbl-reservation__slot input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.pbl-reservation__slot-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0.35rem;
	min-height: 4rem;
	height: 100%;
	padding: 0.75rem 0.7rem;
	border: 1px solid #d2e6fe;
	border-radius: 8px;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pbl-reservation__slot input:checked + .pbl-reservation__slot-body {
	border-color: #0a57cd;
	box-shadow: 0 0 0 3px rgba(10, 87, 205, 0.12);
}

.pbl-reservation__slot input:focus-visible + .pbl-reservation__slot-body {
	outline: 2px solid #0a57cd;
	outline-offset: 2px;
}

.pbl-reservation__slot-label {
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.2;
	color: #002042;
}

.pbl-reservation__slot-price {
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
	color: #0a57cd;
	white-space: nowrap;
}

.pbl-reservation__hint {
	margin: 0.25rem 0 0;
	font-size: 0.75rem;
	line-height: 1.3;
	color: #5a6b82;
}

.pbl-reservation__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 0 0.25rem;
	border-top: 1px solid #c5dbf5;
}

.pbl-reservation__total-label {
	font-size: 0.875rem;
	color: #002042;
}

.pbl-reservation__total-value {
	font-size: 1.25rem;
	font-weight: 600;
	color: #0a57cd;
}

.pbl-reservation__hint--activation {
	margin: 0;
}

.pbl-reservation__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
	min-height: 56px;
	margin-top: 0.25rem;
	padding: 0.75rem 1.25rem;
	border: 0;
	border-radius: 8px;
	background: #0a57cd;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
}

.pbl-reservation__submit .pbl-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: #fff;
}

.pbl-reservation__submit:hover,
.pbl-reservation__submit:focus-visible {
	background: #002042;
	outline: none;
}

.pbl-reservation__submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

.pbl-reservation__explainer {
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid #c5dbf5;
}

.pbl-reservation__explainer p {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: #3d4f66;
	max-width: 52rem;
}

.pbl-reservation__feedback {
	margin-top: 1.25rem;
	padding: 0.875rem 1rem;
	border-radius: 8px;
	font-size: 0.875rem;
	line-height: 1.4;
}

.pbl-reservation__feedback[hidden] {
	display: none !important;
}

.pbl-reservation__feedback--success {
	background: #daffd9;
	color: #05a700;
}

.pbl-reservation__feedback--error {
	background: rgba(218, 29, 29, 0.12);
	color: #da1d1d;
}

.pbl-reservation__col .pbl-field.is-invalid .pbl-input,
.pbl-reservation__col .pbl-field.is-invalid .pbl-select,
.pbl-reservation__col .pbl-field.is-invalid .pbl-plate,
.pbl-reservation__col .pbl-field.is-invalid .pbl-loc-select__trigger,
.pbl-reservation__slots.is-invalid .pbl-reservation__slot-body {
	outline: 2px solid #da1d1d;
	outline-offset: 2px;
}

/* Custom location dropdown */
.pbl-loc-select {
	position: relative;
	width: 100%;
}

.pbl-loc-select__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	min-height: 44px;
	padding: 0.65rem 0.75rem;
	border: 1px solid #d2e6fe;
	border-radius: 4px;
	background: #fff;
	text-align: left;
	cursor: pointer;
	font: inherit;
	color: #002042;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pbl-loc-select__trigger:hover,
.pbl-loc-select.is-open .pbl-loc-select__trigger,
.pbl-loc-select__trigger:focus-visible {
	border-color: #0a57cd;
	box-shadow: 0 0 0 3px rgba(10, 87, 205, 0.15);
	outline: none;
}

.pbl-loc-select__value {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
	flex: 1 1 auto;
}

.pbl-loc-select__placeholder {
	font-size: 0.875rem;
	color: #a3a3a3;
}

.pbl-loc-select__chosen-title {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25;
	color: #002042;
}

.pbl-loc-select__chosen-meta {
	font-size: 0.75rem;
	line-height: 1.3;
	color: #5a6b82;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pbl-loc-select__chevron {
	flex-shrink: 0;
	width: 0.65rem;
	height: 0.65rem;
	border-right: 2px solid #002042;
	border-bottom: 2px solid #002042;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.15s ease;
}

.pbl-loc-select.is-open .pbl-loc-select__chevron {
	transform: rotate(-135deg) translateY(-2px);
}

.pbl-loc-select__list {
	position: absolute;
	z-index: 40;
	top: calc(100% + 0.35rem);
	left: 0;
	right: 0;
	margin: 0;
	padding: 0.35rem;
	list-style: none;
	max-height: 16rem;
	overflow: auto;
	border: 1px solid #d2e6fe;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(0, 32, 66, 0.14);
}

.pbl-loc-select__list[hidden] {
	display: none !important;
}

.pbl-loc-select__option {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.7rem 0.75rem;
	border-radius: 6px;
	cursor: pointer;
}

.pbl-loc-select__option:hover,
.pbl-loc-select__option:focus-visible,
.pbl-loc-select__option.is-active {
	background: #e6f2ff;
	outline: none;
}

.pbl-loc-select__option[aria-selected='true'] {
	background: #d2e6fe;
}

.pbl-loc-select__option-main {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.pbl-loc-select__option-title {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25;
	color: #002042;
}

.pbl-loc-select__option-addr {
	font-size: 0.75rem;
	line-height: 1.35;
	color: #5a6b82;
}

.pbl-loc-select__option-avail {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	padding: 0.3rem 0.55rem;
	border-radius: 32px;
	background: #daffd9;
	color: #05a700;
	font-size: 0.6875rem;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
}

.pbl-loc-select__option[data-status='limited'] .pbl-loc-select__option-avail {
	background: #fff4d6;
	color: #9a6b00;
}

.pbl-loc-select__option[data-status='full'] .pbl-loc-select__option-avail,
.pbl-loc-select__option[data-status='unavailable'] .pbl-loc-select__option-avail {
	background: rgba(218, 29, 29, 0.12);
	color: #da1d1d;
}

/* Modal */
.pbl-reservation-modal[hidden] {
	display: none !important;
}

.pbl-reservation-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

.pbl-reservation-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 32, 66, 0.55);
}

.pbl-reservation-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 28rem);
	max-height: calc(100vh - 2.5rem);
	overflow: auto;
	background: #fff;
	border-radius: 12px;
	padding: 1.75rem 1.5rem 1.5rem;
	box-shadow: 0 16px 48px rgba(0, 32, 66, 0.22);
}

.pbl-reservation-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #002042;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.pbl-reservation-modal__close:hover,
.pbl-reservation-modal__close:focus-visible {
	background: #e8f0fb;
	outline: none;
}

.pbl-reservation-modal__title {
	margin: 0 2rem 0.35rem 0;
	font-size: 1.25rem;
	font-weight: 600;
	color: #002042;
}

.pbl-reservation-modal__lead {
	margin: 0 0 1.25rem;
	font-size: 0.875rem;
	color: #5a6b82;
}

.pbl-reservation-modal__summary {
	margin: 0 0 1.25rem;
	display: grid;
	grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr);
	gap: 0.65rem 1rem;
}

.pbl-reservation-modal__summary dt {
	margin: 0;
	font-size: 0.8125rem;
	color: #5a6b82;
}

.pbl-reservation-modal__summary dd {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
	color: #002042;
	word-break: break-word;
}

.pbl-reservation-modal__price {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.875rem 0;
	margin-bottom: 1rem;
	border-top: 1px solid #e6eef8;
	border-bottom: 1px solid #e6eef8;
	font-size: 0.875rem;
	color: #002042;
}

.pbl-reservation-modal__price strong {
	font-size: 1.25rem;
	color: #0a57cd;
}

.pbl-reservation-modal__consent {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin: 0 0 1.25rem;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: #002042;
	cursor: pointer;
}

.pbl-reservation-modal__consent input {
	margin: 0.2rem 0 0;
	width: 1.05rem;
	height: 1.05rem;
	flex-shrink: 0;
	accent-color: #0a57cd;
}

.pbl-reservation-modal__consent a {
	color: #0a57cd;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pbl-reservation-modal__consent a:hover,
.pbl-reservation-modal__consent a:focus-visible {
	color: #002042;
}

.pbl-reservation-modal__confirm {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	border: 0;
	border-radius: 8px;
	background: #0a57cd;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
}

.pbl-reservation-modal__confirm:hover:not(:disabled),
.pbl-reservation-modal__confirm:focus-visible:not(:disabled) {
	background: #002042;
	outline: none;
}

.pbl-reservation-modal__confirm:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

body.pbl-modal-open {
	overflow: hidden;
}

.elementor-widget-parkiraj-bl-reservation-form,
.elementor-widget-parkiraj-bl-reservation-form > .elementor-widget-container {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	align-self: stretch;
}

@media (max-width: 781px) {
	.pbl-reservation__form {
		padding: 1.25rem;
	}

	.pbl-reservation__grid {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	.pbl-reservation__row--name-phone {
		grid-template-columns: 1fr;
	}

	.pbl-reservation__slot-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.5rem;
	}

	.pbl-reservation__slot-body {
		min-height: 3.75rem;
		padding: 0.625rem 0.5rem;
	}

	.pbl-reservation__slot-label,
	.pbl-reservation__slot-price {
		font-size: 0.75rem;
	}

	.pbl-reservation-modal__summary {
		grid-template-columns: 1fr;
		gap: 0.2rem;
	}

	.pbl-reservation-modal__summary dt {
		margin-top: 0.45rem;
	}
}
