/**
 * Frontend-Formular – Design passend zur Therapiepraxis KiJu.
 */

.tpwl-form {
	--tpwl-rose: #DEC2BC;
	--tpwl-taupe: #978968;
	--tpwl-dark: #1A1A1A;
	--tpwl-text: #2C2C2C;
	--tpwl-muted: #4B4743;
	--tpwl-offwhite: #FAF8F6;
	--tpwl-line: #E7DED8;
	max-width: 760px;
	margin: 0 auto;
	color: var(--tpwl-text);
	font-family: inherit;
}

.tpwl-fieldset {
	border: 1px solid var(--tpwl-line);
	border-radius: 16px;
	padding: 22px 24px 8px;
	margin: 0 0 22px;
	background: #fff;
}

.tpwl-fieldset legend {
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--tpwl-dark);
	padding: 0 10px;
}

.tpwl-optional {
	font-weight: 400;
	font-size: 0.85rem;
	color: var(--tpwl-taupe);
}

.tpwl-req { color: #b0553f; }

.tpwl-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 6px 20px;
}

.tpwl-field { margin: 0 0 16px; }
.tpwl-field--wide { grid-column: 1 / -1; }

.tpwl-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.92rem;
	color: var(--tpwl-muted);
}

.tpwl-form input[type="text"],
.tpwl-form input[type="email"],
.tpwl-form input[type="tel"],
.tpwl-form input[type="date"],
.tpwl-form select,
.tpwl-form textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--tpwl-line);
	border-radius: 10px;
	font-size: 1rem;
	background: var(--tpwl-offwhite);
	box-sizing: border-box;
	color: var(--tpwl-text);
}

.tpwl-form input:focus,
.tpwl-form select:focus,
.tpwl-form textarea:focus {
	outline: none;
	border-color: var(--tpwl-rose);
	box-shadow: 0 0 0 3px rgba(222, 194, 188, 0.35);
	background: #fff;
}

.tpwl-radios {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}

.tpwl-radio {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 0.98rem;
}

.tpwl-radio input { margin-top: 3px; }

.tpwl-hint {
	font-size: 0.83rem;
	color: var(--tpwl-taupe);
	margin: 4px 0 14px;
}

.tpwl-hint--legal { text-align: center; margin-top: 14px; }

/* Verfügbarkeits-Raster */
.tpwl-availability {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 14px;
	font-size: 0.9rem;
}

.tpwl-availability th,
.tpwl-availability td {
	border: 1px solid var(--tpwl-line);
	padding: 8px;
	text-align: center;
}

.tpwl-availability thead th {
	background: var(--tpwl-offwhite);
	font-weight: 600;
	color: var(--tpwl-dark);
}

.tpwl-availability tbody th {
	text-align: left;
	background: var(--tpwl-offwhite);
	font-weight: 500;
}

.tpwl-check-cell { display: block; cursor: pointer; }
.tpwl-check-cell input { width: 20px; height: 20px; }

.tpwl-sr,
.tpwl-hp {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0);
	border: 0;
}

/* Consent */
.tpwl-consent {
	background: var(--tpwl-offwhite);
	border: 1px solid var(--tpwl-line);
	border-radius: 14px;
	padding: 18px 20px;
	margin-bottom: 20px;
}

.tpwl-consent-label {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--tpwl-muted);
	cursor: pointer;
}

.tpwl-consent-label input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }
.tpwl-consent-label a { color: var(--tpwl-taupe); text-decoration: underline; }

/* Submit */
.tpwl-submit { text-align: center; margin: 8px 0 4px; }

.tpwl-form button[type="submit"] {
	background: var(--tpwl-rose);
	color: var(--tpwl-dark);
	border: none;
	border-radius: 999px;
	padding: 15px 38px;
	font-size: 1.05rem;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
	.tpwl-form button[type="submit"]:hover {
		background: var(--tpwl-dark);
		color: #fff;
		transform: translateY(-1px);
	}
}

/* Notices */
.tpwl-notice {
	max-width: 760px;
	margin: 0 auto 24px;
	padding: 16px 20px;
	border-radius: 12px;
	font-size: 0.98rem;
	line-height: 1.5;
}

.tpwl-notice--success {
	background: #EAF3EC;
	border: 1px solid #B7D8BF;
	color: #245b34;
}

.tpwl-notice--error {
	background: #FBECE8;
	border: 1px solid #E7B9AC;
	color: #8a3320;
}

@media (max-width: 680px) {
	.tpwl-grid { grid-template-columns: 1fr; }
	.tpwl-availability { font-size: 0.8rem; }
	.tpwl-availability th,
	.tpwl-availability td { padding: 5px; }
}
