/*
 * "Add your platform" form.
 *
 * Every colour, radius and shadow here is a token from the theme's style.css
 * (:root in the smsactiver theme) — the form must look like the rest of the
 * site, not like a plugin dropped onto it. .form-control and .btn repeat the
 * homepage rules on purpose: those live in front-page.css, which is enqueued
 * only on the front page, so a page with this form would otherwise get browser
 * defaults.
 */

.ps-form-wrap {
	margin: 28px 0 8px;
}

.ps-form {
	background: var(--surface, #fff);
	border: 1px solid var(--border, #E2E8F0);
	border-radius: var(--radius-lg, 16px);
	box-shadow: var(--shadow-sm, 0 1px 2px 0 rgba(15, 23, 42, 0.06));
	padding: 20px 16px;
}

.ps-row {
	margin-bottom: 16px;
}

.ps-row:last-of-type {
	margin-bottom: 20px;
}

.ps-label {
	display: block;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--ink, #0F172A);
	margin-bottom: 6px;
}

.ps-req {
	color: var(--primary, #EA580C);
}

.ps-hint {
	display: block;
	margin-top: 6px;
	font-size: 0.82rem;
	color: var(--muted, #64748B);
}

/* Repeated from front-page.css — that sheet does not load on this page. */
.ps-form .form-control {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--border, #E2E8F0);
	border-radius: var(--radius-sm, 8px);
	font-size: 0.95rem;
	font-family: inherit;
	color: var(--ink, #0F172A);
	background: #fff;
}

.ps-form textarea.form-control {
	min-height: 110px;
	resize: vertical;
	line-height: 1.5;
}

.ps-form .form-control:hover {
	border-color: #CBD5E1;
}

.ps-form .form-control:focus {
	outline: none;
	border-color: var(--primary, #EA580C);
	box-shadow: var(--focus-ring, 0 0 0 3px rgba(234, 88, 12, 0.35));
}

/* :user-invalid, not :invalid — a required field the visitor has not touched yet
   is empty, not wrong, and must not be painted red on page load. */
.ps-form .form-control:user-invalid {
	border-color: var(--danger, #DC2626);
}

.ps-fieldset {
	border: 0;
	padding: 0;
	margin-bottom: 16px;
}

.ps-fieldset legend {
	padding: 0;
}

.ps-radio {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin-right: 20px;
	font-size: 0.95rem;
	color: var(--ink, #0F172A);
	cursor: pointer;
}

.ps-radio input {
	width: 18px;
	height: 18px;
	accent-color: var(--primary, #EA580C);
	cursor: pointer;
}

/* Repeated from style.css .btn/.btn-primary for the same reason as .form-control. */
.ps-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 24px;
	border-radius: var(--radius-sm, 8px);
	background: var(--primary, #EA580C);
	color: var(--on-primary, #fff);
	font-weight: 700;
	font-size: 0.95rem;
	font-family: inherit;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ps-submit:hover {
	background: var(--primary-hover, #C2410C);
}

.ps-submit:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring, 0 0 0 3px rgba(234, 88, 12, 0.35));
}

/* Result of the previous submit. */
.ps-note {
	padding: 12px 14px;
	border-radius: var(--radius-sm, 8px);
	font-size: 0.95rem;
	margin-bottom: 16px;
}

.ps-note-ok {
	background: var(--success-bg, #ECFDF5);
	color: var(--success, #047857);
	border: 1px solid var(--success, #047857);
}

.ps-note-err {
	background: var(--danger-bg, #FEF2F2);
	color: var(--danger, #DC2626);
	border: 1px solid var(--danger, #DC2626);
}

/* Honeypot: off-screen rather than display:none — some bots skip hidden inputs. */
.ps-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (min-width: 640px) {
	.ps-form {
		padding: 28px 28px 24px;
	}

	.ps-grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ps-submit {
		transition: none;
	}
}
