/**
 * Contact Form Stylesheet
 *
 * @format
 */

.contact {
	padding: 70px 0;
	background-color: #f9f9f9;
	position: relative;
	overflow: hidden;
}

.contact::before,
.contact::after {
	content: "";
	position: absolute;
	background-color: rgba(52, 152, 219, 0.1);
	border-radius: 50%;
	z-index: 0;
}

.contact::before {
	width: 400px;
	height: 400px;
	top: -200px;
	right: -150px;
}

.contact::after {
	width: 350px;
	height: 350px;
	bottom: -150px;
	left: -100px;
}

.contact .section-title {
	margin-bottom: 40px;
	position: relative;
	z-index: 1;
}

.contact-container {
	display: flex;
	gap: 30px;
	margin-bottom: 40px;
	position: relative;
	z-index: 1;
}

.contact-info,
.contact-form-container {
	flex: 1;
	min-width: 300px;
}

.contact-card {
	display: flex;
	align-items: center;
	margin-bottom: 25px;
	padding: 15px;
	background-color: white;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-card i {
	font-size: 20px;
	color: #0056b3;
	width: 40px;
	margin-right: 15px;
	text-align: center;
}

.contact-details h3 {
	font-size: 18px;
	margin: 0 0 5px 0;
	color: #333;
}

.contact-details p {
	margin: 0;
	color: #666;
	line-height: 1.5;
}

.social-media {
	margin-top: 25px;
}

.social-media h3 {
	font-size: 18px;
	margin-bottom: 15px;
}

.social-icons a {
	display: inline-block;
	margin-right: 10px;
	width: 40px;
	height: 40px;
	line-height: 40px;
	text-align: center;
	background-color: #0056b3;
	color: white;
	border-radius: 50%;
	text-decoration: none;
}

.contact-form-container {
	background: white;
	padding: 25px;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	position: relative;
	isolation: isolate;
}

.contact-form-container h3 {
	font-size: 22px;
	margin-top: 0;
	margin-bottom: 10px;
}

.contact-form-container p {
	margin-bottom: 20px;
	color: #666;
}

.form-row {
	display: flex;
	gap: 15px;
	margin-bottom: 15px;
}

.form-group {
	margin-bottom: 15px;
	flex: 1;
}

.form-group label {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
}

.required {
	color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 15px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	border-color: #0056b3;
	outline: none;
}

.submit-btn {
	background-color: var(--secondary);
	color: white;
	padding: 12px 25px;
	width: 100%;
	justify-content: center;
	font-size: 16px;
	transition: all 0.3s ease;
	margin-top: 10px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-container {
	margin-top: 50px;
}

.map-container h3 {
	font-size: 22px;
	text-align: center;
	margin-bottom: 20px;
}

.map {
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.map iframe {
	width: 100%;
	height: 400px;
	border: 0;
}

.form-message {
	margin-top: 20px;
	padding: 15px;
	border-radius: 5px;
	display: flex;
	align-items: center;
	animation: fadeIn 0.5s;
}

.form-message i {
	font-size: 24px;
	margin-right: 15px;
}

.form-message.success {
	background-color: rgba(76, 175, 80, 0.1);
	border: 1px solid #4caf50;
	color: #2e7d32;
}

.form-message.error {
	background-color: rgba(244, 67, 54, 0.1);
	border: 1px solid #f44336;
	color: #d32f2f;
}

.error-message {
	color: #ff3860;
	font-size: 14px;
	margin-top: 5px;
	display: none;
	animation: fadeIn 0.3s;
	font-weight: 500;
}

.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
	border-color: #ff3860;
	background-color: rgba(255, 56, 96, 0.05);
}

.form-group input:focus.invalid,
.form-group textarea:focus.invalid,
.form-group select:focus.invalid {
	box-shadow: 0 0 0 2px rgba(255, 56, 96, 0.25);
}

.form-group input.valid,
.form-group textarea.valid,
.form-group select.valid {
	border-color: #23d160;
	background-color: rgba(35, 209, 96, 0.05);
}

.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 1000;
	overflow: auto;
	animation: fadeIn 0.3s;
}

.modal-content {
	position: relative;
	background-color: #fff;
	margin: 10vh auto;
	padding: 30px;
	border-radius: 10px;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
	text-align: center;
	animation: slideIn 0.4s;
}

.close-modal {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 28px;
	font-weight: bold;
	color: #aaa;
	cursor: pointer;
	transition: color 0.2s;
}

.close-modal:hover {
	color: #333;
}

.modal-icon {
	margin: 20px 0;
}

.modal-icon i {
	font-size: 60px;
}

.modal-content.success .modal-icon i {
	color: #4caf50;
}

.modal-content.error .modal-icon i {
	color: #f44336;
}

.modal-content h3 {
	margin-bottom: 15px;
	font-size: 24px;
}

.modal-content p {
	margin-bottom: 25px;
	color: #555;
	line-height: 1.6;
}

.modal-btn {
	padding: 10px 25px;
	margin-top: 10px;
	transition: all 0.3s;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideIn {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.recaptcha-container {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 20px;
}

.recaptcha-notice {
	text-align: center;
	margin: 10px 0;
	width: 100%;
}

.recaptcha-notice small {
	color: #666;
	font-size: 11px;
	line-height: 1.4;
}

.recaptcha-notice a {
	color: #1a73e8;
	text-decoration: none;
}

.recaptcha-notice a:hover {
	text-decoration: underline;
}

.grecaptcha-badge {
	visibility: hidden !important;
}

@media screen and (max-width: 600px) {
	.g-recaptcha {
		transform: scale(0.9);
		transform-origin: center;
	}
}

@media screen and (max-width: 400px) {
	.g-recaptcha {
		transform: scale(0.85);
		transform-origin: center;
	}
}

@media screen and (max-width: 320px) {
	.g-recaptcha {
		transform: scale(0.75);
		transform-origin: center;
	}
}

@media (max-width: 768px) {
	.form-row {
		flex-direction: column;
		gap: 0;
	}

	.contact-container {
		flex-direction: column;
	}

	.contact-card {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.contact-card i {
		margin-right: 0;
		margin-bottom: 15px;
	}
}
