/* LDA Sports Booking - Scoped Frontend Styles */
.lda-booking {
	--navy: #071e32;
	--ink: #102a40;
	--lime: #b8f34c;
	--line: #dce5ec;
	--muted: #5c6e7d;
	--canvas: #f4f7fa;
	--white: #ffffff;
	--green: #197347;
	--red: #a12b38;

	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	background: var(--canvas);
	color: var(--ink);
	font-size: 15px;
	line-height: 1.5;
	width: 100%;
	margin: 0 auto;
	position: relative;
}

.lda-booking *,
.lda-booking *::before,
.lda-booking *::after {
	box-sizing: border-box;
}

.lda-booking .previewbar {
	background: var(--navy);
	color: #d8e7f2;
	padding: 10px 25px;
	font-size: 12px;
	text-align: center;
	border-radius: 4px 4px 0 0;
}

.lda-booking .lda-editor-notice {
	background: #fff3cd;
	border: 1px solid #ffeeba;
	color: #856404;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 500;
	text-align: center;
}

.lda-booking .product {
	background: var(--canvas);
	min-height: 800px;
	width: 100%;
	margin: 0 auto;
}

.lda-booking .webhead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 38px;
	background: var(--white);
	border-bottom: 1px solid var(--line);
	gap: 20px;
}

.lda-booking .brand {
	display: flex;
	gap: 10px;
	align-items: center;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.4px;
	color: var(--navy);
}

.lda-booking .brandmark {
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--lime);
	color: var(--navy);
	font-size: 20px;
	font-weight: bold;
	flex: none;
}

.lda-booking .brandname {
	white-space: nowrap;
}

.lda-booking .head-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.lda-booking .phone {
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}

.lda-booking .webmain {
	max-width: 1240px;
	margin: 0 auto;
	padding: 26px 30px 50px;
}

.lda-booking .button {
	background: var(--lime);
	border: 1px solid var(--lime);
	color: var(--navy);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.lda-booking .button:hover {
	border-color: #598e19;
	box-shadow: 0 0 0 2px rgba(184, 243, 76, 0.45);
}

.lda-booking .button.secondary {
	background: var(--white);
	border: 1px solid var(--line);
	color: var(--ink);
}

.lda-booking .button.secondary:hover {
	background: #f8fafc;
	border-color: #c8d6df;
}

.lda-booking .link {
	background: none;
	border: none;
	padding: 6px 12px;
	font-size: 14px;
	color: var(--muted);
	cursor: pointer;
	font-weight: 600;
	border-radius: 6px;
}

.lda-booking .link:hover {
	color: var(--navy);
	background: #edf2f6;
}

.lda-booking .card {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 22px;
	margin-bottom: 20px;
}

.lda-booking .eventtile {
	background: #eaf5dc;
	border-color: #d5e8bb;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 20px 24px;
}

.lda-booking .eventtile small {
	display: block;
}

.lda-booking .eventtile h3 {
	margin: 4px 0;
	font-size: 19px;
	color: var(--navy);
}

.lda-booking .eyebrow {
	font-size: 12px;
	font-weight: bold;
	letter-spacing: 1.4px;
	color: #597510;
	text-transform: uppercase;
}

.lda-booking .sectionhead {
	display: flex;
	gap: 12px;
	align-items: center;
	margin: 28px 0 16px;
}

.lda-booking .step {
	background: var(--navy);
	color: var(--white);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 13px;
	display: flex;
	justify-content: center;
	align-items: center;
	flex: none;
	font-weight: bold;
}

.lda-booking .sectionhead h2 {
	font-size: 22px;
	margin: 0;
	color: var(--navy);
	letter-spacing: -0.4px;
}

/* Sports Tiles */
.lda-booking .tiles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.lda-booking .tile {
	padding: 18px;
	text-align: left;
	font-size: 16px;
	font-weight: 700;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.15s ease;
	min-height: 64px;
}

.lda-booking .tile small {
	display: block;
	font-weight: normal;
	color: var(--muted);
	margin-top: 5px;
	font-size: 13px;
}

.lda-booking .tile:hover,
.lda-booking .venuetile:hover,
.lda-booking .equipment:hover,
.lda-booking .paytile:hover {
	border-color: #8bbd3a;
}

.lda-booking .tile.selected,
.lda-booking .venuetile.selected,
.lda-booking .equipment.selected,
.lda-booking .paytile.selected {
	border-color: #639226 !important;
	background: #effbda !important;
	box-shadow: 0 0 0 1px #86b839;
}

/* Venues Tiles */
.lda-booking .venuetiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.lda-booking .venuetile {
	padding: 0;
	overflow: hidden;
	text-align: left;
	border-radius: 14px;
	background: var(--white);
	border: 1px solid var(--line);
	cursor: pointer;
	transition: all 0.15s ease;
	display: flex;
	flex-direction: column;
}

.lda-booking .venuetile .photo {
	height: 180px;
	border-radius: 0;
	background-size: 200% 200%;
	background-repeat: no-repeat;
	background-color: #dce5ec;
}

.lda-booking .sport0 { background-position: 0 0; }
.lda-booking .sport1 { background-position: 100% 0; }
.lda-booking .sport2 { background-position: 0 100%; }
.lda-booking .sport3 { background-position: 100% 100%; }

.lda-booking .venuetile .pad {
	padding: 16px;
}

.lda-booking .venuetile h3 {
	margin: 0 0 7px;
	font-size: 18px;
	color: var(--navy);
}

.lda-booking .venueinfo {
	font-size: 13px;
	font-weight: normal;
	margin: 4px 0;
	color: var(--muted);
}

.lda-booking .venueprice {
	font-weight: 700;
	color: var(--navy);
}

/* Layout Columns */
.lda-booking .layout {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
	gap: 24px;
	margin-top: 10px;
}

.lda-booking .maincol {
	min-width: 0;
}

.lda-booking .sidecol {
	min-width: 0;
}

.lda-booking .sticky {
	position: -webkit-sticky;
	position: sticky;
	top: 22px;
}

/* Calendar */
.lda-booking .calendarpanel {
	max-width: 100%;
}

.lda-booking .split {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.lda-booking .tag {
	background: #e8f0f6;
	color: #526a7d;
	border-radius: 5px;
	padding: 3px 8px;
	font-size: 12px;
	font-weight: 600;
}

.lda-booking .week,
.lda-booking .month {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
}

.lda-booking .week span {
	text-align: center;
	color: #5c6e7d;
	font-size: 12px;
	padding: 10px 0 6px;
	font-weight: 600;
}

.lda-booking .month button {
	height: 46px;
	min-height: 44px;
	padding: 6px;
	border: 1px solid transparent;
	background: #f5f8fa;
	font-weight: normal;
	border-radius: 9px;
	cursor: pointer;
	font-size: 14px;
	color: var(--ink);
	transition: background 0.15s ease;
}

.lda-booking .month button:hover:not(:disabled) {
	background: #e6eef3;
}

.lda-booking .month button.selected {
	background: var(--lime) !important;
	border-color: #699726 !important;
	font-weight: bold;
	color: var(--navy);
}

.lda-booking .month button:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	text-decoration: none;
	background: #edf1f4;
}

/* Slots */
.lda-booking .slotgrid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 10px;
	margin-top: 14px;
}

.lda-booking .slotgrid button {
	min-height: 46px;
	padding: 10px 8px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	text-align: center;
	transition: all 0.15s ease;
	color: var(--ink);
}

.lda-booking .slotgrid button:hover:not(:disabled) {
	border-color: #8bbd3a;
}

.lda-booking .slotgrid button.selected {
	background: var(--lime) !important;
	border-color: #699726 !important;
	color: var(--navy);
	font-weight: 700;
}

.lda-booking .slotgrid button:disabled {
	background: #e9edf0;
	color: #7c8993;
	cursor: not-allowed;
	text-decoration: line-through;
	opacity: 0.6;
}

.lda-booking .legend {
	display: flex;
	gap: 16px;
	color: var(--muted);
	font-size: 13px;
	margin: 16px 0 8px;
}

.lda-booking .legend span:nth-child(2) {
	color: #42671f;
	font-weight: 600;
}

.lda-booking .hint {
	font-size: 13px;
	color: var(--muted);
	margin: 8px 0;
	line-height: 1.4;
}

.lda-booking .badge {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 6px;
	background: #e6f5eb;
	color: #1c7047;
	font-size: 12px;
	font-weight: bold;
}

.lda-booking .emptyerror {
	color: var(--red);
	margin: 8px 0;
	font-size: 13px;
	font-weight: 600;
}

/* Equipment */
.lda-booking .equipmentgrid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.lda-booking .equipment {
	padding: 18px;
	text-align: left;
	min-height: 95px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.lda-booking .equipment b {
	display: block;
	font-size: 15px;
	color: var(--navy);
}

.lda-booking .equipment small {
	display: block;
	color: var(--muted);
	margin-top: 7px;
	font-size: 13px;
}

/* Customer Fields */
.lda-booking .customerfields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}

.lda-booking .customerfields label:last-child {
	grid-column: 1 / -1;
}

.lda-booking .field {
	display: flex;
	flex-direction: column;
	font-size: 13px;
	font-weight: 600;
	gap: 6px;
	margin-bottom: 14px;
	min-width: 0;
	color: var(--ink);
}

.lda-booking input[type="text"],
.lda-booking input[type="tel"],
.lda-booking input[type="email"] {
	border: 1px solid #c8d6df;
	border-radius: 9px;
	padding: 12px 14px;
	background: #fbfcfd;
	color: var(--ink);
	width: 100%;
	min-height: 46px;
	font-size: 14px;
	font-family: inherit;
}

.lda-booking input:focus {
	outline: 3px solid #2675bf;
	outline-offset: 1px;
	border-color: #2675bf;
}

/* Payment Choices (Exactly Two) */
.lda-booking .paygrid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.lda-booking .paytile {
	padding: 18px;
	text-align: left;
	min-height: 105px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.lda-booking .paytile b {
	display: block;
	font-size: 15px;
	color: var(--navy);
}

.lda-booking .paytile > strong {
	display: block;
	font-size: 22px;
	margin-top: 9px;
	color: var(--navy);
}

.lda-booking .paytile small {
	display: block;
	color: var(--muted);
	margin-top: 7px;
	font-size: 12px;
}

.lda-booking .paytile.unavailable {
	background: #f8fafc;
	border-style: dashed;
	cursor: pointer;
}

/* Summary Card */
.lda-booking .summary {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 24px;
}

.lda-booking .summary h3 {
	margin: 0 0 16px;
	font-size: 20px;
	color: var(--navy);
}

.lda-booking .rows > div {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 11px 0;
	border-bottom: 1px solid #e7edf2;
	font-size: 14px;
}

.lda-booking .rows > div:last-child {
	border-bottom: none;
	padding-top: 14px;
}

.lda-booking .rows span {
	color: var(--muted);
}

.lda-booking .rows strong {
	text-align: right;
	max-width: 65%;
	color: var(--ink);
}

.lda-booking .rows > div:last-child strong {
	font-size: 24px;
	color: var(--navy);
}

.lda-booking .saving {
	color: #306915 !important;
	font-weight: 700;
}

.lda-booking .summary .button {
	width: 100%;
	margin: 16px 0 10px;
	font-size: 16px;
	min-height: 48px;
}

/* Sponsored Banner */
.lda-booking .ad {
	padding: 28px;
	background: var(--navy);
	color: var(--white);
	border-radius: 16px;
	margin-top: 32px;
}

.lda-booking .ad small {
	letter-spacing: 1.3px;
	color: #bdd3e5;
	font-weight: bold;
}

.lda-booking .ad h3 {
	margin: 6px 0 8px;
	font-size: 20px;
}

.lda-booking .ad p {
	margin: 0;
	color: #d8e7f2;
	font-size: 14px;
}

/* Footer */
.lda-booking .webfoot {
	padding: 22px 38px;
	background: var(--white);
	border-top: 1px solid var(--line);
	font-size: 13px;
	color: var(--muted);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Modal Dialogs */
.lda-dialog {
	border: none;
	border-radius: 18px;
	padding: 28px;
	max-width: 500px;
	width: calc(100% - 36px);
	box-shadow: 0 20px 80px rgba(7, 30, 50, 0.4);
	color: var(--ink);
	background: var(--white);
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
	z-index: 99999;
}

.lda-dialog::backdrop {
	background: rgba(7, 30, 50, 0.5);
	backdrop-filter: blur(2px);
}

.lda-dialog:not([open]) {
	display: none;
}

.lda-dialog h2 {
	margin: 0 0 10px;
	font-size: 22px;
	color: var(--navy);
}

.lda-dialog .dialog-contact-num {
	font-size: 24px;
	font-weight: 800;
	color: var(--navy);
	margin: 6px 0 18px;
}

.lda-dialog .contactactions {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
}

.lda-dialog .contactactions a {
	color: var(--navy);
	text-decoration: none;
	flex: 1;
	text-align: center;
	padding: 14px;
	background: var(--lime);
	border-radius: 10px;
	font-weight: bold;
	font-size: 15px;
	transition: background 0.15s ease;
	min-height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.lda-dialog .contactactions a:hover {
	background: #a6e437;
}

.lda-dialog .previewclose {
	width: 100%;
	margin-top: 8px;
}

.lda-dialog .stateicon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e5f5d1;
	color: #306a1a;
	font-size: 32px;
	font-weight: bold;
}

.lda-dialog .reviewcaption {
	font-size: 13px;
	color: var(--muted);
	margin-top: -4px;
	margin-bottom: 18px;
}

.lda-dialog .rows {
	margin: 18px 0;
	text-align: left;
}

.lda-dialog .button {
	width: 100%;
	margin: 6px 0;
}

.lda-dialog-wide {
	max-width: 580px;
	max-height: 90vh;
	overflow-y: auto;
}

.lda-dialog-form {
	text-align: left;
	margin-top: 14px;
}

.lda-setup-callout {
	margin: 16px 0;
	text-align: left;
}

.account-shell-line {
	font-size: 14px;
	margin: 0 0 8px;
	color: var(--navy);
}

.recovery-box {
	background: #f0f7ff;
	border: 1px solid #bfdbfe;
	border-radius: 12px;
	padding: 14px;
	text-align: center;
	margin: 12px 0 16px;
}

.recovery-badge {
	display: block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1px;
	color: #1d4ed8;
	margin-bottom: 6px;
}

.mono-code {
	display: block;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 19px;
	letter-spacing: 2px;
	color: #071e32;
	font-weight: 800;
	margin: 6px 0;
}

.recovery-save-warning {
	display: block;
	font-size: 12px;
	color: #b45309;
	font-weight: 600;
	margin-top: 6px;
}

.booking-cards-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 16px 0;
	max-height: 380px;
	overflow-y: auto;
	text-align: left;
}

.booking-card {
	background: #f8fafc;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.booking-card-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.booking-card-ref {
	font-weight: 700;
	font-size: 14px;
	color: var(--navy);
}

.booking-card-badge {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 4px 8px;
	border-radius: 6px;
	background: #dcfce7;
	color: #15803d;
}

.booking-card-detail {
	font-size: 13px;
	color: var(--ink);
	line-height: 1.4;
}

.booking-card-actions {
	margin-top: 6px;
}

.booking-card-actions .button {
	margin: 0;
	font-size: 13px;
	padding: 8px 14px;
	min-height: 36px;
}

.dialog-empty-msg {
	padding: 24px 16px;
	color: var(--muted);
	font-size: 14px;
	text-align: center;
}

.reschedule-banner {
	background: #fefce8;
	border: 1px solid #fef08a;
	border-radius: 10px;
	padding: 10px 14px;
	margin-bottom: 14px;
	font-size: 12px;
	color: #854d0e;
	text-align: left;
	line-height: 1.4;
}

.reschedule-body {
	text-align: left;
}

.reschedule-current-box {
	background: #f1f5f9;
	border-radius: 10px;
	padding: 10px 14px;
	margin-bottom: 14px;
	font-size: 13px;
}

.reschedule-current-box small {
	display: block;
	font-weight: 700;
	color: var(--muted);
	font-size: 11px;
	margin-bottom: 4px;
}

.reschedule-quote-card {
	background: #f8fafc;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px 14px;
	margin: 14px 0;
}

.quote-row {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	margin-bottom: 6px;
}

.quote-row.highlight {
	border-top: 1px dashed var(--line);
	padding-top: 6px;
	font-size: 15px;
	font-weight: 700;
	color: var(--navy);
}

.quote-policy-note {
	font-size: 12px;
	margin: 8px 0 0;
	color: #0369a1;
	font-weight: 600;
	line-height: 1.4;
}

.dialog-msg {
	padding: 10px;
	border-radius: 8px;
	font-size: 13px;
	margin: 10px 0;
}

.dialog-msg.error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.dialog-msg.success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

/* Responsive Adaptations for Mobile Browser (390px / 360px) */
@media (max-width: 800px) {
	.lda-booking {
		overflow-x: hidden;
		max-width: 100vw;
	}

	.lda-booking .product {
		overflow-x: hidden;
		max-width: 100%;
	}

	.lda-booking .previewbar {
		padding: 8px 12px;
		font-size: 11px;
		line-height: 1.4;
	}

	.lda-booking .webhead {
		padding: 12px 14px;
		gap: 10px;
		flex-direction: column;
		align-items: stretch;
	}

	.lda-booking .brand {
		font-size: 17px;
	}

	.lda-booking .brandname {
		white-space: normal;
	}

	.lda-booking .head-actions {
		width: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 8px;
	}

	.lda-booking .webmain {
		padding: 14px 10px 40px;
		max-width: 100%;
	}

	.lda-booking .phone {
		padding: 8px 12px;
		min-height: 42px;
		font-size: 13px;
	}

	.lda-booking .layout {
		display: block;
	}

	.lda-booking .sticky {
		position: static;
	}

	.lda-booking .tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.lda-booking .tile {
		padding: 12px;
		font-size: 14px;
		min-width: 0;
	}

	.lda-booking .venuetiles {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.lda-booking .venuetile .photo {
		height: 165px;
	}

	.lda-booking .week,
	.lda-booking .month {
		grid-template-columns: repeat(7, minmax(0, 1fr));
		gap: 3px;
	}

	.lda-booking .week span {
		font-size: 11px;
		padding: 4px 0;
	}

	.lda-booking .month button {
		height: 40px;
		min-height: 38px;
		padding: 2px 1px;
		font-size: 13px;
		min-width: 0;
		width: 100%;
	}

	.lda-booking .slotgrid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px;
	}

	.lda-booking .slotgrid button {
		min-height: 44px;
		padding: 8px 2px;
		font-size: 13px;
		min-width: 0;
		width: 100%;
	}

	.lda-booking .equipmentgrid,
	.lda-booking .paygrid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.lda-booking .paytile b {
		font-size: 14px;
	}

	.lda-booking .paytile > strong {
		font-size: 20px;
	}

	.lda-booking .customerfields {
		display: block;
	}

	.lda-booking .eventtile {
		padding: 16px 14px;
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.lda-booking .eventtile .button {
		font-size: 13px;
		padding: 8px 14px;
		min-height: 40px;
		width: auto;
	}

	.lda-booking .card {
		padding: 16px 12px;
		border-radius: 14px;
	}

	.lda-booking .sectionhead h2 {
		font-size: 20px;
	}

	.lda-booking .rows > div {
		gap: 10px;
	}

	.lda-booking .summary .button {
		min-height: 48px;
		font-size: 16px;
	}

	.lda-booking .webfoot {
		padding: 18px 14px;
		flex-direction: column;
		gap: 10px;
		text-align: center;
	}
}
