/*!
 * Forum Sozial e.V. - 03-forms partial.
 * Forms: login, member dashboard, contact form + contact page, breadcrumbs (deduplicated).
 * NOTE: cascade order is significant - see inc/enqueue.php.
 */

/* ─── Login form ────────────────────────────────────────────────────── */

/* Page header separator → breadcrumb: 30px */
.fsev-login-page .fsev-page-header {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.fsev-login-page .fsev-page-header h1 {
	padding-bottom: 24px;
	border-bottom: 1px solid var(--wp--preset--color--forum-blue);
}

/* Breadcrumb: 30px below separator */
.fsev-login-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 30px !important;
	margin-bottom: 0 !important;
	font-size: var(--wp--preset--font-size--small-copy);
}

.fsev-login-breadcrumb a {
	color: var(--wp--preset--color--forum-blue);
	text-decoration: underline;
}

.fsev-login-breadcrumb a:hover {
	text-decoration: none;
}

/* Intro text: 50px below breadcrumb, aligned to content width */
.fsev-login-page .fsev-login-intro {
	margin-bottom: 0 !important;
	padding-bottom: var(--wp--preset--spacing--50);
	border-bottom: 2px solid var(--wp--preset--color--forum-blue);
}

/* Separator below intro text: 50px gap on both sides */
.fsev-login-separator {
	border-color: var(--wp--preset--color--forum-blue) !important;
	border-top-width: 2px;
	margin: 0 !important;
}

/* Two-column layout: 50px below first separator */
.fsev-login-layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: var(--wp--preset--spacing--50);
	align-items: start;
	margin-top: 50px !important;
	padding-bottom: var(--wp--preset--spacing--50);
	border-bottom: 2px solid var(--wp--preset--color--forum-blue);
}
.fsev-login-layout.fsev-password-layout{
	margin-top: 0 !important;
}
/* "Jetzt einloggen" H2: 50px between separator and h2, handled by layout margin-top */
.fsev-login-left h2 {
	color: var(--wp--preset--color--forum-blue);
	font-size: var(--wp--preset--font-size--section);
	margin-top: 0;
	margin-bottom: 10px;
}

/* Form: no extra box styling */
.fsev-login-form {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* Label: 30px above each label (except first) */
.fsev-login-form label {
	color: var(--wp--preset--color--body-text);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small-copy);
	display: block;
	margin-top: 30px;
	margin-bottom: 10px;
}

.fsev-login-form label:first-of-type {
	margin-top: 0;
}

/* Input fields */
.fsev-login-form input[type="text"],
.fsev-login-form input[type="email"],
.fsev-login-form input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 16px;
	background: var(--wp--preset--color--ice-blue);
	border: 1px solid var(--wp--preset--color--forum-blue);
	font-family: var(--wp--preset--font-family--finlandica-text);
	font-size: var(--wp--preset--font-size--body);
	display: block;
	border-radius: 5px;
}

.fsev-login-form input::placeholder {
	color: var(--wp--preset--color--muted);
}

/* Submit button: 50px below last input */
.fsev-login-form .wp-element-button {
	align-self: flex-end;
	margin-top: 50px;
}

.fsev-login-notice {
	color: var(--wp--preset--color--forum-blue);
}

/* Already-logged-in panel: replaces the form with a greeting + clear CTA. */
.fsev-login-loggedin__text {
	color: var(--wp--preset--color--forum-blue);
	font-size: var(--wp--preset--font-size--subheading);
	margin: 0 0 30px;
}

.fsev-login-loggedin__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--xl);
}

.fsev-login-logout {
	color: var(--wp--preset--color--forum-blue);
	text-decoration: underline;
}

.fsev-login-logout:hover {
	text-decoration: none;
}

/* When already logged in, the "bitte melden Sie sich an" intro and the form
   separators are not relevant — hide them so the panel reads cleanly. */
.logged-in .fsev-login-page .fsev-login-intro,
.logged-in .fsev-login-page .fsev-login-separator {
	display: none;
}

.fsev-login-error {
	color: var(--wp--preset--color--error);
	background: var(--wp--preset--color--error-bg);
	border-left: 4px solid var(--wp--preset--color--error);
	padding: 10px 14px;
	margin-bottom: 16px;
}

/* Sidebar: "Zugangsdaten vergessen" */

.fsev-login-sidebar{
	padding-top: 66px;
}
.fsev-login-sidebar h2 {
	color: var(--wp--preset--color--forum-blue);
	font-size: var(--wp--preset--font-size--section);
	margin-top: 0;
	margin-bottom: 10px;
}

/* 10px between "Zugangsdaten vergessen" h2 and first paragraph */
.fsev-login-sidebar p {
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.5;
	margin-top: 0;
	margin-bottom: 10px;
}

.fsev-login-sidebar a {
	color: var(--wp--preset--color--forum-blue);
	text-decoration: underline;
}

.fsev-login-sidebar a:hover {
	text-decoration: none;
}

/* Second separator (below form): 50px above, handled by shortcode output + separator margin */
.fsev-login-page .wp-block-shortcode + .wp-block-separator {
	margin-top: 50px !important;
}

/* ─── Auth gate ─────────────────────────────────────────────────────── */

.fsev-auth-gate {

	margin-block: clamp(32px, 5vw, 64px) clamp(48px, 7vw, 88px);
	padding: clamp(32px, 5vw, 56px) clamp(24px, 6vw, 64px);
	text-align: left;
}

.fsev-auth-gate__content {
	max-width: 720px;
}

.fsev-auth-gate h1 {
	color: var(--wp--preset--color--forum-blue);
	font-size: var(--wp--preset--font-size--page-title);
	line-height: 1.08;
	margin: 0 0 16px;
	padding: 0;
	text-wrap: balance;
}

.fsev-auth-gate p {
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.5;
	margin: 0;
	max-width: 62ch;
	text-wrap: pretty;
}

.fsev-auth-gate__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

/* Older member pages contain a second, widely spaced start-page button after
   the shortcode. Both actions now live inside the gate itself. */
.fsev-auth-gate + .wp-block-buttons,
.fsev-page:has(.fsev-auth-gate) > .wp-block-buttons {
	display: none;
}

@media (max-width: 600px) {
	.fsev-auth-gate {
		margin-block: 24px 48px;
		padding: 28px 20px 32px;
	}

	.fsev-auth-gate__actions,
	.fsev-auth-gate__actions .wp-block-button,
	.fsev-auth-gate__actions .wp-block-button__link {
		width: 100%;
	}
}

/* ─── Member dashboard ──────────────────────────────────────────────── */

.fsev-member-form {
	display: grid;
	gap: 18px;
}

.fsev-member-form h3 {
	color: var(--wp--preset--color--forum-blue);
	font-size: var(--wp--preset--font-size--subheading);
	margin: 14px 0 0;
}

/* align-content keeps label, field and hint packed at the top. Side-by-side
   fields are stretched to the same height by the grid row, and without this
   the shorter one distributes the extra space between its rows - the contact
   e-mail sat 25px below the deadline field next to it, because that one
   carries a two-line hint. */
.fsev-form-field {
	align-content: start;
	display: grid;
	gap: 4px;
}

.fsev-form-field label {
	color: var(--wp--preset--color--forum-blue);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small-copy);
}

.fsev-form-field input,
.fsev-form-field textarea {
	    width: 100%;
    height: 50px;
    padding: 14px 20px 12px;
    border: 1px solid var(--wp--preset--color--forum-blue);
    border-radius: 5px;
    background: var(--wp--preset--color--ice-blue);
    font-family: var(--wp--preset--font-family--finlandica-text);
    font-size: var(--wp--preset--font-size--body);
    box-sizing: border-box;
    color: var(--wp--preset--color--forum-blue);
    font-weight: 500;
}

.fsev-form-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 8px;
}

.fsev-form-status {
	font-size: var(--wp--preset--font-size--small-copy);
}

.fsev-form-status:empty {
	display: none;
}

.fsev-form-status--ok {
	color: var(--wp--preset--color--success);
}

.fsev-form-status--error {
	color: var(--wp--preset--color--error);
}

.fsev-form-status--saving {
	color: var(--wp--preset--color--muted);
}

.fsev-form-hint {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: var(--wp--preset--font-size--micro);
	color: var(--wp--preset--color--forum-blue);
	margin-top: 4px;
}

.fsev-form-hint:before {
	content: "ℹ";
	font-weight: 700;
	color: var(--wp--preset--color--forum-blue);
}

/* Dashboard two-column layout */
.fsev-dashboard-layout {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 40px;
	align-items: start;
}

.fsev-dashboard-sidebar__back {
	margin-bottom: 28px;
}

.fsev-dashboard-sidebar h2 {
	font-size: var(--wp--preset--font-size--subheading);
	color: var(--wp--preset--color--forum-blue);
	margin-bottom: 12px;
}


/* ─── Contact form ──────────────────────────────────────────────────── */

.fsev-contact-form {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	margin-top: var(--wp--preset--spacing--50);
}

.fsev-cf-field {
	display: grid;
	gap: 4px;
}

.fsev-cf-field label {
	color: var(--wp--preset--color--forum-blue);
	font-weight: 600;
}

.fsev-cf-field input,
.fsev-cf-field textarea {
	width: 100%;
	box-sizing: border-box;
}

.fsev-cf-privacy {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: var(--wp--preset--font-size--body);
}

.fsev-cf-privacy label {
	display: flex;
	align-items: flex-start;
	gap: 0;
	font-weight: 400;
	color: var(--wp--preset--color--body-text);
	cursor: pointer;
}



.fsev-cf-success {
	color: var(--wp--preset--color--success);
	background: var(--wp--preset--color--success-bg);
	border-left: 4px solid var(--wp--preset--color--success);
	padding: 18px;
	font-size: var(--wp--preset--font-size--body);
}

.fsev-cf-error {
	color: var(--wp--preset--color--error);
	background: var(--wp--preset--color--error-bg);
	border-left: 4px solid var(--wp--preset--color--error);
	padding: 14px;
}

/* ─── Breadcrumbs ───────────────────────────────────────────────────── */

/* Shared separator arrow – used in all breadcrumb variants */
.fsev-breadcrumb-sep {
	display: inline-block;
	width: 16px;
	height: 16px;
	background: url('/wp-content/themes/fsev/assets/images/pfeil-gelb.svg') center / contain no-repeat;
	color: transparent;
	font-size: 0;
	flex-shrink: 0;
	vertical-align: middle;
}

.fsev-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: var(--wp--preset--font-size--small-copy);
	color: var(--wp--preset--color--forum-blue);
	flex-wrap: wrap;
}

.fsev-breadcrumbs a {
	color: var(--wp--preset--color--forum-blue);
	text-decoration: underline;
}

.fsev-breadcrumbs a:hover {
	color: var(--wp--preset--color--menu-navy);
}


/* ─── Contact page ──────────────────────────────────────────────────── */

.fsev-section-title {
	color: var(--wp--preset--color--forum-blue);
	font-size: var(--wp--preset--font-size--section);
}

.fsev-contact-form-section {
	margin-bottom: var(--wp--preset--spacing--100);
}

/* .fsev-form-row is always used with exactly two fields (job form, profile
   form, event-signup person rows); .fsev-cf-row is the contact form's
   name/email/phone row and genuinely needs three. */
.fsev-form-row {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--wp--preset--spacing--50);
}

.fsev-cf-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wp--preset--spacing--50);
}

.fsev-form-row .fsev-form-field,
.fsev-cf-row .fsev-cf-field {
	margin: 0;
}

.fsev-contact-form input[type="text"],
.fsev-contact-form input[type="email"],
.fsev-contact-form input[type="tel"],
.fsev-contact-form textarea {
	width: 100%;
	height: 50px;
	padding: 14px 20px 12px;
	border: 1px solid var(--wp--preset--color--forum-blue);
	border-radius: 5px;
	background: var(--wp--preset--color--ice-blue);
	font-family: var(--wp--preset--font-family--finlandica-text);
	font-size: var(--wp--preset--font-size--body);
	box-sizing: border-box;
	color: var(--wp--preset--color--forum-blue);
	font-weight: 500;
}

.fsev-contact-form textarea {
	height: auto;
	min-height: 261px;
	resize: vertical;
}

.fsev-contact-form input::placeholder,
.fsev-contact-form textarea::placeholder {
	color: var(--wp--preset--color--muted);
	font-weight: 400;
}

.fsev-cf-privacy__label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: var(--wp--preset--font-size--small-copy);
	cursor: pointer;
}

/* Shared 27x27 checkbox-style control (also used for radio inputs styled as a
   checkmark box, e.g. the event-choice list in [fsev_event_signup]). */
.fsev-checkbox,
.fsev-cf-privacy input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 27px;
	height: 27px;
	flex-shrink: 0;
	border: 3px solid var(--wp--preset--color--forum-blue);
	border-radius: 8px;
	background: var(--wp--preset--color--ice-blue);
	cursor: pointer;
	position: relative;
	margin: -3px 8px 0 0;
}

.fsev-checkbox:checked,
.fsev-cf-privacy input[type="checkbox"]:checked {
	background: transparent;
}

.fsev-checkbox:checked::after,
.fsev-cf-privacy input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 3px;
	width: 6px;
	height: 9px;
	border: 3px solid var(--wp--preset--color--forum-blue);
	border-top: none;
	border-left: none;
	transform: rotate(45deg);
}

.fsev-cf-privacy a {
	color: var(--wp--preset--color--forum-blue);
	text-decoration: underline;
}

.fsev-cf-privacy a:hover {
	text-decoration: none;
}

/* Partner Cards */
.fsev-contact-partners {
	padding-top: var(--wp--preset--spacing--50);
	border-top: 2px solid var(--wp--preset--color--forum-blue);
}

.fsev-contact-partners .fsev-section-title {
	padding: 0;
	margin-bottom: var(--wp--preset--spacing--50);
}

.fsev-partners-grid {
	margin-bottom: var(--wp--preset--spacing--50) !important;
	gap: var(--wp--preset--spacing--50);
	display: grid !important;
	grid-template-columns: 1fr 1fr;
}

.fsev-partners-grid:last-of-type {
	margin-bottom: 0 !important;
}

.fsev-partners-grid .wp-block-column {
	margin: 0;
}



.fsev-partner-card {
	background: var(--wp--preset--color--ice-blue);
	padding: 0;
	gap: 0;
	align-items: stretch;
	overflow: hidden;
}

.fsev-partner-image {
	margin: 0;
	flex-shrink: 0;
	width: 160px;
}

.fsev-partner-image img {
	width: 160px !important;
	height: 100% !important;
	min-height: 160px;
	object-fit: cover;
	filter: grayscale(100%);
	display: block;
}

.fsev-partner-info {
	flex: 1;
	padding: 20px 24px;
}

.fsev-partner-info p {
	margin: 0 0 4px;
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.4;
}

.fsev-partner-role {
	font-size: var(--wp--preset--font-size--micro) !important;
	text-transform: uppercase;
	color: var(--wp--preset--color--body-text);
	margin-bottom: 3px !important;
}

.fsev-partner-name {
	font-size: var(--wp--preset--font-size--body) !important;
	font-weight: 600;
	color: var(--wp--preset--color--forum-blue);
	margin-bottom: 6px !important;
}

.fsev-partner-info a {
	color: var(--wp--preset--color--forum-blue);
	text-decoration: underline from-font;
}

.fsev-partner-info a:hover {
	text-decoration: none;
}

/* Button Arrow Style - works both as a wrapper modifier (.is-style-arrow on the
   wp-block-button div around a .wp-block-button__link) and as a direct modifier
   on a standalone .wp-element-button (e.g. a bare <button>/<a> with no wrapper). */
.is-style-arrow .wp-block-button__link,
.wp-element-button.is-style-arrow {
	position: relative;
	padding-right: 32px;
}

.is-style-arrow .wp-block-button__link:after,
.wp-element-button.is-style-arrow:after {
	content: "";
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("/wp-content/themes/fsev/assets/images/pfeil-weiss.svg") center/contain no-repeat;
	mask: url("/wp-content/themes/fsev/assets/images/pfeil-weiss.svg") center/contain no-repeat;
}

/* Mirror of .is-style-arrow: arrow before the text, pointing back/left
   (used by the "Zurück" button in the member sidebar). */
.is-style-arrow-back .wp-block-button__link,
.wp-element-button.is-style-arrow-back {
	position: relative;
	padding-left: 32px;
}

.is-style-arrow-back .wp-block-button__link:before,
.wp-element-button.is-style-arrow-back:before {
	content: "";
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%) scaleX(-1);
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("/wp-content/themes/fsev/assets/images/pfeil-weiss.svg") center/contain no-repeat;
	mask: url("/wp-content/themes/fsev/assets/images/pfeil-weiss.svg") center/contain no-repeat;
}

/* ─── Danke (Thank You) Page ─────────────────────────────────────────── */

.fsev-danke-content {
	padding-top: 24px;
}

.fsev-danke-content p {
	margin-bottom: 16px;
	line-height: 1.5;
}

/* Honeypot: hidden from people and from screen readers, but a bot filling
   every field it finds will trip it. Not display:none - some bots skip
   fields that are hidden that way, which would defeat the point. */
.fsev-cf-trap {
	height: 0;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	width: 0;
}
