:root {
	color-scheme: light dark;
}

body {
	margin: 0;
	padding: 0;
	font-family: "Segoe UI", Arial, sans-serif;
	background-image: url('background.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	color: #ffffff;
}

.overlay {
	background-color: rgba(255, 255, 255, 0.86);
	color: #0f172a;
	border-radius: 15px;
	padding: 45px 35px 40px;
	backdrop-filter: blur(4px);
	width: 90%;
	max-width: 480px;
	box-sizing: border-box;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

img.logo {
	width: 160px;
	margin-bottom: 20px;
	animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
	0% { transform: translateY(0px); }
	50% { transform: translateY(-6px); }
	100% { transform: translateY(0px); }
}

h1 {
	font-size: 2em;
	font-weight: 700;
	margin-bottom: 10px;
}

p {
	font-size: 1.05em;
	opacity: 0.9;
	margin-top: 0;
	margin-bottom: 14px;
}

#countdown {
	font-size: 1.1em;
	font-weight: 600;
	margin-bottom: 8px;
}

#status {
	font-size: 0.95em;
	opacity: 0.9;
	margin-bottom: 18px;
}

.progress-container {
	width: 100%;
	height: 14px;
	background-color: rgba(255,255,255,0.15);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 22px;
}

.progress-bar {
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #00b59b, #44e7c6);
	width: 0%;
	transition: width 0.5s ease-out;
}

.button {
	display: inline-block;
	padding: 11px 24px;
	font-size: 0.95em;
	border-radius: 999px;
	text-decoration: none;
	color: #ffffff;
	background-color: #00b59b;
	transition: background-color .25s, transform .15s, box-shadow .2s;
	font-weight: 600;
	border: none;
	cursor: pointer;
	box-shadow: 0 10px 20px rgba(34, 197, 165, 0.35);
}
.button:hover {
	background-color: #009780;
	transform: translateY(-1px) scale(1.03);
	box-shadow: 0 14px 26px rgba(34, 197, 165, 0.5);
}
.button:active {
	transform: translateY(0) scale(0.99);
	box-shadow: 0 8px 18px rgba(34, 197, 165, 0.4);
}

.confetti {
	position: fixed;
	top: -10px;
	width: 8px;
	height: 14px;
	opacity: 0.9;
	border-radius: 2px;
	pointer-events: none;
	animation-name: confetti-fall;
	animation-timing-function: linear;
	animation-iteration-count: 1;
}

@keyframes confetti-fall {
	0%   { transform: translateY(0) rotateZ(0deg); }
	100% { transform: translateY(110vh) rotateZ(360deg); }
}

.contact-wrapper {
	margin-top: 16px;
	text-align: left;
}

.contact-actions {
	display: flex;
	gap: 8px;
	justify-content: center;
}

.contact-actions .button {
	flex: 1;
	white-space: nowrap;
}

.contact-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.toggle-icon {
	display: inline-block;
	transition: transform .25s ease;
}

.button.active .toggle-icon {
    transform: rotate(180deg);
}

.form-container {
	margin-top: 14px;
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transform-origin: top;
	transition:
		max-height .35s ease,
		opacity .25s ease;
}

.form-container.open {
	max-height: 400px;
	opacity: 1;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.contact-form-label {
	font-size: 0.85em;
	font-weight: 600;
	margin-bottom: 2px;
	color: #0f172a;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 9px 11px;
	border-radius: 8px;
	border: 1px solid rgba(148, 163, 184, 0.9);
	font-size: 0.95em;
	box-sizing: border-box;
	outline: none;
	background-color: rgba(255,255,255,0.95);
}

.contact-form input:focus,
.contact-form textarea:focus {
	border-color: #00b59b;
	box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.35);
}

.contact-form textarea {
	resize: vertical;
	min-height: 80px;
}

.contact-helper {
	font-size: 0.8em;
	opacity: 0.75;
	margin-top: 4px;
}

.contact-message {
	margin-top: 8px;
	font-size: 0.85em;
	opacity: 0.9;
	text-align: center;
}

.contact-message.success {
	color: #059669;
}

.contact-message.info {
	color: #b91c1c;
}

.phone-info {
	margin-top: 10px;
	font-size: 0.95em;
	text-align: center;
	display: none;
}

.phone-info strong {
	font-weight: 700;
}

.phone-info a {
	font-weight: 600;
	text-decoration: none;
	color: #0f766e;
}

@media (prefers-color-scheme: light) {
	body {
		color: #0f172a;
	}
	#countdown, #status {
		color: #0f172a;
	}
	.progress-container {
		background-color: rgba(15,23,42,0.15);
	}
	.button {
		background-color: #0f766e;
	}
	.button:hover {
		background-color: #0d5c55;
	}
}