/* TripiFun Registration — Premium self-contained page design */

/* --- Page isolation (hello-elementor / Elementor) --- */
.tripifun-registration-page {
	background: #eef2f7 !important;
}

.tripifun-registration-page .entry-title,
.tripifun-registration-page h1.entry-title,
.tripifun-registration-page .page-header {
	display: none !important;
}

.tripifun-registration-page .site-main,
.tripifun-registration-page .elementor-section-wrap,
.tripifun-registration-page .elementor-widget-shortcode {
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
}

.tripifun-registration-page .elementor-widget-container {
	padding: 0 !important;
}

/* --- Page shell + Hero --- */
.tf-reg-page {
	position: relative;
	width: 100%;
	min-height: 100vh;
	background: #eef2f7;
}

.tf-reg-hero {
	position: relative;
	min-height: clamp(280px, 38vh, 420px);
	display: flex;
	align-items: center;
	justify-content: center;
	background-image: var(--tf-hero-image);
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.tf-reg-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(17, 19, 48, 0.72) 0%,
		rgba(17, 19, 48, 0.45) 45%,
		rgba(255, 104, 26, 0.35) 100%
	);
}

.tf-reg-hero__content {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 2.5rem 1.25rem 5rem;
	max-width: 720px;
	color: #fff;
}

.tf-reg-hero__title {
	font-family: 'Rubik', 'Heebo', sans-serif;
	font-size: clamp(1.75rem, 5vw, 2.75rem);
	font-weight: 700;
	margin: 0 0 0.65rem;
	line-height: 1.2;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.tf-reg-hero__subtitle {
	font-size: clamp(1rem, 2.5vw, 1.15rem);
	margin: 0 0 1.25rem;
	opacity: 0.95;
	line-height: 1.5;
}

.tf-reg-hero__trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.65rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.88rem;
	font-weight: 500;
}

.tf-reg-hero__trust li {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.tf-reg-hero__trust-icon {
	font-size: 1rem;
	line-height: 1;
}

.tf-reg-shell {
	position: relative;
	z-index: 2;
	max-width: 920px;
	margin: -4rem auto 3rem;
	padding: 0 1rem;
	padding-bottom: env(safe-area-inset-bottom, 0);
}

.tf-reg {
	--tf-brand: #ff681a;
	--tf-brand-hover: #e85a10;
	--tf-brand-soft: rgba(255, 104, 26, 0.14);
	--tf-primary: #ff681a;
	--tf-primary-hover: #e85a10;
	--tf-primary-soft: rgba(255, 104, 26, 0.14);
	--tf-success: #22c55e;
	--tf-success-hover: #16a34a;
	--tf-success-soft: rgba(34, 197, 94, 0.12);
	--tf-accent: #37d4d9;
	--tf-text: #111330;
	--tf-text-muted: #64748b;
	--tf-border: #e2e8f0;
	--tf-bg: #ffffff;
	--tf-surface: #f8fafc;
	--tf-error: #ef4444;
	--tf-info: #3b82f6;
	--tf-review: #f59e0b;
	--tf-review-bg: #fffbeb;
	--tf-radius: 24px;
	--tf-radius-sm: 14px;
	--tf-shadow: 0 4px 24px rgba(17, 19, 48, 0.08);
	--tf-shadow-lg: 0 28px 56px rgba(17, 19, 48, 0.16);
	--tf-touch: 52px;
	font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--tf-text);
	line-height: 1.55;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border-radius: var(--tf-radius);
	overflow: hidden;
	background: var(--tf-bg);
	box-shadow: var(--tf-shadow-lg);
}

.tf-reg *,
.tf-reg *::before,
.tf-reg *::after {
	box-sizing: border-box;
}

.tf-reg__intro {
	display: none;
}

/* Progress */
.tf-reg__progress-wrap {
	padding: 1.35rem 1.5rem 0.85rem;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	position: sticky;
	top: 0;
	z-index: 4;
	border-bottom: 1px solid var(--tf-border);
}

.tf-reg__steps {
	display: flex;
	justify-content: space-between;
	gap: 0.35rem;
	list-style: none;
	margin: 0 0 0.85rem;
	padding: 0;
}

.tf-reg__step-dot {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	color: var(--tf-text-muted);
	font-size: 0.75rem;
	font-weight: 500;
	text-align: center;
	position: relative;
}

.tf-reg__step-dot:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 16px;
	left: calc(50% + 18px);
	width: calc(100% - 36px);
	height: 2px;
	background: var(--tf-border);
	z-index: 0;
	transition: background 0.25s ease;
}

.tf-reg__step-dot--done:not(:last-child)::after,
.tf-reg__step-dot--active:not(:last-child)::after {
	background: linear-gradient(90deg, var(--tf-brand), var(--tf-accent));
}

.tf-reg__step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--tf-surface);
	border: 2px solid var(--tf-border);
	font-family: 'Rubik', 'Heebo', sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	position: relative;
	z-index: 1;
	transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}

.tf-reg__step-dot--active .tf-reg__step-num {
	background: var(--tf-brand);
	border-color: var(--tf-brand);
	color: #fff;
	box-shadow: 0 0 0 4px var(--tf-brand-soft);
	transform: scale(1.05);
}

.tf-reg__step-dot--done .tf-reg__step-num {
	background: #fff7ed;
	border-color: var(--tf-brand);
	color: var(--tf-brand);
}

.tf-reg__step-dot--active {
	color: var(--tf-text);
	font-weight: 600;
}

.tf-reg__step-label {
	line-height: 1.2;
}

.tf-reg__progress {
	height: 5px;
	background: var(--tf-border);
	border-radius: 999px;
	overflow: hidden;
}

.tf-reg__progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--tf-brand), var(--tf-accent));
	border-radius: 999px;
	transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	width: 0;
}

.tf-reg__progress-text {
	font-size: 0.85rem;
	color: var(--tf-text-muted);
	text-align: center;
	margin: 0.5rem 0 0;
}

/* Main */
.tf-reg__main {
	padding: 1.85rem 1.75rem 2.25rem;
	background: var(--tf-bg);
}

.tf-reg__step[hidden] {
	display: none !important;
}

.tf-reg__step--active {
	display: block;
	animation: tf-fade-in 0.3s ease;
}

@keyframes tf-fade-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.tf-reg__title {
	font-family: 'Rubik', 'Heebo', sans-serif;
	font-size: 1.4rem;
	font-weight: 700;
	text-align: center;
	margin: 0;
	color: var(--tf-text);
	line-height: 1.35;
	width: 100%;
}

.tf-reg__step-header {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.65rem;
	margin-bottom: 1rem;
}

.tf-reg__flow {
	margin: 0;
}

.tf-reg__subtitle,
.tf-reg__instruction {
	text-align: center;
	color: var(--tf-text-muted);
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
}

.tf-reg__instruction {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tf-reg__passenger-label {
	text-align: center;
	font-weight: 600;
	color: var(--tf-brand);
	margin-bottom: 1rem;
	font-size: 0.95rem;
}

.tf-reg__back {
	justify-self: start;
	background: var(--tf-bg);
	border: 1px solid var(--tf-border);
	border-radius: 999px;
	padding: 0.5rem 0.95rem;
	min-height: 40px;
	cursor: pointer;
	font-size: 0.85rem;
	font-weight: 500;
	font-family: inherit;
	color: var(--tf-text);
	box-shadow: var(--tf-shadow);
	display: inline-flex;
	align-items: center;
	flex-direction: row;
	gap: 0.35rem;
	transition: background 0.2s, border-color 0.2s, transform 0.15s;
	white-space: nowrap;
}

.tf-reg__step-header .tf-reg__title {
	text-align: center;
}

#step-review .tf-reg__title {
	font-size: 1.15rem;
}

.tf-reg__back-arrow {
	font-size: 1.1rem;
	line-height: 1;
}

.tf-reg__back:hover,
.tf-reg__back:focus {
	background: var(--tf-surface);
	border-color: var(--tf-brand);
	outline: 2px solid var(--tf-brand);
	outline-offset: 2px;
}

.tf-reg__step {
	position: relative;
}

.tf-reg__passport-preview {
	margin: 0 0 1.25rem;
	padding: 1rem;
	background: var(--tf-surface);
	border: 1px solid var(--tf-border);
	border-radius: var(--tf-radius-sm);
	text-align: center;
}

.tf-reg__passport-preview-label {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--tf-text-muted);
}

.tf-reg__passport-preview-img {
	display: block;
	max-width: 100%;
	max-height: 220px;
	margin: 0 auto;
	border-radius: var(--tf-radius-sm);
	object-fit: contain;
	box-shadow: var(--tf-shadow);
}

/* Type selection */
.tf-reg__type-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.tf-reg__type-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1.35rem 1rem;
	border: 2px solid var(--tf-border);
	border-radius: var(--tf-radius);
	cursor: pointer;
	transition: border-color 0.25s, box-shadow 0.25s, background 0.25s, transform 0.2s;
	background: linear-gradient(180deg, #fff, var(--tf-surface));
	position: relative;
}

.tf-reg__type-card:hover {
	border-color: var(--tf-brand);
	transform: translateY(-2px);
	box-shadow: var(--tf-shadow);
}

.tf-reg__type-card input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.tf-reg__type-card:has(input:checked) {
	border-color: var(--tf-brand);
	background: linear-gradient(180deg, #fff7ed, #ffedd5);
	box-shadow: 0 0 0 3px var(--tf-brand-soft);
	transform: scale(1.02);
}

.tf-reg__type-card:focus-within {
	outline: 2px solid var(--tf-brand);
	outline-offset: 3px;
}

.tf-reg__type-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 0.65rem;
	color: var(--tf-brand);
	transition: transform 0.2s, color 0.2s;
}

.tf-reg__type-card:has(input:checked) .tf-reg__type-icon {
	color: var(--tf-brand-hover);
	transform: scale(1.1);
}

.tf-reg__type-label {
	font-family: 'Rubik', 'Heebo', sans-serif;
	font-weight: 600;
	font-size: 1rem;
}

/* Traveler stepper */
.tf-reg__field--count {
	margin-bottom: 1.5rem;
	text-align: center;
	max-width: 280px;
	margin-left: auto;
	margin-right: auto;
	overflow: hidden;
	transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
}

.tf-reg__field--count[hidden] {
	display: none;
}

.tf-reg__field--count.tf-reg__field--visible {
	animation: tf-slide-down 0.35s ease;
}

@keyframes tf-slide-down {
	from { opacity: 0; max-height: 0; transform: translateY(-8px); }
	to { opacity: 1; max-height: 200px; transform: translateY(0); }
}

.tf-reg__traveler-stepper {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--tf-surface);
	border: 2px solid var(--tf-border);
	border-radius: 999px;
	padding: 0.35rem;
	margin-top: 0.5rem;
}

.tf-reg__stepper-btn {
	width: var(--tf-touch);
	height: var(--tf-touch);
	border: none;
	border-radius: 50%;
	background: var(--tf-bg);
	color: var(--tf-text);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
	transition: background 0.2s, color 0.2s, transform 0.15s;
	font-family: 'Rubik', sans-serif;
}

.tf-reg__stepper-btn:hover:not(:disabled) {
	background: var(--tf-brand);
	color: #fff;
	transform: scale(1.05);
}

.tf-reg__stepper-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.tf-reg__stepper-value {
	min-width: 3rem;
	text-align: center;
	font-family: 'Rubik', sans-serif;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--tf-brand);
}

.tf-reg__stepper-hint {
	font-size: 0.8rem;
	color: var(--tf-text-muted);
	margin: 0.5rem 0 0;
}

/* Form fields */
.tf-reg__section {
	border: none;
	margin: 0 0 1.25rem;
	padding: 1.25rem;
	background: var(--tf-surface);
	border-radius: var(--tf-radius-sm);
	border: 1px solid var(--tf-border);
}

.tf-reg__section-title {
	font-family: 'Rubik', 'Heebo', sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--tf-text);
	margin: 0 0 0.85rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--tf-brand-soft);
}

.tf-reg__section-hint {
	font-size: 0.85rem;
	color: var(--tf-text-muted);
	margin: -0.25rem 0 0.75rem;
}

.tf-reg__optional {
	font-weight: 400;
	color: var(--tf-text-muted);
	font-size: 0.85rem;
}

.tf-reg__grid--optional .tf-reg__field {
	max-width: 50%;
}

.tf-reg__input--ocr-filled {
	background-color: #f0fdf4;
	border-color: #86efac;
}

.tf-reg__input--ocr-review {
	background-color: var(--tf-review-bg);
	border-color: #fcd34d;
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.tf-reg__field-hint--review {
	font-size: 0.78rem;
	color: #b45309;
	margin-top: 0.2rem;
}

.tf-reg__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.tf-reg__field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.tf-reg__field--full {
	grid-column: 1 / -1;
}

.tf-reg__field label {
	font-size: 0.9rem;
	font-weight: 500;
}

.tf-reg__required {
	color: var(--tf-error);
}

.tf-reg__input,
.tf-reg__select {
	width: 100%;
	min-height: var(--tf-touch);
	padding: 0.7rem 0.95rem;
	border: 1.5px solid var(--tf-border);
	border-radius: var(--tf-radius-sm);
	font-size: 1rem;
	font-family: inherit;
	background: var(--tf-bg);
	color: var(--tf-text);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.tf-reg__input:focus,
.tf-reg__select:focus {
	outline: none;
	border-color: var(--tf-brand);
	box-shadow: 0 0 0 4px var(--tf-brand-soft);
}

.tf-reg__input--error {
	border-color: var(--tf-error);
}

.tf-reg__field-error {
	color: var(--tf-error);
	font-size: 0.8rem;
}

/* Upload zone */
.tf-reg__upload-zone {
	border: 2px dashed var(--tf-border);
	border-radius: var(--tf-radius);
	padding: 2.5rem 1.5rem;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.25s, background 0.25s, transform 0.2s;
	margin-bottom: 1.5rem;
	min-height: 260px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, #fff, var(--tf-surface));
}

.tf-reg__upload-zone:hover,
.tf-reg__upload-zone:focus {
	border-color: var(--tf-brand);
	background: #fff7ed;
	outline: none;
	transform: translateY(-1px);
}

.tf-reg__upload-zone--dragover {
	border-color: var(--tf-brand);
	background: #fff7ed;
}

.tf-reg__file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.tf-reg__upload-icon {
	font-size: 2.5rem;
	display: block;
	margin-bottom: 0.5rem;
}

.tf-reg__upload-hint {
	color: var(--tf-text-muted);
	font-size: 0.9rem;
}

.tf-reg__upload-formats {
	font-size: 0.8rem;
	color: var(--tf-text-muted);
	margin-top: 0.5rem;
}

.tf-reg__upload-status {
	background: linear-gradient(135deg, var(--tf-success), var(--tf-success-hover));
	color: #fff;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	font-size: 0.85rem;
	margin-bottom: 0.75rem;
	display: inline-block;
}

.tf-reg__preview-img {
	max-width: 100%;
	max-height: 240px;
	border-radius: var(--tf-radius-sm);
	object-fit: contain;
}

.tf-reg__upload-filename {
	font-size: 0.85rem;
	color: var(--tf-text-muted);
	margin: 0.5rem 0;
	word-break: break-all;
}

/* Loading */
.tf-reg__loading {
	text-align: center;
	padding: 2rem;
}

.tf-reg__spinner {
	width: 44px;
	height: 44px;
	border: 3px solid var(--tf-border);
	border-top-color: var(--tf-brand);
	border-radius: 50%;
	animation: tf-spin 0.8s linear infinite;
	margin: 0 auto 1rem;
}

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

/* Buttons */
.tf-reg__btn {
	display: block;
	width: 100%;
	min-height: var(--tf-touch);
	padding: 0.9rem 1.5rem;
	border: none;
	border-radius: var(--tf-radius-sm);
	font-size: 1.05rem;
	font-weight: 600;
	font-family: 'Rubik', 'Heebo', sans-serif;
	cursor: pointer;
	transition: background 0.2s, opacity 0.2s, transform 0.15s;
	text-align: center;
}

.tf-reg__btn--primary {
	background: linear-gradient(135deg, var(--tf-brand) 0%, var(--tf-brand-hover) 100%);
	color: #fff;
	margin-top: 1.1rem;
	box-shadow: 0 8px 24px rgba(255, 104, 26, 0.32);
}

.tf-reg__btn--primary:hover:not(:disabled) {
	background: linear-gradient(135deg, var(--tf-brand-hover) 0%, #d14d0a 100%);
	transform: translateY(-2px);
}

.tf-reg__btn--primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.tf-reg__btn--primary:focus {
	outline: 2px solid var(--tf-brand);
	outline-offset: 3px;
}

.tf-reg__btn--skip {
	background: none;
	color: var(--tf-error);
	margin-top: 0.75rem;
	font-weight: 500;
	min-height: auto;
}

.tf-reg__btn--skip:hover {
	text-decoration: underline;
}

.tf-reg__btn--text {
	background: none;
	color: var(--tf-info);
	width: auto;
	padding: 0.5rem;
	font-size: 0.9rem;
	min-height: auto;
}

/* Alerts */
.tf-reg__alert {
	padding: 0.85rem 1rem;
	border-radius: var(--tf-radius-sm);
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

.tf-reg__alert--info {
	background: #eff6ff;
	color: #1e40af;
	border: 1px solid #bfdbfe;
}

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

.tf-reg__payment-note {
	text-align: center;
	font-size: 0.85rem;
	color: var(--tf-text-muted);
	margin-bottom: 0.5rem;
}

.tf-reg__payment-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	text-align: center;
	font-size: 0.85rem;
	color: var(--tf-text-muted);
	background: var(--tf-surface);
	border: 1px solid var(--tf-border);
	border-radius: var(--tf-radius-sm);
	padding: 0.65rem 1rem;
	margin: 0 0 1.25rem;
}

.tf-reg__payment-secure-icon {
	font-size: 1rem;
	line-height: 1;
}

.tf-reg__grid--payment {
	grid-template-columns: 1fr 1fr;
}

.tf-reg__skip-hint {
	text-align: center;
	font-size: 0.85rem;
	color: var(--tf-info);
	text-decoration: underline;
	cursor: pointer;
}

.tf-reg__disclaimer {
	text-align: center;
	font-size: 0.85rem;
	color: var(--tf-text-muted);
	margin: 1.5rem 0;
	line-height: 1.6;
}

/* Review */
.tf-reg__review-section {
	border: 1px solid var(--tf-border);
	border-radius: var(--tf-radius-sm);
	padding: 1.25rem;
	margin-bottom: 1.1rem;
	position: relative;
	background: var(--tf-surface);
	box-shadow: var(--tf-shadow);
}

.tf-reg__review-section h3 {
	margin: 0 0 0.75rem;
	font-family: 'Rubik', sans-serif;
	font-size: 1rem;
	color: var(--tf-brand);
}

.tf-reg__review-edit {
	position: absolute;
	top: 1rem;
	left: 1rem;
	background: none;
	border: none;
	color: var(--tf-error);
	cursor: pointer;
	font-size: 0.85rem;
	font-family: inherit;
	text-decoration: underline;
}

.tf-reg__review-row {
	display: flex;
	justify-content: space-between;
	padding: 0.35rem 0;
	border-bottom: 1px solid #f1f5f9;
	font-size: 0.9rem;
	gap: 1rem;
}

.tf-reg__review-row:last-child {
	border-bottom: none;
}

.tf-reg__review-label {
	color: var(--tf-text-muted);
	flex-shrink: 0;
}

.tf-reg__review-value {
	font-weight: 500;
	text-align: left;
	word-break: break-word;
}

/* Success */
.tf-reg__success {
	text-align: center;
	padding: 3rem 1rem;
	background: var(--tf-bg);
}

.tf-reg__success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	background: linear-gradient(135deg, var(--tf-success), var(--tf-success-hover));
	color: #fff;
	border-radius: 50%;
	font-size: 2rem;
	margin-bottom: 1rem;
	box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

.tf-reg__success h2 {
	font-family: 'Rubik', sans-serif;
	color: var(--tf-success);
	margin-bottom: 0.5rem;
}

/* Screen reader only */
.tf-reg__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Focus visible */
.tf-reg :focus-visible {
	outline: 2px solid var(--tf-brand);
	outline-offset: 2px;
}

/* Sticky primary actions on mobile */
@media (max-width: 640px) {
	.tf-reg__step .tf-reg__btn--primary {
		position: sticky;
		bottom: 0.75rem;
		z-index: 3;
		margin-bottom: env(safe-area-inset-bottom, 0);
	}

	.tf-reg-hero__content {
		padding: 2rem 1rem 4.5rem;
	}

	.tf-reg-hero__trust {
		flex-direction: column;
		align-items: center;
	}

	.tf-reg-shell {
		margin: -3rem auto 1.5rem;
		padding: 0 0.75rem;
	}

	.tf-reg__progress-wrap {
		padding: 1rem 0.85rem 0.75rem;
		padding-top: calc(1rem + env(safe-area-inset-top, 0));
	}

	.tf-reg__intro {
		display: none;
	}

	.tf-reg__main {
		padding: 1rem;
	}

	.tf-reg__grid {
		grid-template-columns: 1fr;
	}

	.tf-reg__type-grid {
		grid-template-columns: 1fr 1fr;
		gap: 0.75rem;
	}

	.tf-reg__type-card {
		padding: 1rem 0.65rem;
	}

	.tf-reg__title {
		font-size: 1.15rem;
	}

	.tf-reg__upload-zone {
		padding: 1.25rem 0.85rem;
		min-height: 160px;
	}

	.tf-reg__preview-img {
		max-height: 180px;
	}

	.tf-reg__review-row {
		flex-direction: column;
		gap: 0.15rem;
	}

	.tf-reg__review-value {
		text-align: right;
	}

	.tf-reg__back {
		padding: 0.45rem 0.75rem;
		font-size: 0.8rem;
	}

	.tf-reg__step-header {
		gap: 0.5rem;
	}

	.tf-reg__passport-preview-img {
		max-height: 180px;
	}

	.tf-reg__grid--optional .tf-reg__field {
		max-width: 100%;
	}

	.tf-reg__steps {
		gap: 0.1rem;
	}

	.tf-reg__step-num {
		width: 28px;
		height: 28px;
		font-size: 0.78rem;
	}

	.tf-reg__step-dot:not(:last-child)::after {
		top: 14px;
		left: calc(50% + 16px);
		width: calc(100% - 32px);
	}
}

@media (max-width: 400px) {
	.tf-reg__type-grid {
		grid-template-columns: 1fr;
	}

	.tf-reg__step-label {
		display: none;
	}
}

@media (min-width: 641px) and (max-width: 768px) {
	.tf-reg-shell {
		margin-top: -3.5rem;
	}

	.tf-reg__grid {
		grid-template-columns: 1fr;
	}
}

/* Theme integration */
.page .tf-reg {
	margin-top: 0;
}
