/* assets/css/contact.css */

/* ── BACKGROUND VIDEO & OVERLAY ── */
.bg-container {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 0;
	pointer-events: none;
}

.bg-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.12;
	filter: blur(8px);
}

.bg-overlay {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at center, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.9) 100%);
}

/* ── CONTACT CONTAINER & CARD ── */
.contact-wrapper {
	position: relative;
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 160px 20px 60px 20px;
	z-index: 1;
}

.contact-card {
	width: 100%;
	max-width: 580px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 20px;
	padding: 48px;
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
	position: relative;
	overflow: hidden;
	animation: cardFadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

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

.contact-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(to right, var(--primary-navy), var(--accent-blue), var(--light-blue));
}

.contact-card__title {
	font-family: 'Cormorant Garamond', serif;
	font-size: 38px;
	font-weight: 300;
	color: var(--light-blue);
	margin-bottom: 8px;
	letter-spacing: 0.02em;
}

.contact-card__subtitle {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 32px;
	line-height: 1.6;
}

/* ── SOCIAL LINKS ── */
.social-connections {
	display: flex;
	gap: 16px;
	margin-bottom: 40px;
}

.social-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	padding: 12px 16px;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.05em;
	transition: all 0.3s ease;
}

.social-btn svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.social-btn:hover {
	background: rgba(0, 164, 228, 0.06);
	border-color: var(--light-blue);
	color: var(--light-blue);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 164, 228, 0.1);
}

.divider {
	height: 1px;
	background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.08), transparent);
	margin: 32px 0;
}

/* ── FORM ELEMENTS & VALIDATIONS ── */
.form-group {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.form-field {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form-field label {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
	transition: color 0.3s ease;
}

.form-field input,
.form-field textarea {
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	color: var(--white);
	padding: 14px 16px;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	transition: all 0.3s ease;
	outline: none;
	width: 100%;
}

.form-field textarea {
	resize: vertical;
	min-height: 120px;
}

/* Focus States */
.form-field input:focus,
.form-field textarea:focus {
	border-color: var(--accent-blue);
	background: rgba(0, 0, 0, 0.4);
	box-shadow: 0 0 12px rgba(0, 118, 192, 0.25);
}

/* Modern Validation States */
.form-field input:user-invalid,
.form-field textarea:user-invalid {
	border-color: var(--error-red);
	box-shadow: 0 0 10px rgba(255, 77, 77, 0.15);
}

.form-field input:user-valid,
.form-field textarea:user-valid {
	border-color: var(--success-green);
}

.form-field:has(:user-invalid) label {
	color: var(--error-red);
}

.form-field:has(:user-valid) label {
	color: var(--success-green);
}

.error-msg {
	font-size: 11px;
	color: var(--error-red);
	opacity: 0;
	transform: translateY(-4px);
	transition: all 0.25s ease;
	pointer-events: none;
	height: 0;
	overflow: hidden;
}

.form-field:has(:user-invalid) .error-msg {
	opacity: 1;
	transform: translateY(0);
	height: auto;
	margin-top: 4px;
}

.required-star {
	color: var(--error-red);
	margin-left: 2px;
}

/* ── SUBMIT BUTTON ── */
.submit-btn {
	background: transparent;
	border: 1.5px solid var(--accent-blue);
	color: var(--accent-blue);
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	padding: 14px 28px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
	margin-top: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	position: relative;
	overflow: hidden;
}

.submit-btn:hover {
	background: var(--accent-blue);
	color: var(--black);
	box-shadow: 0 0 20px rgba(0, 118, 192, 0.45);
}

.submit-btn:disabled {
	border-color: rgba(255, 255, 255, 0.2);
	color: rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.02);
	cursor: not-allowed;
	box-shadow: none;
}

.spinner {
	width: 18px;
	height: 18px;
	border: 2px solid transparent;
	border-top-color: currentColor;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	display: none;
}

.submit-btn:disabled .spinner {
	display: block;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* ── RESPONSE OVERLAYS ── */
.success-overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.95);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 30px;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
	z-index: 5;
}

.success-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

.success-icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: rgba(46, 204, 113, 0.1);
	border: 2px solid var(--success-green);
	color: var(--success-green);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 24px;
	font-size: 32px;
	animation: iconPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes iconPop {
	from {
		transform: scale(0.6);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

.success-overlay h3 {
	font-family: 'Cormorant Garamond', serif;
	font-size: 32px;
	color: var(--light-blue);
	margin-bottom: 12px;
	font-weight: 300;
}

.success-overlay p {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
	max-width: 380px;
	margin-bottom: 32px;
	line-height: 1.6;
}

.success-close-btn {
	background: transparent;
	border: 1px solid var(--light-blue);
	color: var(--light-blue);
	padding: 10px 24px;
	border-radius: 6px;
	font-family: 'DM Sans', sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.3s ease;
}

.success-close-btn:hover {
	background: var(--light-blue);
	color: var(--black);
	box-shadow: 0 0 15px rgba(0, 164, 228, 0.3);
}

.global-error {
	background: rgba(255, 77, 77, 0.1);
	border: 1px solid var(--error-red);
	border-radius: 8px;
	color: var(--error-red);
	padding: 12px 16px;
	font-size: 13px;
	display: none;
	margin-bottom: 16px;
	line-height: 1.4;
	animation: shake 0.4s ease;
}

@keyframes shake {
	0%, 100% {
		transform: translateX(0);
	}
	25% {
		transform: translateX(-6px);
	}
	75% {
		transform: translateX(6px);
	}
}
