/* Ticket Reserver — Frontend Form */
.tr-wrap {
	--tr-color: #1976d2;
	max-width: 560px;
	margin: 0 auto;
}

/* Logo */
.tr-logo {
	text-align: center;
	margin-bottom: 20px;
}
.tr-logo img {
	display: inline-block;
	height: auto;
}

.tr-welcome {
	margin-bottom: 24px;
}

.tr-form {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 32px;
	box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.tr-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}

@media (max-width: 480px) {
	.tr-field-row { grid-template-columns: 1fr; }
}

.tr-field {
	margin-bottom: 20px;
}

.tr-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: .95em;
	color: #222;
}

.tr-field label span {
	color: #e53935;
	margin-left: 2px;
}

.tr-field input[type="email"],
.tr-field input[type="tel"],
.tr-field input[type="text"],
.tr-field input[type="number"] {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #ccc;
	border-radius: 7px;
	font-size: 1em;
	box-sizing: border-box;
	transition: border-color .2s, box-shadow .2s;
	background: #fafafa;
}

.tr-field input:focus {
	outline: none;
	border-color: var(--tr-color);
	background: #fff;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--tr-color) 20%, transparent);
}

.tr-btn-submit {
	width: 100%;
	padding: 13px;
	background: var(--tr-color);
	color: #fff;
	border: none;
	border-radius: 7px;
	font-size: 1.05em;
	font-weight: 700;
	cursor: pointer;
	letter-spacing: .3px;
	position: relative;
	overflow: hidden;
	transition: filter .2s, transform .15s;
}

/* ripple layer */
.tr-btn-submit::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle, rgba(255,255,255,.35) 0%, transparent 70%);
	opacity: 0;
	transform: scale(0);
	transition: transform .5s ease-out, opacity .5s ease-out;
	pointer-events: none;
}
.tr-btn-submit:active::before {
	transform: scale(2.5);
	opacity: 1;
	transition: none;
}

.tr-btn-submit:hover:not(:disabled) { filter: brightness(.88); }
.tr-btn-submit:active:not(:disabled) { transform: scale(.98); }

/* loading spinner */
.tr-btn-submit.is-loading {
	color: transparent;
	pointer-events: none;
}
.tr-btn-submit.is-loading::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	top: 50%;
	left: 50%;
	margin: -10px 0 0 -10px;
	border: 3px solid rgba(255,255,255,.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: tr-spin .7s linear infinite;
}

/* success tick */
.tr-btn-submit.is-success {
	background: #2e7d32 !important;
	filter: none;
	pointer-events: none;
	color: transparent;
}
.tr-btn-submit.is-success::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 18px;
	margin: -14px 0 0 -6px;
	border: 3px solid #fff;
	border-top: none;
	border-left: none;
	transform: rotate(45deg) scale(0);
	animation: tr-tick .35s ease forwards;
}

.tr-btn-submit:disabled:not(.is-loading):not(.is-success) {
	background: #90a4ae !important;
	filter: none;
	cursor: not-allowed;
}

@keyframes tr-spin {
	to { transform: rotate(360deg); }
}
@keyframes tr-tick {
	to { transform: rotate(45deg) scale(1); }
}

.tr-msg {
	margin-top: 18px;
	padding: 13px 16px;
	border-radius: 7px;
	font-weight: 500;
	font-size: .97em;
}

.tr-msg--sending {
	background: #e3f2fd;
	color: #0d47a1;
	border: 1px solid #90caf9;
}

.tr-msg--success {
	background: #e8f5e9;
	color: #1b5e20;
	border: 1px solid #a5d6a7;
}

.tr-msg--error {
	background: #ffebee;
	color: #b71c1c;
	border: 1px solid #ef9a9a;
}

/* Info button */
.tr-info-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: none;
	border: 1.5px solid var(--tr-color);
	color: var(--tr-color);
	border-radius: 7px;
	padding: 8px 18px;
	font-size: .95em;
	font-weight: 600;
	cursor: pointer;
	margin-bottom: 20px;
	transition: background .15s, color .15s;
	line-height: 1.4;
}
.tr-info-btn:hover {
	background: var(--tr-color);
	color: #fff;
}
.tr-info-btn svg { flex-shrink: 0; }

/* Info modal overlay */
#tr-info-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.5);
	z-index: 9998;
	opacity: 0;
	transition: opacity .22s ease;
}
#tr-info-overlay.is-visible {
	display: block;
	opacity: 1;
}

/* Info modal box */
#tr-info-modal {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -46%);
	background: #fff;
	border-radius: 14px;
	padding: 36px 38px 30px;
	z-index: 9999;
	width: calc(100% - 32px);
	max-width: 560px;
	max-height: 82vh;
	overflow-y: auto;
	box-shadow: 0 16px 48px rgba(0,0,0,.22);
	opacity: 0;
	transition: opacity .22s ease, transform .22s ease;
}
#tr-info-modal.is-visible {
	display: block;
	opacity: 1;
	transform: translate(-50%, -50%);
}
#tr-info-close {
	position: absolute;
	top: 14px;
	right: 18px;
	background: none;
	border: none;
	font-size: 1.5em;
	line-height: 1;
	cursor: pointer;
	color: #aaa;
	padding: 4px 6px;
	border-radius: 4px;
	transition: color .15s, background .15s;
}
#tr-info-close:hover { color: #333; background: #f0f0f0; }

/* Modal content typography */
#tr-info-modal h2,
#tr-info-modal h3 {
	margin-top: 0;
	color: var(--tr-color);
	font-size: 1.2em;
}
#tr-info-modal p  { margin: 0 0 12px; color: #333; line-height: 1.6; }
#tr-info-modal ul { margin: 0 0 12px; padding-left: 20px; }
#tr-info-modal li { margin-bottom: 6px; color: #333; line-height: 1.5; }
#tr-info-modal strong { color: #111; }

/* Prevent body scroll when modal is open */
body.tr-modal-open { overflow: hidden; }

@media (max-width: 480px) {
	#tr-info-modal { padding: 28px 20px 24px; }
}

/* Form closed / not open notice */
.tr-notice {
	padding: 18px 22px;
	border-radius: 8px;
	font-size: 1em;
	font-weight: 500;
	margin: 0;
	border: 1.5px solid;
}
.tr-notice--before {
	background: #e3f2fd;
	color: #0d47a1;
	border-color: #90caf9;
}
.tr-notice--after {
	background: #fff8e1;
	color: #7b4f00;
	border-color: #ffe082;
}

/* Elementor compatibility */
.elementor .tr-field input { box-sizing: border-box; }
