/**
 * Front-end styling for the DeveloKey Herroepingsrecht withdrawal form.
 *
 * Layout is self-contained (it does not rely on the theme styling WooCommerce
 * form rows) and reads its colours from CSS custom properties, which the
 * plugin injects from its settings via wp_add_inline_style(). The values in
 * the .dkh-herroeping block below are the fallback defaults.
 */

.dkh-herroeping {
	--dkh-accent: #1a1a1a;
	--dkh-button-text: #ffffff;
	--dkh-border: #d8d8d8;
	--dkh-radius: 6px;

	max-width: 640px;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 3.5rem;
	box-sizing: border-box;
}

.dkh-herroeping *,
.dkh-herroeping *::before,
.dkh-herroeping *::after {
	box-sizing: border-box;
}

/* Intro / legal text */
.dkh-herroeping .dkh-intro {
	margin-bottom: 2rem;
	line-height: 1.6;
}

/* Form rows */
.dkh-form .woocommerce-form-row,
.dkh-form .dkh-form-row {
	display: flex;
	flex-direction: column;
	margin: 0 0 1.35rem;
	padding: 0;
}

.dkh-form label {
	margin-bottom: 0.4rem;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.4;
}

.dkh-form .required {
	color: var(--dkh-accent);
	text-decoration: none;
}

/* Inputs */
.dkh-form input[type="text"],
.dkh-form input[type="email"],
.dkh-form input[type="date"],
.dkh-form textarea {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--dkh-border);
	border-radius: var(--dkh-radius);
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dkh-form textarea {
	min-height: 120px;
	resize: vertical;
}

.dkh-form input:focus,
.dkh-form textarea:focus {
	outline: none;
	border-color: var(--dkh-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--dkh-accent) 22%, transparent);
}

/* Submit button */
.dkh-form-row--submit {
	margin-top: 0.5rem;
}

.dkh-form .dkh-button {
	display: inline-block;
	padding: 0.85rem 1.8rem;
	border: 0;
	border-radius: var(--dkh-radius);
	background: var(--dkh-accent);
	color: var(--dkh-button-text);
	font: inherit;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.05s ease;
}

.dkh-form .dkh-button:hover,
.dkh-form .dkh-button:focus {
	background: color-mix(in srgb, var(--dkh-accent) 85%, #000);
	color: var(--dkh-button-text);
}

.dkh-form .dkh-button:active {
	transform: translateY(1px);
}

/* Notices */
.dkh-notice {
	margin: 0 0 1.75rem;
	padding: 1rem 1.15rem;
	border-radius: var(--dkh-radius);
	border-left: 4px solid;
	line-height: 1.5;
}

.dkh-notice ul {
	margin: 0;
	padding-left: 1.1rem;
}

.dkh-notice--success {
	background: #edf7ed;
	border-left-color: #2e7d32;
	color: #1e4620;
}

.dkh-notice--error {
	background: #fdecea;
	border-left-color: #c62828;
	color: #611a15;
}

/* Honeypot: hidden via stylesheet only (never inline). */
.dkh-website-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
