/**
 * Angels in Distress Membership Form — frontend styles
 */

.arm-form-wrap {
	--arm-ink: #1c241e;
	--arm-forest: #2d5a3d;
	--arm-forest-deep: #1a3a2a;
	--arm-mist: #eef2ee;
	--arm-line: #c8d2c8;
	--arm-danger: #9b2c2c;
	--arm-ok: #1e6b3a;
	--arm-radius: 4px;
	--arm-font: "Source Sans 3", "Segoe UI", Candara, Calibri, sans-serif;
	--arm-display: "Libre Baskerville", Georgia, "Times New Roman", serif;

	max-width: 720px;
	margin: 0 auto;
	padding: 1.5rem 1rem 2rem;
	color: var(--arm-ink);
	font-family: var(--arm-font);
	background:
		linear-gradient(180deg, rgba(238, 242, 238, 0.9) 0%, rgba(255, 255, 255, 0.95) 48%),
		repeating-linear-gradient(
			-12deg,
			transparent,
			transparent 11px,
			rgba(45, 90, 61, 0.03) 11px,
			rgba(45, 90, 61, 0.03) 12px
		);
	border: 1px solid var(--arm-line);
}

.arm-form__header {
	margin-bottom: 1.75rem;
	padding-bottom: 1rem;
	border-bottom: 3px solid var(--arm-forest);
}

.arm-form__title {
	margin: 0 0 0.4rem;
	font-family: var(--arm-display);
	font-size: clamp(1.55rem, 2.4vw, 2rem);
	font-weight: 700;
	color: var(--arm-forest-deep);
	letter-spacing: -0.01em;
}

.arm-form__intro {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
	color: #4a564c;
}

.arm-form__section {
	margin: 0 0 1.75rem;
	padding: 0;
	border: 0;
	min-inline-size: 0;
}

.arm-form__legend {
	display: block;
	width: 100%;
	margin: 0 0 1rem;
	padding: 0;
	font-family: var(--arm-display);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--arm-forest);
}

.arm-form__hint {
	margin: -0.5rem 0 1rem;
	font-size: 0.9rem;
	color: #5a665c;
}

.arm-field-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-bottom: 1rem;
}

.arm-field-row--2 {
	grid-template-columns: repeat(2, 1fr);
}

.arm-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-bottom: 1rem;
}

.arm-field--full {
	grid-column: 1 / -1;
}

.arm-field label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--arm-forest-deep);
}

.arm-required {
	color: var(--arm-danger);
}

.arm-field input[type="text"],
.arm-field input[type="email"],
.arm-field input[type="tel"],
.arm-field input[type="date"] {
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--arm-line);
	border-radius: var(--arm-radius);
	background: #fff;
	font: inherit;
	font-size: 1rem;
	color: var(--arm-ink);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.arm-field input:focus {
	outline: none;
	border-color: var(--arm-forest);
	box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.18);
}

.arm-interests {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem 1.25rem;
	margin-bottom: 1.25rem;
}

.arm-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	font-size: 0.95rem;
	line-height: 1.35;
	cursor: pointer;
}

.arm-checkbox input {
	margin-top: 0.2rem;
	accent-color: var(--arm-forest);
	flex-shrink: 0;
}

.arm-signature {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
}

.arm-signature canvas {
	display: block;
	width: 100%;
	max-width: 600px;
	height: auto;
	aspect-ratio: 600 / 180;
	touch-action: none;
	cursor: crosshair;
	background: #fff;
	border: 1px solid var(--arm-line);
	border-radius: var(--arm-radius);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.arm-btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: var(--arm-radius);
	padding: 0.7rem 1.35rem;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.arm-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.arm-btn--primary {
	background: var(--arm-forest);
	color: #fff;
}

.arm-btn--primary:hover:not(:disabled) {
	background: var(--arm-forest-deep);
}

.arm-btn--ghost {
	background: transparent;
	border-color: var(--arm-line);
	color: var(--arm-forest-deep);
	padding: 0.4rem 0.85rem;
	font-size: 0.85rem;
}

.arm-btn--ghost:hover:not(:disabled) {
	border-color: var(--arm-forest);
	background: var(--arm-mist);
}

.arm-form__actions {
	margin-top: 0.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--arm-line);
}

.arm-form__messages {
	margin-bottom: 1.25rem;
	padding: 0.85rem 1rem;
	border-radius: var(--arm-radius);
	font-size: 0.95rem;
	line-height: 1.45;
}

.arm-form__messages.is-success {
	background: #e8f5ec;
	border: 1px solid #b7dcc4;
	color: var(--arm-ok);
}

.arm-form__messages.is-error {
	background: #fcebeb;
	border: 1px solid #e8b4b4;
	color: var(--arm-danger);
}

/* Honeypot — visually hidden but present for bots */
.arm-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

@media (max-width: 640px) {
	.arm-field-row,
	.arm-field-row--2,
	.arm-interests {
		grid-template-columns: 1fr;
	}

	.arm-form-wrap {
		padding: 1.15rem 0.85rem 1.5rem;
	}
}
