/**
 * Contact Page Specific Styles
 *
 * @format
 */

:root {
	--primary: #0b5394; /* blue */
	--secondary: #ff7f11; /* orange */
	--accent: #1f6fb2; /* blue accent */
	--success: #48bb78;
	--danger: #e53e3e;
	--info: #3182ce;
	--light: #f8f9fa;
	--dark: #2d3748;
	--text: #4a5568;
	--text-light: #718096;
	--border: #e2e8f0;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
	--gradient-primary: linear-gradient(
		135deg,
		var(--primary) 0%,
		var(--accent) 100%
	);
	--gradient-gold: linear-gradient(135deg, var(--secondary) 0%, #ffab4d 100%);
}

/* Ensure cards are visible by default */
.contact-card,
.department-card,
.faq-item {
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
}

/* Enhanced Hero Section */
.page-hero.contact-hero {
	min-height: 70vh;
	display: flex;
	align-items: center;
	position: relative;
	background: var(--gradient-primary);
	overflow: hidden;
	padding: 120px 0 80px;
}

.page-hero.contact-hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(
			circle at 20% 80%,
			rgba(212, 175, 55, 0.1) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 80% 20%,
			rgba(255, 255, 255, 0.05) 0%,
			transparent 50%
		);
}

.hero-content {
	position: relative;
	z-index: 10;
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
	padding: 0 20px;
}

.hero-title {
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 800;
	margin-bottom: 1.5rem;
	color: white;
	line-height: 1.2;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
	font-size: clamp(1.1rem, 2vw, 1.5rem);
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 3rem;
	line-height: 1.6;
	font-weight: 300;
}

.hero-buttons {
	display: flex;
	gap: 1.5rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* Enhanced Floating Shapes */
.hero-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.floating-shape {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	animation: float 6s ease-in-out infinite;
}

.shape-1 {
	width: 120px;
	height: 120px;
	top: 20%;
	left: 10%;
	animation-delay: 0s;
}

.shape-2 {
	width: 80px;
	height: 80px;
	bottom: 10%;
	right: 15%;
	animation-delay: 2s;
}

.shape-3 {
	width: 60px;
	height: 60px;
	top: 40%;
	right: 20%;
	animation-delay: 4s;
}

@keyframes float {
	0%,
	100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-20px);
	}
}

/* Contact Information Section */
.contact-info-section {
	padding: 100px 0;
	background: white;
}

.section-header {
	text-align: center;
	margin-bottom: 60px;
}

.section-tag {
	display: inline-block;
	background: var(--gradient-gold);
	color: white;
	padding: 8px 20px;
	border-radius: 25px;
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	box-shadow: var(--shadow);
}

.section-title {
	font-size: clamp(2rem, 4vw, 3rem);
	color: var(--primary);
	margin-bottom: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}

.section-header p {
	font-size: 1.2rem;
	color: var(--text-light);
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.6;
}

.contact-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	max-width: 1200px;
	margin: 0 auto;
}

.contact-card {
	background: white;
	border-radius: 20px;
	padding: 40px 30px;
	text-align: center;
	box-shadow: var(--shadow);
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	position: relative;
	overflow: hidden;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	border: 1px solid transparent;
}

.contact-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		135deg,
		rgba(212, 175, 55, 0.05) 0%,
		transparent 50%
	);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.contact-card:hover::before {
	opacity: 1;
}

.contact-card:hover {
	transform: translateY(-12px) scale(1.02);
	box-shadow: var(--shadow-lg);
	border-color: var(--secondary);
}

.card-icon {
	font-size: 3rem;
	color: var(--secondary);
	margin-bottom: 20px;
	display: inline-block;
	padding: 20px;
	border-radius: 50%;
	background: rgba(212, 175, 55, 0.1);
	transition: all 0.3s ease;
}

.contact-card:hover .card-icon {
	transform: scale(1.1) rotate(5deg);
	background: var(--gradient-gold);
	color: white;
}

.card-content h3 {
	color: var(--primary);
	margin-bottom: 15px;
	font-size: 1.4rem;
	font-weight: 700;
}

.card-content p {
	color: var(--text-light);
	margin-bottom: 25px;
	line-height: 1.6;
}

.card-action {
	margin-top: 20px;
}

.btn-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--secondary);
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	padding: 8px 16px;
	border-radius: 8px;
}

.btn-link:hover {
	background: rgba(212, 175, 55, 0.1);
	transform: translateX(5px);
}

.btn-link i {
	transition: transform 0.3s ease;
}

.btn-link:hover i {
	transform: translateX(3px);
}

/* Contact Form & Map Section */
.contact-form-map-section {
	padding: 100px 0;
	background: var(--light);
}

.contact-form-map-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	max-width: 1200px;
	margin: 0 auto;
}

.contact-form-container {
	background: white;
	border-radius: 20px;
	padding: 40px;
	box-shadow: var(--shadow);
	transition: all 0.3s ease;
}

.contact-form-container:hover {
	box-shadow: var(--shadow-lg);
}

.form-header {
	text-align: center;
	margin-bottom: 40px;
}

.form-header h2 {
	color: var(--primary);
	margin-bottom: 10px;
	font-size: 2rem;
	font-weight: 700;
}

.form-header p {
	color: var(--text-light);
	font-size: 1.1rem;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.form-group {
	position: relative;
	margin-bottom: 5px;
}

.form-group.full-width {
	grid-column: 1 / -1;
}

.form-group label {
	display: block;
	color: var(--primary);
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 0.95rem;
}

.form-control {
	width: 100%;
	padding: 15px;
	border: 2px solid var(--border);
	border-radius: 10px;
	font-size: 1rem;
	transition: all 0.3s ease;
	background: white;
}

.form-control:focus {
	outline: none;
	border-color: var(--secondary);
	box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-control::placeholder {
	color: var(--text-light);
}

.form-focus-line {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0%;
	height: 2px;
	background: var(--secondary);
	transition: width 0.3s ease;
}

.form-control:focus ~ .form-focus-line {
	width: 100%;
}

textarea.form-control {
	resize: vertical;
	min-height: 120px;
}

select.form-control {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23718096'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	background-size: 16px;
}

.form-submit {
	text-align: center;
	margin-top: 20px;
}

.btn-submit {
	position: relative;
	overflow: hidden;
	min-width: 180px;
}

.btn-text {
	transition: opacity 0.3s ease;
}

.btn-loading {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 1.2rem;
}

.form-success {
	background: rgba(72, 187, 120, 0.1);
	border: 1px solid var(--success);
	border-radius: 10px;
	padding: 20px;
	margin-top: 20px;
	display: flex;
	align-items: center;
	gap: 15px;
	animation: slideInUp 0.5s ease;
}

.form-success i {
	font-size: 2rem;
	color: var(--success);
}

.form-success h4 {
	color: var(--primary);
	margin-bottom: 5px;
	font-size: 1.2rem;
}

.form-success p {
	color: var(--text);
	margin: 0;
	font-size: 0.95rem;
}

@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Map & Info Container */
.map-info-container {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.campus-map {
	border-radius: 15px;
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: all 0.3s ease;
}

.campus-map:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
}

.map-placeholder {
	height: 300px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	position: relative;
}

.map-content {
	text-align: center;
	z-index: 2;
}

.map-content i {
	font-size: 3rem;
	margin-bottom: 15px;
	opacity: 0.9;
}

.map-content h3 {
	font-size: 1.5rem;
	margin-bottom: 10px;
	font-weight: 700;
}

.map-content p {
	margin-bottom: 20px;
	opacity: 0.9;
}

.map-actions {
	display: flex;
	justify-content: center;
	gap: 15px;
}

.additional-info {
	background: white;
	border-radius: 15px;
	padding: 30px;
	box-shadow: var(--shadow);
}

.info-section {
	margin-bottom: 30px;
}

.info-section:last-child {
	margin-bottom: 0;
}

.info-section h3 {
	color: var(--primary);
	margin-bottom: 20px;
	font-size: 1.3rem;
	font-weight: 700;
}

.info-item,
.time-item {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	padding: 15px 0;
	border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.info-item:last-child,
.time-item:last-child {
	border-bottom: none;
}

.info-item i,
.time-item i {
	color: var(--secondary);
	font-size: 1.2rem;
	margin-top: 2px;
	min-width: 20px;
}

.info-item h4,
.time-item h4 {
	color: var(--primary);
	margin-bottom: 5px;
	font-size: 1rem;
	font-weight: 600;
}

.info-item p,
.time-item p {
	color: var(--text);
	margin-bottom: 3px;
	font-size: 0.9rem;
}

.info-item span {
	color: var(--text-light);
	font-size: 0.85rem;
}

.response-time {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

/* Departments Section */
.departments-section {
	padding: 100px 0;
	background: white;
}

.departments-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	max-width: 1200px;
	margin: 0 auto;
}

.department-card {
	background: var(--light);
	border-radius: 15px;
	padding: 30px;
	text-align: center;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	position: relative;
	overflow: hidden;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	border: 1px solid transparent;
}

.department-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		135deg,
		rgba(212, 175, 55, 0.05) 0%,
		transparent 50%
	);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.department-card:hover::before {
	opacity: 1;
}

.department-card:hover {
	transform: translateY(-10px) scale(1.02);
	box-shadow: var(--shadow-lg);
	background: white;
	border-color: var(--secondary);
}

.dept-icon {
	font-size: 2.5rem;
	color: var(--secondary);
	margin-bottom: 20px;
	display: inline-block;
	padding: 15px;
	border-radius: 50%;
	background: rgba(212, 175, 55, 0.1);
	transition: all 0.3s ease;
}

.department-card:hover .dept-icon {
	transform: scale(1.1) rotate(5deg);
	background: var(--gradient-gold);
	color: white;
}

.dept-content h3 {
	color: var(--primary);
	margin-bottom: 10px;
	font-size: 1.3rem;
	font-weight: 700;
}

.dept-content p {
	color: var(--text-light);
	margin-bottom: 20px;
	line-height: 1.5;
}

.dept-contact p {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 0.9rem;
	color: var(--text);
}

.dept-contact i {
	color: var(--secondary);
	font-size: 0.8rem;
}

/* FAQ Section */
.contact-faq-section {
	padding: 100px 0;
	background: var(--light);
}

.faq-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	max-width: 1000px;
	margin: 0 auto;
}

.faq-column {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.faq-item {
	background: white;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: all 0.3s ease;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	border: 1px solid transparent;
}

.faq-item:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
	border-color: var(--secondary);
}

.faq-question {
	padding: 25px 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.faq-question:hover {
	background: rgba(248, 249, 250, 0.8);
}

.faq-question h3 {
	color: var(--primary);
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0;
	transition: color 0.3s ease;
}

.faq-question:hover h3 {
	color: var(--secondary);
}

.faq-question i {
	color: var(--secondary);
	transition: all 0.3s ease;
}

.faq-item.active .faq-question i {
	transform: rotate(180deg);
}

.faq-answer {
	height: 0;
	overflow: hidden;
}

.faq-answer p {
	padding: 0 30px 25px;
	color: var(--text);
	line-height: 1.6;
	margin: 0;
}

/* CTA Section */
.contact-cta-section {
	padding: 100px 0;
	background: var(--gradient-primary);
	text-align: center;
	color: white;
}

.cta-content h2 {
	font-size: clamp(2rem, 4vw, 3rem);
	margin-bottom: 1rem;
	font-weight: 700;
}

.cta-content p {
	font-size: 1.3rem;
	margin-bottom: 3rem;
	opacity: 0.9;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
}

.cta-buttons {
	display: flex;
	gap: 20px;
	justify-content: center;
	flex-wrap: wrap;
}

/* Enhanced Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 32px;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	border: none;
	cursor: pointer;
}

.btn-primary {
	background: var(--gradient-gold);
	color: white;
	box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

.btn-outline {
	background: transparent;
	color: white;
	border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
	background: white;
	color: var(--primary);
	border-color: white;
	transform: translateY(-3px);
}

.btn i {
	transition: transform 0.3s ease;
}

.btn:hover i {
	transform: translateX(5px);
}

/* Enhanced Scroll Indicator */
.scroll-indicator {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	color: white;
	z-index: 10;
}

.scroll-indicator span {
	display: block;
	margin-bottom: 12px;
	font-size: 0.9rem;
	opacity: 0.8;
	animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
	0%,
	100% {
		opacity: 0.5;
	}
	50% {
		opacity: 1;
	}
}

.scroll-arrow {
	width: 2px;
	height: 30px;
	background: white;
	margin: 0 auto;
	position: relative;
	animation: bounce 2s infinite;
}

.scroll-arrow::after {
	content: "";
	position: absolute;
	bottom: -8px;
	left: -4px;
	width: 10px;
	height: 10px;
	border-right: 2px solid white;
	border-bottom: 2px solid white;
	transform: rotate(45deg);
}

@keyframes bounce {
	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-10px);
	}
	60% {
		transform: translateY(-5px);
	}
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
	.contact-form-map-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.faq-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.contact-cards {
		grid-template-columns: repeat(2, 1fr);
	}

	.departments-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.page-hero.contact-hero {
		min-height: 60vh;
		padding: 100px 0 60px;
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.contact-cards {
		grid-template-columns: 1fr;
	}

	.departments-grid {
		grid-template-columns: 1fr;
	}

	.hero-buttons {
		flex-direction: column;
		align-items: center;
	}

	.cta-buttons {
		flex-direction: column;
		align-items: center;
	}

	.map-actions {
		flex-direction: column;
		align-items: center;
	}

	.contact-card:hover,
	.department-card:hover {
		transform: translateY(-8px);
	}
}

@media (max-width: 480px) {
	.contact-form-container {
		padding: 25px;
	}

	.additional-info {
		padding: 20px;
	}

	.contact-card,
	.department-card {
		padding: 25px 20px;
	}

	.faq-question {
		padding: 20px;
	}

	.faq-answer p {
		padding: 0 20px 20px;
	}
}

/* Smooth Scrolling */
html {
	scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.btn-link:focus,
.faq-question:focus {
	outline: 2px solid var(--secondary);
	outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.contact-card,
	.department-card,
	.faq-item {
		transition: none !important;
		transform: none !important;
	}

	.contact-card:hover,
	.department-card:hover,
	.faq-item:hover {
		transform: none !important;
	}
}
