/* Alaska Friendship Circle — base form styling for [afc_form].
 * Scoped under .afc-form. Per-form overrides go in inc/formstack/themes/<theme>.css
 * and target .afc-form--<id> or .afc-form--theme-<name>. */
@import url("https://fonts.googleapis.com/css2?family=Lora:wght@500&family=DM+Sans:wght@300;400;500&display=swap");

.afc-form {
	--afc-cream: #F7F3EE;
	--afc-warm: #FDFAF7;
	--afc-bark: #2C1F14;
	--afc-bark-mid: #4A3728;
	--afc-bark-light: #7A5C48;
	--afc-moss: #3D5A3E;
	--afc-moss-light: #6B8F5E;
	--afc-border: rgba(44, 31, 20, 0.14);
	--afc-amber: #C07830;
	--afc-radius: 10px;

	font-family: "DM Sans", sans-serif;
	color: var(--afc-bark);
	max-width: 720px;
	margin: 0 auto;
	box-sizing: border-box;
}
.afc-form *,
.afc-form *::before,
.afc-form *::after { box-sizing: border-box; }

.afc-form__title {
	font-family: "Lora", serif;
	font-weight: 500;
	font-size: 28px;
	line-height: 1.2;
	margin: 0 0 24px;
	color: var(--afc-bark);
}

.afc-form__fields {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

/* ---- field shell ---- */
.afc-field { display: flex; flex-direction: column; }

.afc-label,
.afc-legend {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--afc-bark-light);
	margin-bottom: 9px;
	line-height: 1.4;
}
.afc-req { color: var(--afc-amber); margin-left: 3px; }
.afc-desc {
	font-size: 12px;
	font-weight: 300;
	color: var(--afc-bark-light);
	margin: 6px 0 0;
}

/* ---- inputs ---- */
.afc-input,
.afc-form select,
.afc-form textarea {
	width: 100%;
	padding: 13px 16px;
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	font-weight: 300;
	color: var(--afc-bark);
	background: var(--afc-warm);
	border: 1px solid var(--afc-border);
	border-radius: var(--afc-radius);
	line-height: 1.4;
	outline: none;
	box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
	-webkit-appearance: none;
	appearance: none;
}
.afc-textarea { min-height: 120px; resize: vertical; }
.afc-input::placeholder,
.afc-form textarea::placeholder { color: var(--afc-bark-light); opacity: .7; }

.afc-input:focus,
.afc-form select:focus,
.afc-form textarea:focus {
	border-color: var(--afc-moss-light);
	box-shadow: 0 0 0 3px rgba(107, 143, 94, 0.18);
}

.afc-field.is-error .afc-input,
.afc-field.is-error select,
.afc-field.is-error textarea {
	border-color: var(--afc-amber);
}
.afc-field__error {
	font-size: 12px;
	color: var(--afc-amber);
	margin: 6px 0 0;
}

/* ---- radio / checkbox ---- */
.afc-choices { display: flex; flex-direction: column; gap: 8px; }
.afc-choice {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 300;
	color: var(--afc-bark);
	cursor: pointer;
}
.afc-choice input[type="radio"],
.afc-choice input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--afc-moss);
	margin: 0;
	flex-shrink: 0;
}

/* ---- composite name / address ---- */
.afc-composite {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}
.afc-composite__part { display: flex; flex-direction: column; }
.afc-composite__address,
.afc-composite__address2 { grid-column: 1 / -1; }
.afc-sublabel {
	order: 2;
	font-size: 11px;
	font-weight: 300;
	color: var(--afc-bark-light);
	margin-top: 5px;
}

/* ---- section heading ---- */
.afc-section { margin-top: 12px; }
.afc-section__heading {
	font-family: "Lora", serif;
	font-size: 22px;
	font-weight: 500;
	color: var(--afc-bark);
	margin: 22px 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--afc-border);
	line-height: 1.2;
}
.afc-section__text {
	font-size: 14px;
	font-weight: 300;
	color: var(--afc-bark-mid);
	line-height: 1.6;
}

/* ---- actions ---- */
.afc-form__actions { margin-top: 28px; }
.afc-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: var(--afc-moss);
	color: #fff;
	border: none;
	border-radius: 100px;
	padding: 15px 28px;
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background .2s, transform .2s, box-shadow .2s;
}
.afc-submit:hover:not(:disabled) {
	background: var(--afc-moss-light);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(61, 90, 62, 0.25);
}
.afc-submit:disabled { opacity: .6; cursor: default; }

/* ---- status / success ---- */
.afc-form__status { margin-top: 14px; font-size: 14px; }
.afc-form__status.is-error { color: var(--afc-amber); }
.afc-form__success {
	background: var(--afc-cream);
	border: 1px solid var(--afc-border);
	border-radius: var(--afc-radius);
	padding: 28px 24px;
	font-size: 16px;
	color: var(--afc-bark);
	text-align: center;
}

/* honeypot — never visible */
.afc-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.afc-form-error { color: #C07830; font-size: 13px; }

/* ---- multi-step ---- */
.afc-step { display: none; flex-direction: column; gap: 22px; }
.afc-step.is-active { display: flex; }
.afc-step[hidden] { display: none; }

.afc-step .afc-step__heading:first-child { margin-top: 0; }

.afc-step__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 30px;
}
/* a step with only a Continue/Submit (first step, no Back) pushes it right */
.afc-step__actions > :only-child { margin-left: auto; }

.afc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 100px;
	padding: 14px 30px;
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	border: 1px solid var(--afc-border);
	background: transparent;
	color: var(--afc-bark-mid);
	transition: background .2s, transform .2s, box-shadow .2s, border-color .2s;
}
.afc-back:hover { background: var(--afc-cream); }

.afc-next {
	background: var(--afc-moss);
	color: #fff;
	border-color: var(--afc-moss);
}
.afc-next:hover {
	background: var(--afc-moss-light);
	border-color: var(--afc-moss-light);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(61, 90, 62, 0.25);
}

/* inside a step the submit sits inline (not full width) */
.afc-step__actions .afc-submit { width: auto; margin-top: 0; }

/* ---- progress ---- */
.afc-progress { margin: 4px 0 30px; }
.afc-progress__head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}
.afc-progress__count {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--afc-bark-light);
}
.afc-progress__count b { color: var(--afc-moss); }
.afc-progress__title {
	font-family: "Lora", serif;
	font-size: 17px;
	color: var(--afc-bark);
}
.afc-progress__track {
	height: 6px;
	background: var(--afc-cream);
	border-radius: 100px;
	overflow: hidden;
}
.afc-progress__fill {
	display: block;
	height: 100%;
	background: var(--afc-moss);
	border-radius: 100px;
	transition: width .35s ease;
}
.afc-progress__dots {
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
	flex-wrap: wrap;
}
.afc-progress__dot {
	display: flex;
	align-items: center;
	justify-content: center;
}
.afc-progress__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 500;
	background: var(--afc-cream);
	color: var(--afc-bark-light);
	border: 1px solid var(--afc-border);
	transition: background .2s, color .2s, border-color .2s;
}
.afc-progress__dot.is-active .afc-progress__num {
	background: var(--afc-moss);
	color: #fff;
	border-color: var(--afc-moss);
}

@media (max-width: 540px) {
	.afc-composite { grid-template-columns: 1fr; }
	.afc-step__actions { flex-direction: column-reverse; align-items: stretch; }
	.afc-step__actions .afc-btn,
	.afc-step__actions .afc-submit { width: 100%; }
	.afc-progress__title { width: 100%; }
}
