/**
 * Contact Form Section Styles
 * Minimal approach - required styling only
 *
 * @package MG
 */

/* ========================================
   Section Container
   ======================================== */

.contact-form {
	background-color: #ffffff;
	padding: 80px 0; /* Mobile */
}

@media (min-width: 768px) {
	.contact-form {
		padding: 60px 0; /* Tablet+ */
	}
}

.contact-form__container {
	max-width: 1440px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 30px; /* Mobile */
}

@media (min-width: 768px) {
	.contact-form__container {
		padding: 0 40px; /* Tablet+ */
	}
}

/* ========================================
   Form Grid (2 columns >=768px)
   ======================================== */

.contact-form__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media (min-width: 768px) {
	.contact-form__grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* ========================================
   Form Fields (Floating Labels)
   ======================================== */

.contact-form__field {
	position: relative;
}

.contact-form__field--full {
	grid-column: 1 / -1;
}

.contact-form__input,
.contact-form__textarea {
	width: 100%;
	padding: 16px 12px 8px 12px;
	border-radius: 8px;
	border: 1px solid #73738c;
	font-size: 16px;
	font-family: inherit;
	color: #181818;
	background-color: #ffffff;
	transition: border-color 0.2s ease;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
	outline: none;
	border-color: #181818;
}

.contact-form__textarea {
	resize: vertical;
	min-height: 120px;
	padding-top: 20px;
}

/* Floating Label */
.contact-form__label {
	position: absolute;
	left: 12px;
	top: 12px;
	font-size: 16px;
	color: #73738c;
	font-weight: 400;
	pointer-events: none;
	transition: all 0.2s ease;
	background-color: #ffffff;
	padding: 0 4px;
}

/* Float label when focused or has value */
.contact-form__input:focus + .contact-form__label,
.contact-form__input:not(:placeholder-shown) + .contact-form__label,
.contact-form__textarea:focus + .contact-form__label,
.contact-form__textarea:not(:placeholder-shown) + .contact-form__label {
	top: -8px;
	left: 8px;
	font-size: 12px;
	color: #181818;
}

/* Autofill hardening for floating labels */
.contact-form__input:-webkit-autofill + .contact-form__label,
.contact-form__textarea:-webkit-autofill + .contact-form__label {
	top: -8px;
	left: 8px;
	font-size: 12px;
	color: #181818;
}

/* ========================================
   Privacy Clause
   ======================================== */

.contact-form__privacy {
	margin: 32px 0;
}

.contact-form__privacy-text {
	font-size: 14px;
	line-height: 1.6;
	color: #181818;
	margin: 0;
}

.contact-form__privacy-link {
	color: #181818;
	text-decoration: underline;
}

.contact-form__privacy-link:hover {
	opacity: 0.7;
}

/* ========================================
   Consent Checkboxes
   ======================================== */

.contact-form__consents {
	margin: 32px 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.contact-form__consent {
	display: flex;
	align-items: center;
	gap: 8px;
}

.contact-form__consent input[type="checkbox"] {
	width: auto;
	margin: 0;
}

.contact-form__consent label {
	margin: 0;
	font-size: 16px;
	color: #181818;
	cursor: pointer;
}

/* ========================================
   Submit Button
   ======================================== */

.contact-form__submit {
	margin-top: 32px;
}

/* ========================================
   Success/Error Messages
   ======================================== */

.contact-form__message {
	margin-top: 24px;
	padding: 16px 20px;
	border-radius: 8px;
	font-size: 16px;
	line-height: 1.5;
}

.contact-form__message--success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.contact-form__message--error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}