/* ==========================================================================
   IvyPanda — contact.css
   Contact form, Turnstile widget spacing, success/error notices.
   ========================================================================== */

/* ---------- Contact ---------- */
.contact { padding: 80px 0; }

.contact-inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 50px;
	align-items: start;
}

/* The form sits on a white card so the mint button has real contrast
   to pop against — mint directly on the cream page background reads
   as "bright on bright" and the button loses definition. */
.contact-form-wrap {
	background: var(--color-surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 32px;
	width: 100%;
	max-width: 700px;
	box-sizing: border-box;
	margin: 0 auto;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
	padding: 12px;
	border: 1.5px solid #C9BEA9;
	border-radius: var(--radius);
	font-family: inherit;
	font-size: 0.95rem;
	color: var(--color-text);
	background: var(--color-surface);
	width: 100%;
	box-sizing: border-box;
}

.contact-form select {
	appearance: auto;
	cursor: pointer;
}

.contact-form select:focus,
.contact-form input:focus,
.contact-form textarea:focus {
	outline: 2px solid var(--color-secondary);
	outline-offset: 2px;
}

/* Name / Email / Phone — label beside the input instead of stacked
   above it. */
.contact-form-row {
	display: flex;
	align-items: center;
	gap: 14px;
}

.contact-form-row label {
	flex: 0 0 70px;
	font-weight: 600;
	color: var(--color-text);
}

.contact-form-row input {
	flex: 1;
	min-width: 0;
}

/* Service / Time / Message groups — label stacked above the field. */
.contact-form-group label,
.contact-form-group-label {
	display: block;
	font-weight: 600;
	color: var(--color-text);
	margin-bottom: 10px;
}

/* ---------- Pill choice groups ----------
   Not currently used (Service/Time moved to dropdowns above) — kept
   here in case pills get reused elsewhere later. */
.pill-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pill-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.pill-label {
	cursor: pointer;
	padding: 8px 16px;
	border: 1.5px solid #C9BEA9;
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--color-text);
	background: var(--color-bg);
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pill-input:checked + .pill-label {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-on-primary);
}

.pill-input:focus-visible + .pill-label {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.contact-form .cf-turnstile {
	margin: 4px 0;
}

.form-notice {
	padding: 12px 16px;
	border-radius: var(--radius);
	margin-bottom: 16px;
	font-weight: 500;
}

.form-notice-success {
	background: var(--color-secondary);
	color: var(--color-primary);
}

.form-notice-error {
	background: #fee2e2;
	color: #991b1b;
}

/* ---------- Responsive ---------- */
@media (max-width: 500px) {
	.contact-form-wrap {
		padding: 24px 20px;
	}

	/* Side-by-side label/input gets cramped on narrow phones — go
	   back to stacked there. */
	.contact-form-row {
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
	}

	.contact-form-row label {
		flex: none;
	}
}