.funtenjer {
	max-width: 1000px;
}

main {
	padding: 100px 0;
}

main h2 {
	font-family: var(--lora);
	font-size: 2em;
}

.back {
	background: rgba(var(--rgb-primary), 0.06);
	display: flex;
	width: 50px;
	height: 40px;
	transition: 300ms;
}

.back:hover {
	background: var(--primary);
	color: var(--body-color);
}

.back i {
	margin: auto;
	transition: 300ms transform;
}

.back:hover i {
	transform: translateX(-5px);
}

.anon-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

.field-group {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.field-group--full {
	grid-column: 1 / -1;
}

.field-group label {
	font-size: 0.75em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.5;
}

@media (max-width: 560px) {
	.anon-fields {
		grid-template-columns: 1fr;
	}
}

textarea {
	width: 100%;
	height: 260px;
	padding: 16px;
	font-family: inherit;
	font-size: 1em;
	border: none;
	background: rgba(var(--rgb-primary), 0.06);
	border: 2px solid transparent;
	resize: none;
	outline: none;
	border-radius: 6px 6px 0 0;
	transition: background 200ms, border-color 200ms;
}

textarea:focus {
	border-color: var(--primary);
}

textarea::placeholder {
	opacity: 0.35;
}

.button-holder {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 20px 0;
}

button {
	cursor: pointer;
	border: none;
	border-radius: 5px;
	padding: 0 20px;
	background: var(--primary);
	color: var(--body-color);
	height: 40px;
	font-weight: 600;
	transition: opacity 200ms;
}

button:hover:not(:disabled) {
	opacity: 0.8;
}

button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.contact {
	display: flex;
	gap: 1em;
}

.contact span {
	display: flex;
	align-items: center;
	gap: 0.5em;
	background: rgba(var(--rgb-primary), 0.06);
	padding: 5px 10px;
	border-radius: 6px;
}

/* Success popup */
.popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	animation: fadeIn 200ms ease;
}

.popup-overlay.hidden {
	display: none;
}

.popup-box {
	background: var(--body-color);
	border-radius: 12px;
	padding: 48px 40px 40px;
	max-width: 380px;
	width: 90%;
	text-align: center;
	animation: slideUp 250ms ease;
}

.popup-icon {
	width: 64px;
	height: 64px;
	background: rgba(var(--rgb-primary), 0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
}

.popup-icon i {
	font-size: 1.8em;
	color: var(--primary);
}

.popup-box h3 {
	font-family: var(--lora);
	font-size: 1.5em;
	margin-bottom: 10px;
}

.popup-box p {
	opacity: 0.65;
	margin-bottom: 28px;
	line-height: 1.6;
}

.popup-close-btn {
	padding: 0 32px;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideUp {
	from {
		transform: translateY(20px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@media screen and (max-width: 800px) {
	.button-holder,
	.contact {
		flex-direction: column;
		justify-content: center;
		gap: 1em;
	}

	.button-holder > *,
	.contact > * {
		width: 100%;
	}

	.contact span {
		display: flex;
		justify-content: center;
		align-items: center;
	}
}

