/* Contact modal fixes: stack above header, form grid, close control, submit styling */

.contact {
	z-index: 10050;
}

/* Real control (not .header__toggle) so minified hamburger/X span rules never apply */
.contact__form .contact__close {
	position: absolute;
	top: 0.65rem;
	right: 0.65rem;
	left: auto;
	z-index: 10;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(38, 35, 60, 0.12);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.95);
	color: #2d3748;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.contact__form .contact__close:hover {
	background: #f3f4f6;
	border-color: rgba(0, 184, 255, 0.35);
	color: #111827;
}

.contact__form .contact__close svg {
	display: block;
	flex-shrink: 0;
	pointer-events: none;
}

html[dir="rtl"] .contact__form .contact__close {
	right: auto;
	left: 0.65rem;
}

.contact__form {
	padding-top: 2.75rem;
}

.contact__form .title {
	padding-inline: 2.5rem;
}

/* Two columns for name + email only; phone & message full width */
@media (min-width: 64em) {
	#contact-modal-form {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.75rem 1rem;
		align-items: start;
	}

	#contact-modal-form .form-control {
		display: block !important;
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	#contact-modal-form .contact-modal__field--full {
		grid-column: 1 / -1;
	}
}

#contact-modal-submit {
	border: none;
	box-shadow: 0 2px 12px rgba(46, 160, 26, 0.28);
	border-radius: 8px;
}

#contact-modal-submit:hover {
	box-shadow: 0 4px 16px rgba(0, 184, 255, 0.35);
}
