/**
 * DMP My Tickets Portal — front-end styles.
 * Self-contained; matches the DMP orange with a floating-card layout.
 */

.dmp-mt {
	--mt-accent: #f58220;
	--mt-accent-dark: #e0741a;
	--mt-ink: #1d2327;
	--mt-ink-soft: #6b7280;
	--mt-line: #ececf0;
	--mt-wash: #f6f7f9;
	--mt-radius: 18px;
	max-width: 720px;
	margin: 0 auto;
	padding: 0 16px 48px;
	font-family: inherit;
	color: var(--mt-ink);
	box-sizing: border-box;
}

.dmp-mt *,
.dmp-mt *::before,
.dmp-mt *::after {
	box-sizing: border-box;
}

/* Hero */
.dmp-mt__hero {
	margin: 0 -16px 0;
	padding: 40px 24px 84px;
	background: linear-gradient(135deg, #ffa14a 0%, #f58220 60%, #ef6c12 100%);
	border-radius: 0 0 28px 28px;
	color: #fff;
	text-align: center;
}

.dmp-mt__title {
	margin: 0 0 8px;
	font-size: 1.85rem;
	font-weight: 800;
	color: #fff;
	line-height: 1.15;
}

.dmp-mt__sub {
	margin: 0 auto;
	max-width: 440px;
	font-size: 0.975rem;
	color: rgba(255, 255, 255, 0.92);
}

/* Lookup card (overlaps the hero) */
.dmp-mt__card {
	margin: -60px auto 0;
	max-width: 460px;
	padding: 24px;
	background: #fff;
	border-radius: var(--mt-radius);
	box-shadow: 0 18px 50px rgba(17, 18, 20, 0.14);
}

.dmp-mt__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
}

.dmp-mt__field label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--mt-ink);
}

.dmp-mt__optional {
	font-weight: 400;
	color: var(--mt-ink-soft);
}

.dmp-mt__field input {
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	font: inherit;
	font-size: 1rem;
	color: var(--mt-ink);
	background: var(--mt-wash);
	border: 1px solid var(--mt-line);
	border-radius: 12px;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.dmp-mt__field input:focus {
	outline: none;
	border-color: var(--mt-accent);
	box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.15);
	background: #fff;
}

.dmp-mt__otpform input[name="code"] {
	letter-spacing: 0.4em;
	text-align: center;
	font-size: 1.3rem;
	font-weight: 700;
}

.dmp-mt__btn {
	width: 100%;
	min-height: 50px;
	margin-top: 4px;
	padding: 0 20px;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	background: var(--mt-accent);
	border: 0;
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(245, 130, 32, 0.3);
	cursor: pointer;
	transition: background-color 160ms ease, transform 160ms ease;
}

.dmp-mt__btn:hover:not(:disabled) {
	background: var(--mt-accent-dark);
	transform: translateY(-1px);
}

.dmp-mt__btn:disabled {
	opacity: 0.65;
	cursor: default;
}

.dmp-mt__link {
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 8px;
	font: inherit;
	font-size: 0.875rem;
	color: var(--mt-ink-soft);
	background: none;
	border: 0;
	cursor: pointer;
	text-decoration: underline;
}

.dmp-mt__otpnote {
	margin: 0 0 16px;
	padding: 12px 14px;
	font-size: 0.9rem;
	color: #7a4a12;
	background: rgba(245, 130, 32, 0.1);
	border-radius: 10px;
}

.dmp-mt__err {
	margin: 0 0 12px;
	padding: 10px 12px;
	font-size: 0.875rem;
	color: #b32d2e;
	background: #fdf0f0;
	border-radius: 10px;
}

.dmp-mt__err[hidden] {
	display: none;
}

/* Results */
.dmp-mt__results {
	margin-top: 32px;
}

.dmp-mt__day {
	margin-bottom: 28px;
}

.dmp-mt__daylabel {
	margin: 0 0 14px;
	padding-bottom: 8px;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--mt-ink);
	border-bottom: 2px solid var(--mt-line);
}

.dmp-mt__event {
	margin-bottom: 16px;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius);
	box-shadow: 0 8px 26px rgba(17, 18, 20, 0.06);
}

.dmp-mt__eventhead {
	margin-bottom: 16px;
}

.dmp-mt__eventtitle {
	margin: 0 0 4px;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--mt-ink);
}

.dmp-mt__meta {
	margin: 0;
	font-size: 0.9rem;
	color: var(--mt-ink-soft);
}

/* Combined QR block */
.dmp-mt__combined {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 16px;
	background: linear-gradient(135deg, #fff6ee, #fdeede);
	border: 1px solid rgba(245, 130, 32, 0.25);
	border-radius: 14px;
}

.dmp-mt__qr {
	flex: 0 0 auto;
	background: #fff;
	padding: 8px;
	border-radius: 10px;
	line-height: 0;
}

.dmp-mt__qr svg {
	display: block;
	width: 100%;
	height: auto;
}

.dmp-mt__qr--big {
	width: 150px;
	height: 150px;
}

.dmp-mt__badge {
	display: inline-block;
	margin-bottom: 6px;
	padding: 4px 12px;
	font-size: 0.8rem;
	font-weight: 700;
	color: #fff;
	background: var(--mt-accent);
	border-radius: 999px;
}

.dmp-mt__combinedinfo p {
	margin: 0;
	font-size: 0.875rem;
	color: var(--mt-ink-soft);
	line-height: 1.5;
}

/* Individual tickets */
.dmp-mt__individual {
	margin-top: 14px;
}

.dmp-mt__individual summary {
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--mt-accent);
	padding: 6px 0;
}

.dmp-mt__tickets {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
	margin-top: 12px;
}

.dmp-mt__single .dmp-mt__ticket,
.dmp-mt__ticket {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 14px;
	background: var(--mt-wash);
	border: 1px solid var(--mt-line);
	border-radius: 12px;
	text-align: center;
}

.dmp-mt__single {
	display: flex;
}

.dmp-mt__single .dmp-mt__ticket {
	width: 100%;
	flex-direction: row;
	justify-content: flex-start;
	gap: 16px;
	text-align: left;
}

.dmp-mt__ticket .dmp-mt__qr {
	width: 130px;
	height: 130px;
	background: #fff;
	border: 1px solid var(--mt-line);
}

.dmp-mt__ticketmeta {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dmp-mt__ticketmeta strong {
	font-size: 0.95rem;
	color: var(--mt-ink);
}

.dmp-mt__ticketmeta small {
	font-size: 0.8rem;
	color: var(--mt-ink-soft);
}

/* Empty */
.dmp-mt__empty {
	padding: 28px;
	text-align: center;
	background: #fff;
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius);
}

.dmp-mt__empty p {
	margin: 0 0 6px;
}

.dmp-mt__emptyhint {
	font-size: 0.875rem;
	color: var(--mt-ink-soft);
}

/* Mobile */
@media (max-width: 560px) {
	.dmp-mt__combined {
		flex-direction: column;
		text-align: center;
	}

	.dmp-mt__single .dmp-mt__ticket {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dmp-mt__btn,
	.dmp-mt__field input {
		transition: none;
	}
}
