/* Contacts page styles */
.contacts-page main.container {
	padding-top: 120px;
	/* match other pages spacing under fixed navbar */
	padding-bottom: 24px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.contacts-page .contacts-grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 24px;
	align-items: start;
}

.contact-card {
	background: #fff;
	padding: 26px;
	border-radius: 12px;
	box-shadow: 0 12px 36px rgba(16, 24, 40, 0.06);
}

.contact-card h1 {
	font-size: 1.8rem;
	margin-bottom: 6px
}

.contact-card .muted {
	color: var(--muted);
	margin-bottom: 16px
}

.contact-card label {
	display: block;
	margin-bottom: 12px;
	color: #374151;
	font-weight: 500
}

.contact-card input,
.contact-card textarea {
	width: 100%;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid #ececec;
	background: #fff;
	font: inherit;
}

.contact-card textarea {
	min-height: 140px;
	resize: vertical
}

.contact-card input:focus,
.contact-card textarea:focus {
	outline: none;
	box-shadow: 0 6px 22px rgba(116, 0, 184, 0.06);
	border-color: rgba(116, 0, 184, 0.12)
}

.actions {
	margin-top: 12px
}

.btn-primary {
	padding: 10px 14px;
	border-radius: 8px;
	background: linear-gradient(90deg, var(--royal-violet), var(--indigo-bloom));
	color: #fff;
	border: none
}

.contact-result {
	display: none;
	padding: 12px;
	border-radius: 8px;
	background: rgba(72, 191, 227, 0.08);
	border: 1px solid rgba(72, 191, 227, 0.12);
	color: #0f172a
}

.contact-result.show {
	display: block;
	animation: pop-in .42s cubic-bezier(.2, .9, .2, 1)
}

@keyframes pop-in {
	from {
		transform: translateY(-6px) scale(.98);
		opacity: 0
	}

	to {
		transform: translateY(0) scale(1);
		opacity: 1
	}
}

/* Colorful animated background */

.animated-background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #F5F5F7;
	z-index: 0;
	/* Base layer */
	overflow: hidden;
	pointer-events: none;
}

/* Bring content above background */
.contacts-page main,
.contacts-page footer {
	position: relative;
	z-index: 1;
}

.animated-background span {
	position: absolute;
	display: block;
	width: 20px;
	height: 20px;
	background: radial-gradient(circle, rgba(116, 0, 184, 0.4) 0%, rgba(116, 0, 184, 0) 70%);
	border-radius: 50%;
	animation: float 25s infinite linear;
	opacity: 0;
	filter: blur(20px);
}

/* Bubble randomizations */
/* Bubble randomizations - Increased opacity for better visibility */
.animated-background span:nth-child(1) {
	top: 20%;
	left: 20%;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(116, 0, 184, 0.4) 0%, rgba(116, 0, 184, 0) 70%);
	/* Royal Violet */
	animation-duration: 35s;
	animation-delay: 0s;
	opacity: 0.8;
}

.animated-background span:nth-child(2) {
	top: 60%;
	left: 80%;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(100, 223, 223, 0.35) 0%, rgba(100, 223, 223, 0) 70%);
	/* Pearl Aqua */
	animation-duration: 45s;
	animation-delay: -5s;
	opacity: 0.7;
}

.animated-background span:nth-child(3) {
	top: 10%;
	left: 80%;
	width: 250px;
	height: 250px;
	background: radial-gradient(circle, rgba(83, 144, 217, 0.35) 0%, rgba(83, 144, 217, 0) 70%);
	/* Blue Energy */
	animation-duration: 40s;
	animation-delay: -10s;
	opacity: 0.6;
}

.animated-background span:nth-child(4) {
	top: 70%;
	left: 10%;
	width: 350px;
	height: 350px;
	background: radial-gradient(circle, rgba(116, 0, 184, 0.25) 0%, rgba(116, 0, 184, 0) 70%);
	animation-duration: 30s;
	animation-delay: -15s;
	opacity: 0.7;
}

.animated-background span:nth-child(5) {
	top: 40%;
	left: 50%;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(105, 48, 195, 0.2) 0%, rgba(105, 48, 195, 0) 70%);
	/* Indigo */
	animation-duration: 50s;
	animation-delay: -8s;
	opacity: 0.6;
	filter: blur(40px);
}

.animated-background span:nth-child(6) {
	top: 90%;
	left: 60%;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(128, 255, 219, 0.45) 0%, rgba(128, 255, 219, 0) 70%);
	/* Aquamarine */
	animation-duration: 25s;
	animation-delay: -3s;
	opacity: 0.7;
}

@keyframes float {
	0% {
		transform: translate(0, 0) scale(1);
	}

	33% {
		transform: translate(30px, -50px) scale(1.1);
	}

	66% {
		transform: translate(-20px, 20px) scale(0.9);
	}

	100% {
		transform: translate(0, 0) scale(1);
	}
}

.contact-info .box {
	background: #fff;
	padding: 16px;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(16, 24, 40, 0.04);
	margin-bottom: 16px
}

.map-placeholder {
	height: 140px;
	background: linear-gradient(180deg, #f3f4f6, #fbfbfd);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	color: var(--muted)
}

/* Inherit global sticky-footer behaviour from body */

@media (max-width:900px) {
	.contacts-page .contacts-grid {
		grid-template-columns: 1fr
	}

	.contacts-page .container {
		padding-top: 40px;
		padding-bottom: 0
	}
}