/* CSS Variables for easy branding updates */
:root {
	--primary-blue: #1e3a8a;
	--dark-blue: #0f172a;
	--gold: #f59e0b;
	--white: #ffffff;
	--light-gray: #f3f4f6;
	--border-gray: #e5e7eb;
	--error-red: #ef4444;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background-color: var(--light-gray);
	line-height: 1.6;
	color: #333;
}

.text-capitalize {
	text-transform: capitalize;
}

.bg-white {
	background-color: #ffffff;
}

.p-10 {
	padding-top: 10px;
}

/* --- RESPONSIVE NAVIGATION --- */
nav {
	background: var(--dark-blue);
	padding: 1rem 5%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: white;
}

.logo {
	font-weight: 800;
	font-size: 1.2rem;
	/* color: var(--gold); */
}

/* --- BANNER SECTION --- */
.auction-banner {
	width: 100%;
	background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(30, 58, 138, 0.8)),
		url('/images/reg_default_img.jpg?auto=format&fit=crop&q=80&w=1000') center/cover;
	color: white;
	text-align: center;
	padding: 30px 20px 100px 20px;
}

.live-tag {
	/* background: var(--error-red); */
	background: #A81010;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: bold;
	display: inline-block;
	margin-bottom: 1rem;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% {
		transform: scale(1);
		opacity: 1;
	}

	50% {
		transform: scale(1.05);
		opacity: 0.7;
	}

	100% {
		transform: scale(1);
		opacity: 1;
	}
}

/* --- MAIN FORM CONTAINER --- */
.main-wrapper {
	max-width: 800px;
	margin: -60px auto 40px;
	padding: 0 15px;
	width: 100%;
}

.promo-images {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
	justify-content: center;

}

.promo-images div {
	/* background: #ddd; */
	border-radius: 10px;
	overflow: hidden;
	height: 180px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.promo-images img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.form-card {
	background: var(--white);
	padding: 30px;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-title {
	border-bottom: 2px solid var(--light-gray);
	margin: 25px 0 15px;
	padding-bottom: 5px;
	color: var(--primary-blue);
	font-size: 1.1rem;
}

/* --- RESPONSIVE GRID SYSTEM --- */
.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	/* Two columns by default */
	gap: 20px;
	margin-bottom: 15px;
}

.form-group {
	display: flex;
	flex-direction: column;
}

label {
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 6px;
}

input,
select,
textarea {
	padding: 12px;
	border: 1px solid var(--border-gray);
	border-radius: 8px;
	font-size: 1rem;
	width: 100%;
	transition: border 0.3s;
}

input:focus {
	border-color: var(--primary-blue);
	outline: none;
}

/* --- PROFILE IMAGE UPLOAD --- */
.upload-box {
	text-align: center;
	border: 2px dashed var(--border-gray);
	padding: 20px;
	border-radius: 10px;
	margin-bottom: 20px;
	background: #fafafa;
}

.preview {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 10px;
	display: none;
	border: 3px solid var(--gold);
}

/* --- BUTTONS --- */
.btn-submit {
	background: var(--primary-blue);
	color: white;
	border: none;
	padding: 16px;
	border-radius: 8px;
	font-size: 1.1rem;
	font-weight: bold;
	cursor: pointer;
	width: 100%;
	margin-top: 20px;
	transition: 0.3s;
}

.btn-submit:hover {
	background: var(--dark-blue);
}

.ad-section {
	width: 100%;
	margin: 30px auto;
	text-align: center;
}

.ad-placeholder {
	background: #eee;
	color: #888;
	padding: 20px;
	font-size: 0.8rem;
	min-height: 90px;
	border-radius: 8px;
}

/* --- UPDATED SPONSOR & AD SECTION --- */
.sponsors-container {
	background: #fff;
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	margin-bottom: 20px;
}

.sponsors-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 20px;
}

.sponsor-logo {
	flex: 0 1 150px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sponsor-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.sponsor-logo img:hover {
	transform: scale(1.05);
}

.ad-placeholder {
	background: #eee;
	color: #888;
	padding: 15px;
	font-size: 0.8rem;
	min-height: 90px;
	border-radius: 8px;
}

/* --- FOOTER --- */
footer {
	background: var(--dark-blue);
	color: white;
	padding: 40px 20px;
	text-align: center;
	font-size: 0.9rem;
}

#status-overlay {
	background: rgba(255, 255, 255, 0.98);
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	border-radius: 12px;
	padding: 20px;
}

.status-icon {
	font-size: 60px;
	margin-bottom: 20px;
}

.success-text {
	color: #10b981;
}

.error-text {
	color: #ef4444;
}

.qr-wrapper {
	position: relative;
	display: inline-block;
	cursor: pointer;
	max-width: 150px;
	max-height: 150px;
}

.qr-image {
	width: 100%;
	height: 100%;
	display: block;
	border-radius: 10px;
}

/* The background overlay */
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	/* Dark semi-transparent */
	z-index: 9999;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: white;
	font-family: sans-serif;
}

/* The simple white spinner */
.spinner {
	width: 50px;
	height: 50px;
	border: 5px solid #f3f3f3;
	border-top: 5px solid #3498db;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 15px;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Class to hide the loader */
.hidden {
	display: none;
}

/* --- MOBILE RESPONSIVENESS (Media Queries) --- */
@media (max-width: 600px) {
	.form-row .promo-images {
		grid-template-columns: 1fr;
		/* Stack inputs on small screens */
	}

	.auction-banner h1 {
		font-size: 1.0rem;
	}

	.auction-banner p {
		font-size: 10px;
	}

	.form-card {
		padding: 20px;
	}

	.promo-images div {
		height: 150px;
	}

	.hand-overlay {
		position: absolute;
		display: block !important;
		top: 50%;
		left: 50%;
		font-size: 30px;
		pointer-events: none;
		/* Allows click to pass through to the QR */
		transform: translate(-50%, -50%);
		animation: tapFinger 1s infinite;
		text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
	}

	@keyframes tapFinger {

		0%,
		100% {
			transform: translate(-50%, -50%) scale(1);
		}

		50% {
			transform: translate(-50%, -50%) scale(0.8);
		}
	}


}

/* Overlay background */
.modal-overlay {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
}

/* Bottom Sheet */
.bottom-sheet {
	position: absolute;
	bottom: 0;
	width: 100%;
	background: #fff;
	border-radius: 20px 20px 0 0;
	padding: 20px;
	box-sizing: border-box;
	animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
	from {
		transform: translateY(100%);
	}

	to {
		transform: translateY(0);
	}
}

/* Visual Handle at top */
.sheet-handle {
	width: 40px;
	height: 5px;
	background: #ccc;
	border-radius: 10px;
	margin: 0 auto 15px;
}

.sheet-header {
	text-align: center;
	margin-bottom: 20px;
}

.sheet-header h4 {
	margin: 0;
	font-size: 18px;
	color: #333;
}

.sheet-header p {
	margin: 5px 0 0;
	font-size: 14px;
	color: #777;
}

/* App Items */
.app-grid {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.app-item {
	display: flex;
	align-items: center;
	padding: 12px;
	border: 1px solid #eee;
	border-radius: 12px;
	cursor: pointer;
	transition: background 0.2s;
}

.app-item:active {
	background: #f5f5f5;
}

.icon-wrapper {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 15px;
}

.icon-wrapper img {
	width: 30px;
}

.app-item span {
	font-weight: 600;
	color: #444;
	font-size: 16px;
}

.cancel-btn {
	width: 100%;
	padding: 15px;
	margin-top: 20px;
	border: none;
	background: #f8f8f8;
	color: #ff3b30;
	font-weight: bold;
	border-radius: 12px;
}