/* Sellgrip — contactpagina (templates/contact.php, parts/contact-form.php).
 * Alleen geladen op de contactpagina (inc/contact.php).
 *
 * Velden zoals de Gewinnrechner (calculator.css): wit, dunne rand in #8f8f8f
 * (3,3:1 op wit), radius 4px, rode focusrand. Labels boven het veld, fouten
 * direct onder het veld in donkerrood. De mailboxen staan in één kaart.
 */

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: clamp(32px, calc(5vw / var(--vz, 1)), 72px);
	align-items: start;
}

.contact-h {
	font-size: 1.35rem;
	line-height: 1.25;
	letter-spacing: -0.02em;
	margin-bottom: 20px;
}

/* ---------------------------------------------------------------- velden */
.cf-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}

.cf-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.cf-wide {
	grid-column: 1 / -1;
}

.cf-field label {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ink);
}

.cf-opt {
	font-weight: 400;
	color: var(--muted);
}

.cf-hint {
	font-size: 0.85rem;
	color: var(--muted);
	line-height: 1.4;
}

.cf-field input,
.cf-field select,
.cf-field textarea {
	width: 100%;
	font: inherit;
	font-size: 1.05rem;
	color: var(--ink);
	background: var(--card);
	border: 1px solid var(--field);
	border-radius: var(--radius);
	padding: 0.62em 0.75em;
	min-height: 46px;
	transition: border-color 0.15s ease;
}

.cf-field textarea {
	min-height: 11em;
	line-height: 1.5;
	resize: vertical;
}

.cf-field select {
	appearance: none;
	padding-right: 2.6em;
	cursor: pointer;
}

/* Pijltje zoals in de Gewinnrechner: twee randen, gedraaid. */
.cf-select {
	position: relative;
}

.cf-select::after {
	content: "";
	position: absolute;
	right: 17px;
	top: 50%;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid var(--graphite);
	border-bottom: 1.5px solid var(--graphite);
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

.cf-field input:hover,
.cf-field select:hover,
.cf-field textarea:hover {
	border-color: var(--graphite);
}

.cf-field input:focus-visible,
.cf-field select:focus-visible,
.cf-field textarea:focus-visible {
	outline: 2px solid var(--red);
	outline-offset: 1px;
	border-color: var(--ink);
}

.cf-field [aria-invalid="true"] {
	border-color: var(--red-text-strong);
	box-shadow: inset 0 0 0 1px var(--red-text-strong);
}

.cf-error {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--red-text-strong);
}

/* Honeypot: buiten beeld en buiten de toegankelijkheidsboom. */
.cf-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cf-privacy {
	margin-top: 20px;
	font-size: 0.9rem;
	color: var(--muted);
}

.cf-privacy a {
	color: var(--graphite);
}

.cf-send {
	margin-top: 20px;
}

.cf-send:disabled {
	opacity: 0.6;
	cursor: default;
}

/* -------------------------------------------------------------- melding */
.cf-notice {
	margin-bottom: 32px;
	padding: 16px 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper-2);
	font-weight: 600;
}

.cf-notice-error {
	border-color: var(--red-text-strong);
	background: var(--red-tint);
}

.cf-notice ul {
	margin: 8px 0 0;
	padding-left: 1.2em;
	font-weight: 400;
}

.cf-notice a {
	color: var(--red-text-strong);
}

.cf-notice:focus {
	outline: 2px solid var(--red);
	outline-offset: 3px;
}

/* ------------------------------------------------------------- mailboxen */
.contact-boxes {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	background: var(--paper-2);
}

.contact-boxes dl {
	display: grid;
	gap: 18px;
	margin: 0;
}

.contact-boxes dt a {
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--red-text-strong);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.contact-boxes dt a:hover {
	text-decoration: underline;
}

.contact-boxes dd {
	margin: 2px 0 0;
	color: var(--graphite);
	font-size: 0.95rem;
}

@media (max-width: 860px) {
	.contact-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.cf-fields {
		grid-template-columns: 1fr;
	}
}
