.contact-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1rem 5rem;
}

.contact-shell {
	border: 1px solid rgba(69, 71, 100, 0.14);
	border-radius: 22px;
	background: linear-gradient(135deg, rgba(52, 142, 134, 0.08) 0%, rgba(52, 142, 134, 0.16) 100%);
	padding: 1.4rem;
}

.contact-shell h1 {
	margin: 0;
	color: var(--primary-color);
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1.35;
}

.contact-card {
	margin-top: 1rem;
	border: 1px solid rgba(69, 71, 100, 0.12);
	border-radius: 16px;
	background: #ffffff;
	padding: 0.7rem;
	display: grid;
	gap: 0.55rem;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	border: 1px solid rgba(69, 71, 100, 0.14);
	border-radius: 12px;
	padding: 0.82rem 0.9rem;
	color: var(--primary-color);
	background: #ffffff;
	font-weight: 600;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-item i {
	font-size: 1rem;
}

.contact-item:hover,
.contact-item:focus-visible {
	border-color: rgba(52, 142, 134, 0.45);
	background: rgba(52, 142, 134, 0.08);
}

.contact-form {
	margin-top: 1rem;
	border: 1px solid rgba(69, 71, 100, 0.12);
	border-radius: 16px;
	background: #ffffff;
	padding: 1rem;
}

.contact-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.9rem;
}

.contact-field {
	display: grid;
	gap: 0.45rem;
}

.contact-field-full {
	grid-column: 1 / -1;
}

.contact-field label {
	color: var(--primary-color);
	font-size: 0.93rem;
	font-weight: 600;
	line-height: 1.5;
}

.required-label::after {
	content: " *";
	color: #c0392b;
	font-weight: 800;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	border: 1px solid rgba(69, 71, 100, 0.2);
	border-radius: 12px;
	padding: 0.82rem 0.9rem;
	background: #ffffff;
	color: var(--primary-color);
	font-size: 0.9rem;
	line-height: 1.5;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field textarea {
	resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(52, 142, 134, 0.18);
}

.field-error {
	margin: 0;
	font-size: 0.76rem;
	line-height: 1.55;
	color: #c0392b;
	font-weight: 500;
}

.contact-form-actions {
	margin-top: 1rem;
	display: flex;
	justify-content: flex-start;
}

.contact-submit-button {
	border: 0;
	border-radius: 999px;
	background: var(--primary-color);
	color: #ffffff;
	font-weight: 700;
	padding: 0.82rem 1.4rem;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-submit-button:hover,
.contact-submit-button:focus-visible {
	background: var(--primary-color-75);
	transform: translateY(-1px);
}

.contact-submit-button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.contact-submit-feedback {
	margin: 0.75rem 0 0;
	font-size: 0.88rem;
	line-height: 1.6;
	font-weight: 600;
	color: var(--primary-color);
}

.contact-submit-feedback[data-state="pending"] {
	color: #5d646f;
}

.contact-submit-feedback[data-state="success"] {
	color: #1f7a35;
}

.contact-submit-feedback[data-state="error"] {
	color: #c0392b;
}

@media (max-width: 640px) {
	.contact-page {
		padding: 1.4rem 0.75rem 4rem;
	}

	.contact-shell {
		padding: 1rem;
	}

	.contact-shell h1 {
		font-size: 1.5rem;
	}

	.contact-item {
		font-size: 0.92rem;
		padding: 0.75rem 0.8rem;
	}

	.contact-form {
		padding: 0.85rem;
	}

	.contact-form-grid {
		grid-template-columns: 1fr;
	}

	.contact-submit-button {
		width: 100%;
	}
}
