/* MWAP Walk — Native form styling (Register a Walk, Join a Walk)
   Pill-shaped inputs, blue focus rings, coral CTAs. Responsive mobile-first. */

.mwap-form {
	max-width: 600px;
	margin: 40px auto 0;
	padding: 0 20px;
	font-family: 'GT Walsheim Pro', -apple-system, sans-serif;
	color: var(--mwap-text);
}

/* ---- Title ---- */
.mwap-form__title {
	margin: 0 0 32px;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.5px;
	color: var(--mwap-text);
}

/* ---- Field Container ---- */
.mwap-form__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 20px;
}

.mwap-form__label {
	font-size: 15px;
	font-weight: 600;
	color: var(--mwap-text);
	display: flex;
	align-items: center;
	gap: 4px;
}

.mwap-form__label--required::after {
	content: "*";
	color: var(--mwap-pin-coral);
	font-weight: 700;
}

.mwap-form__label-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 500;
	color: var(--mwap-text);
	cursor: pointer;
	user-select: none;
}

.mwap-form__label-checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: var(--mwap-accent);
}

/* ---- Inputs ---- */
.mwap-form__input,
.mwap-form__select {
	padding: 14px 16px;
	border: 1px solid #e1e6eb;
	border-radius: 999px;
	font: inherit;
	font-size: 15px;
	color: var(--mwap-text);
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}

.mwap-form__input::placeholder {
	color: #9aa5b1;
}

.mwap-form__input:focus,
.mwap-form__select:focus {
	outline: none;
	border-color: var(--mwap-accent);
	box-shadow: 0 0 0 3px rgba(25, 155, 215, 0.15);
}

/* ---- Textarea ---- */
.mwap-form__textarea {
	padding: 12px 14px;
	border: 1px solid #e1e6eb;
	border-radius: 8px;
	font: inherit;
	font-size: 15px;
	color: var(--mwap-text);
	background: #fff;
	min-height: 80px;
	resize: vertical;
	transition: border-color .15s, box-shadow .15s;
}

.mwap-form__textarea::placeholder {
	color: #9aa5b1;
}

.mwap-form__textarea:focus {
	outline: none;
	border-color: var(--mwap-accent);
	box-shadow: 0 0 0 3px rgba(25, 155, 215, 0.15);
}

/* ---- Select Styling (Custom arrow) ---- */
.mwap-form__select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa5b1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 20px;
	padding-right: 40px;
}

/* ---- Fieldset (Family section) ---- */
.mwap-form__fieldset {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 20px 0;
	padding: 16px;
	background: #f9fafb;
	border: 1px solid #e1e6eb;
	border-radius: 8px;
	font: inherit;
	border: none;
}

.mwap-form__fieldset[hidden] {
	display: none;
}

/* ---- Section Title ---- */
.mwap-form__section-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--mwap-text);
	margin-top: 32px;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid #e1e6eb;
	display: flex;
	align-items: center;
	gap: 8px;
}

.mwap-form__section-title .mwap-form__label-checkbox {
	margin: 0;
	padding: 0;
	border: none;
	font-size: 16px;
	font-weight: 700;
}

/* ---- Messages ---- */
.mwap-form__message {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.6;
	border-left: 4px solid;
}

.mwap-form__message--error {
	background: rgba(217, 79, 58, 0.1);
	color: #d94f3a;
	border-left-color: #d94f3a;
}

.mwap-form__message--success {
	background: rgba(98, 164, 117, 0.1);
	color: #62a475;
	border-left-color: #62a475;
}

.mwap-form__message--info {
	background: rgba(25, 155, 215, 0.1);
	color: var(--mwap-accent, #199bd7);
	border-left-color: var(--mwap-accent, #199bd7);
}

/* ---- Small text (helper) ---- */
.mwap-form__field small {
	font-size: 13px;
	color: #5b6770;
	margin-top: 4px;
}

/* ---- Buttons ---- */
.mwap-form__actions {
	display: flex;
	gap: 12px;
	margin-top: 32px;
	justify-content: flex-start;
}

.mwap-form__button {
	padding: 12px 32px;
	border: none;
	border-radius: 6px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all .15s ease;
}

.mwap-form__button--primary {
	background: var(--mwap-pin-coral);
	color: #fff;
}

.mwap-form__button--primary:hover {
	background: #d94f3a;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(239, 99, 81, 0.3);
}

.mwap-form__button--primary:active {
	transform: translateY(0);
}

.mwap-form__button--secondary {
	background: transparent;
	color: var(--mwap-accent);
	border: 1px solid var(--mwap-accent);
}

.mwap-form__button--secondary:hover {
	background: rgba(25, 155, 215, 0.05);
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
	.mwap-form {
		margin: 24px auto 0;
		padding: 0 16px;
	}

	.mwap-form__title {
		font-size: 24px;
		margin-bottom: 24px;
	}

	.mwap-form__field {
		margin-bottom: 16px;
	}

	.mwap-form__section-title {
		margin-top: 24px;
		margin-bottom: 16px;
		font-size: 15px;
	}

	.mwap-form__fieldset {
		padding: 12px;
		margin: 16px 0;
	}

	.mwap-form__button {
		padding: 12px 24px;
		font-size: 14px;
	}

	.mwap-form__actions {
		margin-top: 24px;
	}
}
