/* ──────────────────────────────────────────────────────────────
   Gaia Contact — Formulaire de contact
   Design Gaia Log Express — 0 border-radius
   ────────────────────────────────────────────────────────────── */

:root {
	--gd-accent: #C7F464;
	--gd-dark: #1B2B21;
	--gd-dark-rgb: 27, 43, 33;
	--gd-white: #ffffff;
	--gd-text: #2c2c2c;
	--gd-text-muted: #6b7b6e;
	--gd-font: inherit;
}

/* ─── Form Layout ──────────────────────────────────────────── */
.gd-contact-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	font-family: var(--gd-font, inherit);
}

.gd-contact-row {
	display: flex;
	gap: 16px;
}

/* ─── Fields ───────────────────────────────────────────────── */
.gd-contact-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

/* ─── Labels ───────────────────────────────────────────────── */
.gd-contact-form label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: var(--gd-text-muted, #6b7b6e);
	padding-left: 4px;
}

.gd-contact-required {
	color: var(--gd-accent, #C7F464);
	font-weight: 700;
}

/* ─── Inputs ───────────────────────────────────────────────── */
.gd-contact-form input[type="text"],
.gd-contact-form input[type="email"],
.gd-contact-form input[type="tel"],
.gd-contact-form select,
.gd-contact-form textarea {
	width: 100%;
	min-height: 52px;
	padding: 0 18px;
	font-size: 15px;
	font-family: var(--gd-font, inherit);
	color: var(--gd-dark, #1B2B21);
	background: var(--gd-white, #ffffff);
	border: 2px solid rgba(var(--gd-dark-rgb, 27, 43, 33), 0.1);
	border-radius: 0;
	outline: none;
	transition: border-color 0.2s ease-out;
	box-sizing: border-box;
}

.gd-contact-form input:focus,
.gd-contact-form select:focus,
.gd-contact-form textarea:focus {
	border-color: var(--gd-accent, #C7F464);
}

.gd-contact-form input::placeholder,
.gd-contact-form textarea::placeholder {
	color: var(--gd-text-muted, #6b7b6e);
}

/* ─── Select ───────────────────────────────────────────────── */
.gd-contact-form select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231B2B21' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 44px;
	cursor: pointer;
}

/* ─── Textarea ─────────────────────────────────────────────── */
.gd-contact-form textarea {
	height: auto;
	padding: 14px 18px;
	resize: vertical;
	min-height: 120px;
}

/* ─── Consent Checkbox ─────────────────────────────────────── */
.gd-contact-consent {
	margin-top: 4px;
}

.gd-contact-consent label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--gd-text, #2c2c2c);
	cursor: pointer;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
	padding-left: 0;
}

.gd-contact-consent input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 1px;
	accent-color: var(--gd-accent, #C7F464);
	cursor: pointer;
}

.gd-contact-consent a {
	color: var(--gd-dark, #1B2B21);
	font-weight: 600;
	text-decoration: underline;
}

/* ─── Submit Button ────────────────────────────────────────── */
.gd-contact-actions {
	margin-top: 8px;
	display: flex;
	justify-content: flex-end;
}

.gd-contact-submit {
	padding: 10px 10px 10px 24px;
	border: none;
	background: var(--gd-dark, #1B2B21);
	color: var(--gd-accent, #C7F464);
	font-size: 14px;
	font-family: var(--gd-font, inherit);
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease-out, transform 0.2s ease-out;
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.gd-contact-submit::after {
	content: '';
	display: inline-block;
	width: 28px;
	height: 28px;
	background-color: var(--gd-accent, #C7F464);
	background-image: url("data:image/svg+xml,%3Csvg width='14' height='11' viewBox='0 0 14 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.5 5.5H12.5M12.5 5.5L7.5 0.5M12.5 5.5L7.5 10.5' stroke='%231B2B21' stroke-linecap='round'/%3E%3C/svg%3E");
	background-size: 14px 11px;
	background-repeat: no-repeat;
	background-position: center;
	transition: background-color 0.2s ease-out, background-image 0.2s ease-out;
}

.gd-contact-submit:hover {
	background: var(--gd-accent, #C7F464);
	color: var(--gd-dark, #1B2B21);
}

.gd-contact-submit:hover::after {
	background-color: var(--gd-dark, #1B2B21);
	background-image: url("data:image/svg+xml,%3Csvg width='14' height='11' viewBox='0 0 14 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.5 5.5H12.5M12.5 5.5L7.5 0.5M12.5 5.5L7.5 10.5' stroke='%23C7F464' stroke-linecap='round'/%3E%3C/svg%3E");
}

.gd-contact-submit:active {
	transform: scale(0.97);
}

.gd-contact-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.gd-contact-submit-loading {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* ─── Spinner ──────────────────────────────────────────────── */
.gd-contact-spinner {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(var(--gd-dark-rgb, 27, 43, 33), 0.2);
	border-top-color: var(--gd-accent, #C7F464);
	border-radius: 50%;
	animation: gdContactSpin 0.6s linear infinite;
}

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

/* ─── Feedback ─────────────────────────────────────────────── */
.gd-contact-feedback {
	padding: 14px 20px;
	font-size: 14px;
	line-height: 1.5;
	margin-top: 8px;
}

.gd-contact-feedback--error {
	background: #fef2f2;
	color: #b91c1c;
	border-left: 3px solid #ef4444;
}

.gd-contact-feedback--success {
	background: rgba(199, 244, 100, 0.1);
	color: var(--gd-dark, #1B2B21);
	border-left: 3px solid var(--gd-accent, #C7F464);
}

/* ─── Success Screen ───────────────────────────────────────── */
.gd-contact-success {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 60px 40px;
	animation: gdContactFadeUp 0.4s ease-out;
}

.gd-contact-success-icon {
	width: 80px;
	height: 80px;
	background: var(--gd-accent, #C7F464);
	color: var(--gd-dark, #1B2B21);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 24px;
}

.gd-contact-success h3 {
	font-size: 24px;
	color: var(--gd-dark, #1B2B21);
	margin: 0 0 12px;
}

.gd-contact-success p {
	font-size: 15px;
	color: var(--gd-text-muted, #6b7b6e);
	line-height: 1.6;
	max-width: 400px;
	margin: 0;
}

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

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
	.gd-contact-row {
		flex-direction: column;
		gap: 16px;
	}

	.gd-contact-submit {
		width: 100%;
		justify-content: center;
	}
}
