/* =========================================================================
   150 Peel - unified form styles
   Replaces the inline style="..." attributes currently living inside each
   Contact Form 7 body. Palette and type are carried over from the existing
   forms so nothing visibly changes character, it just becomes consistent.
   ========================================================================= */

:root {
	--peel-brand: #008cba;
	--peel-brand-dark: #00708f;
	--peel-panel: #eaf7ff;
	--peel-border: #cfe3ee;
	--peel-field-border: #c3ced4;
	--peel-ink: #23323a;
	--peel-ink-strong: #10191e;
	--peel-muted: #5d6d76;
	--peel-danger: #b32d2e;
	--peel-ok: #0a7d3c;
	--peel-radius: 8px;
	--peel-gap: 20px;
	--peel-font: 'Abel', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* -------------------------------------------------------------------------
   Shell
   ---------------------------------------------------------------------- */

.peel-form {
	font-family: var(--peel-font);
	color: var(--peel-ink);
	max-width: 680px;
	margin: 0 auto 40px;
	padding: 0 4px;
}

.peel-form__panel {
	background: var(--peel-panel);
	border: 1px solid var(--peel-border);
	border-radius: var(--peel-radius);
	padding: 28px 26px 32px;
}

.peel-form__head {
	text-align: center;
	margin-bottom: 26px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--peel-border);
}

.peel-form__title {
	font-family: var(--peel-font);
	color: var(--peel-brand);
	font-size: 26px;
	line-height: 1.2;
	font-weight: 700;
	margin: 0 0 6px;
}

.peel-form__intro {
	color: var(--peel-muted);
	font-size: 15px;
	margin: 0;
}

/* Section headings inside a form */
.peel-form__section {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--peel-ink-strong);
	margin: 32px 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--peel-brand);
}

.peel-form__section:first-of-type {
	margin-top: 0;
}

/* -------------------------------------------------------------------------
   Rows, labels, hints
   ---------------------------------------------------------------------- */

.peel-form__row {
	margin-bottom: var(--peel-gap);
}

.peel-form__row:last-child {
	margin-bottom: 0;
}

.peel-form__label {
	display: block;
	font-weight: 700;
	font-size: 15px;
	color: var(--peel-ink-strong);
	margin-bottom: 6px;
}

.peel-form__label .peel-req {
	color: var(--peel-danger);
	margin-left: 2px;
}

.peel-form__hint {
	display: block;
	font-size: 13px;
	color: var(--peel-muted);
	margin-top: 5px;
}

/* Two and three column rows collapse to one column on small screens */
.peel-form__grid {
	display: grid;
	gap: 0 18px;
	grid-template-columns: 1fr;
}

@media (min-width: 620px) {
	.peel-form__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.peel-form__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Static content blocks */
.peel-form__note {
	background: #fff;
	border-left: 3px solid var(--peel-brand);
	border-radius: 0 6px 6px 0;
	padding: 14px 16px;
	margin: 0 0 var(--peel-gap);
	font-size: 14px;
	line-height: 1.55;
}

.peel-form__note--warning {
	border-left-color: var(--peel-danger);
}

.peel-form__note p:last-child { margin-bottom: 0; }

.peel-form__list {
	margin: 0 0 var(--peel-gap);
	padding-left: 20px;
	font-size: 14px;
	line-height: 1.7;
}

.peel-form a {
	color: var(--peel-brand);
	text-decoration: none;
}

.peel-form a:hover { text-decoration: underline; }

/* -------------------------------------------------------------------------
   Fields
   ---------------------------------------------------------------------- */

.peel-form input[type="text"],
.peel-form input[type="email"],
.peel-form input[type="tel"],
.peel-form input[type="url"],
.peel-form input[type="number"],
.peel-form input[type="date"],
.peel-form input[type="time"],
.peel-form select,
.peel-form textarea {
	width: 100%;
	box-sizing: border-box;
	font-family: var(--peel-font);
	font-size: 15px;
	line-height: 1.4;
	color: var(--peel-ink);
	background: #fff;
	border: 1px solid var(--peel-field-border);
	border-radius: 6px;
	padding: 11px 12px;
	margin: 0;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.peel-form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235d6d76' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 34px;
}

.peel-form input[type="date"] {
	min-height: 44px;
}

.peel-form textarea {
	min-height: 110px;
	resize: vertical;
}

.peel-form input:focus,
.peel-form select:focus,
.peel-form textarea:focus {
	outline: none;
	border-color: var(--peel-brand);
	box-shadow: 0 0 0 3px rgba(0, 140, 186, .18);
}

.peel-form ::placeholder {
	color: #93a2ab;
	opacity: 1;
}

/* File upload */
.peel-form input[type="file"] {
	width: 100%;
	box-sizing: border-box;
	font-family: var(--peel-font);
	font-size: 14px;
	background: #fff;
	border: 1px dashed var(--peel-field-border);
	border-radius: 6px;
	padding: 14px 12px;
	cursor: pointer;
}

.peel-form input[type="file"]:hover {
	border-color: var(--peel-brand);
}

/* Radios and checkboxes */
.peel-form .wpcf7-checkbox,
.peel-form .wpcf7-radio {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
}

.peel-form .wpcf7-list-item {
	margin: 0;
}

.peel-form .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	font-size: 15px;
	cursor: pointer;
	margin: 0;
}

.peel-form input[type="checkbox"],
.peel-form input[type="radio"] {
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: var(--peel-brand);
	flex: 0 0 auto;
}

/* Acceptance / single confirmation checkboxes wrap long text properly */
.peel-form .wpcf7-acceptance .wpcf7-list-item label,
.peel-form .peel-form__confirm .wpcf7-list-item label {
	align-items: flex-start;
	line-height: 1.5;
}

.peel-form .wpcf7-acceptance input[type="checkbox"],
.peel-form .peel-form__confirm input[type="checkbox"] {
	margin-top: 2px;
}

/* -------------------------------------------------------------------------
   Submit + feedback
   ---------------------------------------------------------------------- */

.peel-form__actions {
	margin-top: 30px;
	padding-top: 22px;
	border-top: 1px solid var(--peel-border);
	text-align: center;
}

.peel-form input[type="submit"],
.peel-form button[type="submit"],
.peel-form .wpcf7-submit {
	font-family: var(--peel-font);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .02em;
	color: #fff;
	background: var(--peel-brand);
	border: none;
	border-radius: 6px;
	padding: 14px 34px;
	min-width: 220px;
	cursor: pointer;
	transition: background .15s ease, transform .05s ease;
}

.peel-form input[type="submit"]:hover,
.peel-form button[type="submit"]:hover,
.peel-form .wpcf7-submit:hover {
	background: var(--peel-brand-dark);
}

.peel-form input[type="submit"]:active,
.peel-form .wpcf7-submit:active {
	transform: translateY(1px);
}

.peel-form .wpcf7-submit:disabled {
	opacity: .55;
	cursor: not-allowed;
}

/* reCAPTCHA */
.peel-form .wpcf7-recaptcha,
.peel-form .g-recaptcha {
	display: flex;
	justify-content: center;
	margin-top: 26px;
}

/* Inline validation tips */
.peel-form .wpcf7-not-valid-tip {
	display: block;
	color: var(--peel-danger);
	font-size: 13px;
	font-weight: 600;
	margin-top: 6px;
}

.peel-form .wpcf7-not-valid {
	border-color: var(--peel-danger) !important;
	background: #fff8f8;
}

/* Response banner */
.peel-form .wpcf7-response-output,
.wpcf7 form .wpcf7-response-output {
	font-family: var(--peel-font);
	font-size: 15px;
	line-height: 1.5;
	margin: 24px 0 0;
	padding: 14px 16px;
	border-width: 1px;
	border-style: solid;
	border-radius: 6px;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--peel-ok);
	background: #f1fbf5;
	color: var(--peel-ok);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
	border-color: #b58105;
	background: #fffbf0;
	color: #7a5600;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	border-color: var(--peel-danger);
	background: #fdf5f5;
	color: var(--peel-danger);
}

.peel-form .wpcf7-spinner {
	display: block;
	margin: 14px auto 0;
}

@media (prefers-reduced-motion: reduce) {
	.peel-form * {
		transition: none !important;
		animation: none !important;
	}
}

/* -------------------------------------------------------------------------
   Small screens
   ---------------------------------------------------------------------- */

@media (max-width: 600px) {
	.peel-form__panel { padding: 20px 16px 24px; }
	.peel-form__title { font-size: 22px; }
	.peel-form__section { margin-top: 26px; }
	.peel-form input[type="submit"],
	.peel-form .wpcf7-submit { width: 100%; min-width: 0; }
}

/* =========================================================================
   Login screen - "No account needed" cards

   Mobile: two compact rows under the login form, kept inside the first
   screen. Desktop: two tall cards filling the right column, matching the
   height of the login form beside them.
   ========================================================================= */

.peel-public-links {
	width: 100%;
	margin: 0;
	text-align: left;
	font-family: var(--peel-font);
}

.peel-public-links__divider {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	color: var(--peel-muted);
	font-size: 11.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	white-space: nowrap;
}

.peel-public-links__divider::before,
.peel-public-links__divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e2e9ed;
}

.peel-public-links__grid {
	display: grid;
	gap: 8px;
}

.peel-public-link {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: #eaf7ff;
	border: 1px solid #b8dcec;
	border-radius: 10px;
	color: var(--peel-ink);
	text-decoration: none;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .05s ease;
}

.peel-public-link:hover,
.peel-public-link:focus-visible {
	background: #ddf1fb;
	border-color: var(--peel-brand);
	box-shadow: 0 4px 16px rgba(0, 140, 186, .16);
	text-decoration: none;
}

.peel-public-link:active { transform: translateY(1px); }

.peel-public-link__icon {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
	color: var(--peel-brand);
}

.peel-public-link__text {
	flex: 1 1 auto;
	min-width: 0;
}

.peel-public-link__label {
	display: block;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.25;
	color: var(--peel-ink-strong);
}

/* Hidden by default. There is no room for it beside the login form on a
   phone, and the label already says what the link does. */
.peel-public-link__desc {
	display: none;
}

.peel-public-link__chev {
	flex: 0 0 auto;
	font-size: 20px;
	line-height: 1;
	color: var(--peel-brand);
}

/* -------------------------------------------------------------------------
   Desktop: tall cards filling the column
   ---------------------------------------------------------------------- */

@media (min-width: 900px) {

	.peel-public-links__divider {
		margin-bottom: 14px;
		font-size: 12px;
	}

	/* Two equal rows, stretched to whatever height the form sets. */
	.peel-public-links__grid {
		flex: 1 1 auto;
		display: grid;
		grid-template-rows: 1fr 1fr;
		gap: 16px;
		min-height: 0;
	}

	.peel-public-link {
		height: 100%;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 12px;
		padding: 26px 28px;
		border-radius: 12px;
	}

	.peel-public-link__icon {
		width: 34px;
		height: 34px;
	}

	.peel-public-link__label {
		font-size: 18px;
		line-height: 1.25;
	}

	.peel-public-link__desc {
		display: block;
		font-size: 13.5px;
		line-height: 1.45;
		color: var(--peel-muted);
		margin-top: 5px;
	}

	.peel-public-link__chev {
		position: absolute;
		top: 20px;
		right: 24px;
		font-size: 24px;
	}
}
