/* GK FSR form styles (WP-1.2 + WP-1.10 token match).
   Plain CSS, no build step. Aligns with landing.css cream/terracotta system. */

.gk-fsr-form {
	max-width: 480px;
	margin: 0 auto;
	text-align: left;
	overflow: hidden;
}

.gk-fsr-row {
	margin-bottom: 18px;
	position: relative;
}

.gk-fsr-row label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: #17140f;
}

.gk-fsr-row input[type="text"],
.gk-fsr-row input[type="email"],
.gk-fsr-row select,
.gk-fsr-row textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 13px;
	font-size: 15px;
	border: 1px solid #d9d1c0;
	border-radius: 4px;
	background: #fff;
	font-family: inherit;
	color: #17140f;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gk-fsr-row input[type="text"]:focus,
.gk-fsr-row input[type="email"]:focus,
.gk-fsr-row select:focus,
.gk-fsr-row textarea:focus {
	outline: none;
	border-color: #c1401f;
	box-shadow: 0 0 0 3px rgba(193, 64, 31, 0.15);
}

.gk-fsr-row--checkbox label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	font-size: 14px;
}

.gk-fsr-row--checkbox input {
	width: auto;
	margin: 0;
	accent-color: #c1401f;
}

/* Address autocomplete suggestions */
.gk-fsr-address-suggestions {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	border: 1px solid #d9d1c0;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
}

.gk-fsr-address-suggestion {
	padding: 10px 12px;
	font-size: 14px;
	cursor: pointer;
	border-bottom: 1px solid #f1ece1;
}

.gk-fsr-address-suggestion:last-child {
	border-bottom: none;
}

.gk-fsr-address-suggestion:hover,
.gk-fsr-address-suggestion:focus {
	background: #f1ece1;
	outline: none;
}

.gk-fsr-sase-prompt {
	margin-top: 10px;
	font-size: 13px;
	line-height: 1.5;
	color: #6b6558;
}

.gk-fsr-sase-link {
	display: inline;
	padding: 0;
	margin: 0;
	border: none;
	background: none;
	font: inherit;
	font-weight: 600;
	color: #c1401f;
	text-decoration: underline;
	cursor: pointer;
}

.gk-fsr-sase-link:hover,
.gk-fsr-sase-link:focus-visible {
	color: #9a3318;
}

/* Envelope-style address confirm — default hidden; flex only when .is-open */
.gk-fsr-address-confirm {
	margin: 20px 0;
	padding: 0;
	background: transparent;
	border: none;
	display: none;
	flex-direction: column;
	align-items: flex-start;
	max-width: 500px;
	width: 100%;
}

.gk-fsr-address-confirm.is-open {
	display: flex;
}

.gk-fsr-address-confirm--exit {
	animation: gk-fsr-envelope-exit 1.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
	pointer-events: none;
}

@keyframes gk-fsr-envelope-exit {
	from {
		transform: translateX(0);
		opacity: 1;
	}
	to {
		transform: translateX(115%);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gk-fsr-address-confirm--exit {
		animation: none;
	}
}

.gk-fsr-post-confirm {
	margin-top: 10px;
	display: none;
}

.gk-fsr-post-confirm.is-open {
	display: block;
}

.gk-fsr-sase-instructions {
	margin-top: 12px;
	width: 100%;
	display: none;
}

.gk-fsr-sase-instructions.is-open {
	display: block;
}

.gk-fsr-sase-heading {
	margin: 0 0 0.35rem;
	font-size: 14px;
	font-weight: 600;
	color: #17140f;
}

.gk-fsr-sase-sub {
	margin: 0 0 0.75rem;
	font-size: 12px;
	line-height: 1.45;
	color: #6b6558;
}

.gk-fsr-envelope {
	position: relative;
	width: 100%;
	aspect-ratio: 5 / 3;
	background: #fffef9;
	border: 1px solid #d9d1c0;
	border-radius: 2px;
	box-shadow: 0 2px 8px rgba(23, 20, 15, 0.07);
	overflow: hidden;
}

.gk-fsr-envelope-return {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 72px;
	height: auto;
	z-index: 2;
}

.gk-fsr-envelope-stamp {
	position: absolute;
	top: 10px;
	right: 10px;
	line-height: 0;
	z-index: 2;
}

.gk-fsr-stamp-svg {
	display: block;
	width: 44px;
	height: auto;
	filter: drop-shadow(0 1px 2px rgba(23, 20, 15, 0.1));
}

.gk-fsr-envelope-body {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3.25rem 1rem 1rem;
	pointer-events: none;
}

.gk-fsr-address-label {
	text-align: left;
	padding: 0;
	font-family: "Courier New", Courier, monospace;
	font-size: 14px;
	line-height: 1.6;
	color: #17140f;
}

.gk-fsr-address-label p {
	margin: 0;
}

.gk-fsr-address-label p:first-child {
	font-weight: 700;
}

.gk-fsr-address-confirm-q {
	margin: 1.1rem 0 0.75rem;
	font-size: 15px;
	font-weight: 600;
	text-align: left;
	color: #17140f;
	width: 100%;
}

.gk-fsr-address-confirm-q[hidden] {
	display: none !important;
}

.gk-fsr-address-confirm-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-start;
	width: 100%;
}

.gk-fsr-address-confirm-actions[hidden] {
	display: none !important;
}

.gk-fsr-row--submit {
	margin-top: 20px;
}

.cf-turnstile {
	margin: 16px 0;
}

.gk-fsr-error {
	color: #b32d2e;
	font-size: 14px;
	margin-top: 10px;
}

.gk-fsr-success {
	color: #1a6b3c;
	font-size: 14px;
	margin-top: 10px;
}

.gk-fsr-done {
	text-align: center;
	padding: 2.5rem 1rem;
}

.gk-fsr-done .gk-fsr-success {
	font-size: 1.15rem;
	line-height: 1.55;
	margin: 0;
}

.gk-fsr-form--done {
	text-align: center;
}

/* Secondary button — match landing (no pill) */
.gk-btn--secondary {
	display: inline-block;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 3px;
	border: 2px solid #d9d1c0;
	background: #fff;
	color: #17140f;
	cursor: pointer;
}

.gk-btn--secondary:hover,
.gk-btn--secondary:focus-visible {
	border-color: #c1401f;
	color: #c1401f;
}

.gk-fsr-form button.gk-btn {
	border: none;
	cursor: pointer;
}

.gk-fsr-form button.gk-btn--secondary {
	border: 2px solid #d9d1c0;
}
