.zp-f1 {
	--zp-f1-navy: #0d0e34;
	--zp-f1-yellow: #ffd200;
	--zp-f1-white: #ffffff;
	font-family: "Inter", sans-serif;
	background-color: var(--zp-f1-navy);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 16px;
	box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.12);
	padding: 20px;
	max-width: 673px;
	width: 100%;
	box-sizing: border-box;
	position: relative;
}

.zp-f1 *,
.zp-f1 *::before,
.zp-f1 *::after {
	box-sizing: border-box;
}

.zp-f1-step {
	display: none;
	flex-direction: column;
	gap: 24px;
}

.zp-f1-step--active {
	display: flex;
}

/* The callback state is a separate internal view; the normal form remains
   mounted so the same widget can resume its ordinary flow after a retry. */
.zp-f1-payment-return {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	min-height: 300px;
	justify-content: center;
	padding: clamp(28px, 6vw, 64px) clamp(20px, 6vw, 58px);
	text-align: center;
}

.zp-f1-payment-return[hidden] {
	display: none;
}

.zp-f1-payment-return [data-zp-payment-retry][hidden] {
	display: none !important;
}

.zp-f1-payment-return-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(255, 255, 255, 0.25);
	border-top-color: var(--zp-f1-yellow);
	border-radius: 50%;
	animation: zp-f1-payment-return-spin 0.8s linear infinite;
}

.zp-f1-payment-return .zp-f1-heading,
.zp-f1-payment-return .zp-f1-subheading {
	margin: 0;
}

@keyframes zp-f1-payment-return-spin {
	to { transform: rotate(360deg); }
}

.zp-f1-payment-return[data-zp-payment-state="paid"] {
	border-color: rgba(255, 210, 0, 0.65);
}

.zp-f1-payment-return[data-zp-payment-state="failed"],
.zp-f1-payment-return[data-zp-payment-state="cancelled"],
.zp-f1-payment-return[data-zp-payment-state="error"] {
	border-color: rgba(255, 122, 26, 0.75);
}

.zp-f1[data-zp-payment-return-active="1"] > .zp-f1-step,
.zp-f1[data-zp-payment-return-active="1"] > .zp-f1-lightbox,
.zp-f1[data-zp-payment-return-active="1"] > .zp-f1-submit-overlay {
	display: none !important;
}

/* Submission feedback: blocks duplicate clicks while the server stores the order and sends emails. */
.zp-f1-submit-overlay {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 20px;
	border-radius: inherit;
	background: rgba(13, 14, 52, 0.94);
	backdrop-filter: blur(3px);
	color: var(--zp-f1-white);
	text-align: center;
}

.zp-f1-submit-overlay[hidden] {
	display: none;
}

.zp-f1-submit-spinner {
	width: 48px;
	height: 48px;
	border: 5px solid rgba(255, 255, 255, 0.22);
	border-top-color: #ff7a1a;
	border-radius: 50%;
	animation: zp-f1-spin 0.8s linear infinite;
}

.zp-f1-submit-overlay-text {
	font-size: 18px;
	font-weight: 800;
	line-height: 1.4;
}

@keyframes zp-f1-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.zp-f1-submit-spinner {
		animation-duration: 1.8s;
	}
}

.zp-f1-step-head {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
}

.zp-f1-heading {
	font-weight: 800;
	font-size: 32px;
	line-height: 1.3;
	color: #ffffff;
	margin: 0;
}

.zp-f1-subheading {
	font-weight: 400;
	font-size: 19px;
	line-height: 1.5;
	color: #ffffff;
	margin: 0;
}

.zp-f1-order-reference {
	display: inline-flex;
	align-self: flex-start;
	margin: 0;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255, 210, 0, 0.14);
	color: var(--zp-f1-yellow);
	font-size: 15px;
	font-weight: 800;
}

.zp-f1-order-reference[hidden] {
	display: none;
}

.zp-f1-fields {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.zp-f1-row-2col {
	display: flex;
	gap: 12px;
}

.zp-f1-row-2col .zp-f1-field {
	flex: 1 0 0;
	min-width: 0;
}

.zp-f1-field {
	position: relative;
	width: 100%;
}

.zp-f1-field-label {
	display: block;
	font-weight: 800;
	font-size: 16px;
	color: #ffffff;
	margin-bottom: 8px;
}

.zp-f1-field-box,
.zp-f1-input,
.zp-f1-textarea {
	width: 100%;
	background-color: var(--zp-f1-white);
	color: var(--zp-f1-navy);
	border: 1px solid transparent;
	border-radius: 16px;
	font-family: inherit;
	font-weight: 800;
	font-size: 19px;
	padding: 0 18px;
}

.zp-f1-field-box {
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	text-align: left;
}

.zp-f1-input {
	height: 60px;
}

.zp-f1-input::placeholder {
	color: rgba(13, 14, 52, 0.55);
	font-weight: 700;
}

.zp-f1-textarea {
	min-height: 140px;
	padding: 16px 18px;
	font-weight: 500;
	font-size: 16px;
	resize: vertical;
}

.zp-f1 .zp-f1-field-box input.zp-f1-date-input {
	flex: 1 0 0;
	min-width: 0;
	background: none;
	border: none;
	outline: none;
	padding: 0 !important;
	font: inherit;
	color: inherit;
	cursor: pointer;
	border: none !important;
}

.zp-f1 .zp-f1-field-box input.zp-f1-date-input:focus {
	color: inherit;
}

.zp-f1-date-input::placeholder {
	color: var(--zp-f1-navy);
	opacity: 1;
}

.zp-f1-chevron {
	flex-shrink: 0;
	color: var(--zp-f1-navy);
	transition: transform 0.15s ease;
}

.zp-f1-field--open .zp-f1-chevron {
	transform: rotate(180deg);
}

.zp-f1-error-msg {
	margin: 6px 2px 0;
	font-size: 13px;
	min-height: 16px;
	display: none;
}

.zp-f1-field--error .zp-f1-error-msg {
	display: block;
}

/* Dropdown (event / language) */
.zp-f1-dropdown-panel {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 20;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	padding: 6px;
	max-height: 220px;
	overflow-y: auto;
	background-color: #fff !important;
}

.zp-f1-field--open .zp-f1-dropdown-panel {
	display: block;
}

.zp-f1-dropdown-option {
	display: block;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	border-radius: 8px;
	padding: 10px 12px;
	font-family: inherit;
	font-weight: 700;
	font-size: 16px;
	color: var(--zp-f1-navy) !important;
	cursor: pointer;
	background: none !important;
}

.zp-f1-dropdown-option:hover,
.zp-f1-dropdown-option:focus-visible {
	background-color: rgba(13, 14, 52, 0.08);
}

/* Persons stepper */
.zp-f1-stepper-panel {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 20;
	background: var(--zp-f1-white);
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	align-items: center;
	gap: 16px;
	padding: 8px 16px;
}

.zp-f1-field--open .zp-f1-stepper-panel {
	display: flex;
}

.zp-f1-stepper-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--zp-f1-navy);
	background: none;
	color: var(--zp-f1-navy);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.zp-f1-stepper-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.zp-f1-stepper-count {
	min-width: 24px;
	text-align: center;
	font-weight: 800;
	color: var(--zp-f1-navy);
}

/* Checkbox */
.zp-f1-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	background-color: rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	padding: 14px 16px;
	color: #ffffff;
	font-size: 16px;
	cursor: pointer;
}

.zp-f1-checkbox,
.zp-f1-checkbox *,
.zp-f1-checkbox::before,
.zp-f1-checkbox::after {
	color: #ffffff;
}

.zp-f1-checkbox input {
	width: 18px;
	height: 18px;
	accent-color: var(--zp-f1-yellow);
}

.zp-f1-question-heading {
	font-weight: 800;
	font-size: 18px;
	color: #ffffff;
	margin: 4px 0 0;
}

.zp-f1-question-set[hidden] {
	display: none;
}

.zp-f1-question-set {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Total box */
.zp-f1-total-box {
	background-color: rgba(255, 210, 0, 0.1);
	border: 1px solid var(--zp-f1-yellow);
	border-radius: 12px;
	padding: 12px;
	text-align: center;
}

.zp-f1-total-label {
	display: block;
	font-weight: 700;
	font-size: 14px;
	color: var(--zp-f1-yellow);
}

.zp-f1-total-value {
	display: block;
	font-weight: 900;
	font-size: 40px;
	color: var(--zp-f1-yellow);
}

/* Buttons */
.zp-f1-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 56px;
	border-radius: 999px;
	border: none;
	font-family: inherit;
	font-weight: 800;
	font-size: 18px;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
}

.zp-f1-btn:disabled,
.zp-f1-btn[aria-busy="true"] {
	opacity: 0.65;
	cursor: wait;
}

.zp-f1-btn--primary {
	background-color: var(--zp-f1-yellow);
	color: var(--zp-f1-navy);
}

.zp-f1-btn--secondary {
	background-color: var(--zp-f1-white);
	color: var(--zp-f1-navy);
	text-align: center;
}

.zp-f1-btn--success {
	background-color: #2fbf71;
	color: #ffffff;
}

/* ---- Coupon apply/remove ---- */
.zp-f1-coupon-row {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

/* Native <input>/<button> — wrapper-scoped (0,2,0) so they beat the Elementor
   kit's `.elementor-kit-XXXX input/button` rules (0,1,1). */
.zp-f1 .zp-f1-coupon-input {
	flex: 1 1 auto;
	min-width: 0;
}

.zp-f1 .zp-f1-coupon-apply {
	flex: 0 0 auto;
	width: auto;
	height: 60px;
	padding: 0 24px;
	font-size: 15px;
	text-transform: none;
	white-space: nowrap;
}

.zp-f1 .zp-f1-coupon-apply.is-applied {
	background-color: transparent;
	color: var(--zp-f1-white);
	border: 1px solid rgba(255, 255, 255, 0.4);
}

.zp-f1-coupon-message {
	margin: 6px 2px 0;
	font-size: 13px;
	min-height: 16px;
}

.zp-f1-coupon-message:empty {
	margin: 0;
	min-height: 0;
}

.zp-f1-coupon-message--success {
	color: #2fbf71;
}

.zp-f1-coupon-message--error {
	color: #ff6b6b;
}

.zp-f1-coupon-message--info {
	color: rgba(255, 255, 255, 0.75);
}

.zp-f1-submit-message {
	display: block;
	min-height: 18px;
	margin: -8px 2px 0;
	color: #ffb4b4;
	font-size: 14px;
	font-weight: 700;
}

/* Team-event card */
.zp-f1-team-card {
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.zp-f1-team-heading {
	font-weight: 900;
	font-size: 24px;
	color: #ffffff;
	margin: 0;
}

.zp-f1-team-desc {
	font-weight: 400;
	font-size: 19px;
	color: #ffffff;
	margin: 0;
}

/* Thank you step */
.zp-f1-thankyou-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 850px;
	border: 1px solid var(--zp-f1-yellow);
	border-radius: 12px;
	overflow: hidden;
}

.zp-f1-thankyou-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.zp-f1-thankyou-video {
	position: absolute;
	inset: 0;
	cursor: pointer;
}

.zp-f1-thankyou-video-img {
	position: absolute;
	inset: 0;
}

.zp-f1-thankyou-video-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ponytail: card::after reuses the video gradient so the image-only branch (no .zp-f1-thankyou-video wrapper) also darkens toward the overlaid heading/text */
.zp-f1-thankyou-card:not(:has(.zp-f1-thankyou-video))::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		182deg,
		rgba(13, 14, 52, 0) 17%,
		rgba(13, 14, 52, 1) 99%
	);
	pointer-events: none;
}

.zp-f1-thankyou-video-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		182deg,
		rgba(13, 14, 52, 0) 17%,
		rgba(13, 14, 52, 1) 99%
	);
	pointer-events: none;
}

.zp-f1-thankyou-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.zp-f1-thankyou-video:hover .zp-f1-thankyou-play {
	transform: translate(-50%, -50%) scale(1.08);
}

.zp-f1-thankyou-play img {
	display: block;
}

.zp-f1-thankyou-heading,
.zp-f1-thankyou-text {
	position: relative;
	z-index: 1;
	padding: 0 16px;
	color: #ffffff;
}

.zp-f1-thankyou-heading {
	font-weight: 900;
	font-size: 24px;
	margin: 16px 0 8px;
}

.zp-f1-thankyou-text {
	font-weight: 400;
	font-size: 16px;
	margin: 0 0 16px;
}

/* Lightbox */
.zp-f1 .zp-f1-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.zp-f1 .zp-f1-lightbox-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
}

.zp-f1 .zp-f1-lightbox-content {
	position: relative;
	width: 80%;
	max-width: 960px;
	aspect-ratio: 16 / 9;
	max-height: 80vh;
}

.zp-f1 .zp-f1-lightbox-content.is-vertical {
	width: min(420px, 92vw, calc(80vh * 9 / 16));
	max-width: none;
	height: auto;
	max-height: none;
	aspect-ratio: 9 / 16;
}

.zp-f1 .zp-f1-lightbox-close {
	position: absolute;
	top: -56px;
	right: 0;
	width: 40px;
	height: 40px;
	background: #FF7A1A;
	border: none;
	border-radius: 50%;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	z-index: 10;
}

.zp-f1 .zp-f1-lightbox-close:hover {
	opacity: 0.85;
}

.zp-f1 .zp-f1-lightbox-video,
.zp-f1 .zp-f1-lightbox-video iframe,
.zp-f1 .zp-f1-lightbox-video video {
	width: 100%;
	height: 100%;
	border: none;
}

/* Review list (Step 4) */
.zp-f1-review-list {
	display: flex;
	flex-direction: column;
}

.zp-f1-review-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	color: #ffffff;
}

.zp-f1-review-row:first-child {
	padding-top: 0;
}

.zp-f1-review-label {
	font-weight: 400;
	font-size: 14px;
	opacity: 0.8;
}

.zp-f1-review-value {
	font-weight: 800;
	font-size: 16px;
	text-align: right;
	overflow-wrap: anywhere;
}

/* Flatpickr theming to match card */
.zp-f1 .flatpickr-calendar {
	font-family: inherit;
}

.zp-f1 .flatpickr-day.selected,
.zp-f1 .flatpickr-day.selected:hover {
	background: var(--zp-f1-yellow);
	border-color: var(--zp-f1-yellow);
	color: var(--zp-f1-navy);
}

/* Responsive */
@media (max-width: 480px) {
	.zp-f1-heading {
		font-size: 24px;
	}

	.zp-f1-subheading {
		font-size: 16px;
	}

	.zp-f1-row-2col {
		flex-direction: column;
	}

	.zp-f1-total-value {
		font-size: 32px;
	}

	.zp-f1-field-box,
	.zp-f1-input {
		font-size: 16px;
	}

	.zp-f1-thankyou-card {
		height: 440px;
	}
}
