/* GuestPosts Submit — front-end forms */

.gps-notice {
	padding: 0.85rem 1.1rem;
	margin: 0 0 1.25rem;
	border-radius: 4px;
	font-size: 0.95rem;
	box-sizing: border-box;
	max-width: 100%;
	word-wrap: break-word;
}

.gps-notice--error {
	background: #fde8e6;
	color: #8a2a22;
	border: 1px solid #f0b4ad;
}

.gps-notice--success {
	background: #e6f3ef;
	color: #0f3d32;
	border: 1px solid #a8d5c6;
}

.gps-auth,
.gps-panel {
	width: 100%;
	max-width: 100%;
	margin: 0 0 2rem;
	padding: 1.5rem;
	background: #fffbf5;
	border: 1px solid rgba(15, 61, 50, 0.12);
	border-radius: 6px;
	box-sizing: border-box;
	overflow: hidden;
}

.gps-panel__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.25rem, 4vw, 1.5rem);
	color: #0f3d32;
	word-wrap: break-word;
}

.gps-panel__lede {
	margin: 0 0 1.5rem;
	color: #5c5c5c;
	word-wrap: break-word;
}

.gps-panel__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.gps-panel__head .gps-panel__title {
	margin: 0;
}

.gps-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid rgba(15, 61, 50, 0.12);
}

.gps-tabs__link {
	padding: 0.65rem 1rem;
	text-decoration: none !important;
	font-weight: 600;
	color: #5c5c5c !important;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.gps-tabs__link.is-active {
	color: #0f3d32 !important;
	border-bottom-color: #e85d4c;
}

.gps-form {
	display: grid;
	gap: 1rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.gps-field {
	display: grid;
	gap: 0.4rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.gps-field > span:first-child {
	font-size: 0.875rem;
	font-weight: 600;
	color: #0f3d32;
}

.gps-field input[type="text"],
.gps-field input[type="email"],
.gps-field input[type="password"],
.gps-field input[type="file"],
.gps-field select,
.gps-field textarea {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 0.75rem 0.9rem;
	border: 1.5px solid rgba(15, 61, 50, 0.15);
	border-radius: 4px;
	background: #fff;
	font: inherit;
	font-size: 1rem;
	color: #1a1a1a;
	box-sizing: border-box;
	display: block;
}

.gps-field textarea {
	resize: vertical;
	min-height: 7rem;
}

.gps-field input:focus,
.gps-field select:focus,
.gps-field textarea:focus {
	outline: 2px solid #1a5c4a;
	outline-offset: 1px;
	border-color: #1a5c4a;
}

/* Password + eye toggle */
.gps-password {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.gps-password input {
	padding-right: 2.85rem !important;
}

.gps-password__toggle {
	position: absolute;
	top: 50%;
	right: 0.35rem;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: none;
	border-radius: 4px;
	background: transparent;
	color: #5c5c5c;
	cursor: pointer;
	line-height: 0;
}

.gps-password__toggle:hover,
.gps-password__toggle:focus {
	color: #0f3d32;
	background: rgba(15, 61, 50, 0.06);
	outline: none;
}

.gps-password__toggle svg {
	width: 1.2rem;
	height: 1.2rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.gps-password__toggle .gps-eye-off {
	display: none;
}

.gps-password__toggle.is-visible .gps-eye-on {
	display: none;
}

.gps-password__toggle.is-visible .gps-eye-off {
	display: block;
}

.gps-help {
	display: block;
	font-size: 0.8125rem;
	color: #5c5c5c;
	word-wrap: break-word;
}

.gps-help--error {
	color: #c94a3b;
	font-weight: 600;
}

.gps-otp-input {
	letter-spacing: 0.35em;
	font-size: 1.35rem !important;
	font-weight: 700;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.gps-otp__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(15, 61, 50, 0.1);
}

.gps-inline-form {
	display: inline;
	margin: 0;
}

.gps-link-btn {
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	color: #1a5c4a;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.gps-link-btn:hover {
	color: #e85d4c;
}

.gps-check {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
}

.gps-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 1.35rem;
	font: inherit;
	font-weight: 600;
	font-size: 0.9375rem;
	border-radius: 4px;
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none !important;
	transition: transform 0.2s ease, background 0.2s ease;
	box-sizing: border-box;
	max-width: 100%;
}

.gps-btn:hover {
	transform: translateY(-1px);
}

.gps-btn--primary {
	background: #e85d4c;
	color: #fff !important;
}

.gps-btn--primary:hover {
	background: #c94a3b;
	color: #fff !important;
}

.gps-btn--ghost {
	background: transparent;
	color: #0f3d32 !important;
	border-color: #0f3d32;
}

.gps-actions-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.gps-post-list {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: 100%;
}

.gps-post-list__item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid rgba(15, 61, 50, 0.1);
}

.gps-post-list__title {
	display: block;
	margin-bottom: 0.2rem;
	color: #0f3d32;
	word-wrap: break-word;
}

.gps-post-list__title a {
	color: inherit;
	text-decoration: none;
}

.gps-post-list__meta {
	font-size: 0.8125rem;
	color: #5c5c5c;
}

.gps-status {
	flex-shrink: 0;
	padding: 0.25rem 0.6rem;
	border-radius: 3px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.gps-status--pending {
	background: #fff3cd;
	color: #7a5b00;
}

.gps-status--publish {
	background: #e6f3ef;
	color: #0f3d32;
}

.gps-status--draft {
	background: #f0f0f0;
	color: #555;
}

@media (max-width: 600px) {
	.gps-auth,
	.gps-panel {
		padding: 1.1rem;
		margin-bottom: 1.25rem;
	}

	.gps-field input[type="text"],
	.gps-field input[type="email"],
	.gps-field input[type="password"],
	.gps-field input[type="file"],
	.gps-field select,
	.gps-field textarea {
		padding: 0.7rem 0.8rem;
		font-size: 16px; /* prevents iOS zoom */
	}

	.gps-password input {
		padding-right: 2.75rem !important;
	}

	.gps-btn {
		width: 100%;
	}

	.gps-actions-row {
		flex-direction: column;
	}

	.gps-actions-row .gps-btn {
		width: 100%;
	}

	.gps-post-list__item {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
}
