/* =====================================================================
   Flip180 Archive Opportunity Assessment — public styles
   Aesthetic: editorial / publishing house. Warm paper, deep ink,
   archival green + brass. Typography is inherited from the active theme.
   All variables scoped to .fp-archive-opportunity-assesment to avoid theme clashes.
   ===================================================================== */

.fp-archive-opportunity-assesment {
	--f180-ink: #1d1a16;
	--f180-ink-soft: #46413a;
	--f180-muted: #837a6c;
	--f180-paper: #f6f1e7;
	--f180-card: #fdfbf5;
	--f180-card-2: #f1ead9;
	--f180-line: #ddd;
	--f180-line-strong: #333;
	--f180-green: #1f4a3f;
	--f180-green-dk: #163730;
	--f180-green-soft: #2c6354;
	--f180-brass: #9E0B1B;
	--f180-brass-dk: #9E0B1B;
	--f180-shadow: 28px 28px 60px rgba(29, 26, 22, 0.10);
	--f180-radius: 4px;
	/* Shared answer-card variables used by both assessment shortcodes. */
	--fb-ink: #171717;
	--fb-copy: #4a4742;
	--fb-muted: #77716a;
	--fb-line: #ddd8d0;
	--fb-soft: #f3f0eb;
	--fb-accent: #9e0b1b;
	--fb-green: #1f4a3f;

	box-sizing: border-box;
	max-width: 920px;
	margin: 0 auto;
	padding: clamp(20px, 4vw, 40px);
	font-family: 'Poppins';
	font-size: 17px;
	line-height: 1.6;
	color: var(--f180-ink);
	border: 1px solid #ddd;
	position: relative;
	overflow: hidden;
}

.fp-archive-opportunity-assesment *,
.fp-archive-opportunity-assesment *::before,
.fp-archive-opportunity-assesment *::after { box-sizing: border-box; }

.fp-archive-opportunity-assesment [hidden] { display: none !important; }

/* ----------------------------- shared bits ----------------------------- */

.fp-archive-opportunity-assesment h1,
.fp-archive-opportunity-assesment h2,
.fp-archive-opportunity-assesment h3,
.fp-archive-opportunity-assesment h4 {
	font-family: inherit;
	font-weight: 500;
	color: var(--f180-ink);
	margin: 0;
	letter-spacing: -0.01em;
}

.flip180-req { color: var(--f180-brass-dk); }

/* buttons */
.flip180-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.01em;
	padding: 14px 26px;
	border-radius: 2px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.18s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
	text-decoration: none;
}
.flip180-btn__arrow { transition: transform 0.2s ease; }
.flip180-btn--primary {
	background: var(--f180-green);
	color: #f7f3ea;
	box-shadow: 0 10px 24px rgba(31, 74, 63, 0.22);
}
.flip180-btn--primary:hover {
	background: var(--f180-green-dk);
	transform: translateY(-1px);
}
.flip180-btn--primary:hover .flip180-btn__arrow { transform: translateX(4px); }
.flip180-btn--ghost {
	background: transparent;
	color: var(--f180-ink-soft);
	border-color: var(--f180-line-strong);
}
.flip180-btn--ghost:hover { background: var(--f180-card-2); color: var(--f180-ink); }
.flip180-btn--lg { padding: 17px 34px; font-size: 16px; }
.flip180-btn[disabled] { opacity: 0.6; cursor: default; }
.flip180-btn.is-loading { position: relative; color: transparent; }
.flip180-btn.is-loading::after {
	content: "";
	position: absolute; inset: 0; margin: auto;
	width: 18px; height: 18px;
	border: 2px solid rgba(247, 243, 234, 0.45);
	border-top-color: #f7f3ea;
	border-radius: 50%;
	animation: f180-spin 0.7s linear infinite;
}
@keyframes f180-spin { to { transform: rotate(360deg); } }

/* ------------------------------- intro -------------------------------- */

.flip180-intro { padding: clamp(24px, 6vw, 72px) 0; text-align: center; }
.flip180-intro__inner { max-width: 640px; margin: 0 auto; }
.flip180-intro__sub {
	font-size: clamp(17px, 2.2vw, 20px);
	color: var(--f180-ink-soft);
	margin: 0 auto 20px;
	max-width: 520px;
}
.flip180-dev-preview { margin: 16px 0 0; font-size: 14px; }
.flip180-dev-preview a { color: var(--f180-muted); }
.flip180-dev-preview a:hover { color: var(--f180-green); }

/* ------------------------------ progress ------------------------------ */

.flip180-progress { margin-bottom: 36px; }
.flip180-progress__track {
	height: 2px;
	background: var(--f180-line);
	border-radius: 2px;
	overflow: hidden;
	margin-bottom: 18px;
}
.flip180-progress__bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--f180-green), var(--f180-green-soft));
	transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
ol.flip180-progress__steps {
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin: 0; padding: 0;
}
.flip180-progress__step {
	display: flex;
	align-items: center;
	gap: 9px;
	/* flex: 1; */
	min-width: 0;
	transition: color 0.25s ease;
}
.flip180-progress__num {
	flex: 0 0 auto;
	width: 27px; height: 27px;
	display: grid; place-items: center;
	border-radius: 50%;
	border: 1px solid var(--f180-line-strong);
	font-size: 13px;
	font-weight: 600;
	transition: all 0.25s ease;
}
.flip180-progress__label {
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.flip180-progress__step.is-active { color: var(--f180-ink); }
.flip180-progress__step.is-active .flip180-progress__num {
	background: #000;
	border-color: #000;
	color: #fff;
}
.flip180-progress__step.is-done .flip180-progress__num {
	background: #9E0B1B;
	border-color: #9E0B1B;
	color: #fff;
}

/* -------------------------------- step -------------------------------- */

.flip180-form { max-width: 760px; margin: 0 auto; }
.flip180-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.flip180-step__instruction {
	margin: 0 0 28px;
	color: #4f4b46;
	font-size: 17px;
	line-height: 1.6;
}
.flip180-step__head { margin-bottom: 26px; }
.flip180-step__title { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.12; margin-bottom: 6px; }

.flip180-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
}
.flip180-field--wide { grid-column: 1 / -1; }

.flip180-field { display: flex; flex-direction: column; min-width: 0; }
.flip180-assessment__choice-field {
	min-width: 0;
	margin: 0 0 24px;
	padding: 0;
	border: 0;
}
.flip180-assessment__choice-field .flip180-budget__question-title {
	max-width: 700px;
}
.flip180-assessment__choice-field[data-flip180-field="archive_format"],
.flip180-assessment__choice-field[data-flip180-field="evergreen"] {
	margin-top: 34px;
}
.flip180-field__hint {
	font-size: 16px;
	margin: -3px 0 9px;
}

.flip180-input {
	width: 100%;
    padding: 26px 24px;
    font-family: Poppins;
    font-size: 12px;
    font-weight: 500;
    color: #353535;
    border: 1px solid transparent;
    border-radius: 5px;
    background: #f7f7f7;
}

.flip180-input::placeholder {
    font-size: 12px;
    font-weight: 500;
    color: #353535;
    opacity: 0.5;
 }

/* select with custom chevron */
.flip180-selectwrap { position: relative; }
.flip180-selectwrap::after {
	content: "";
	position: absolute; right: 16px; top: 50%;
	width: 9px; height: 9px;
	border-right: 2px solid var(--f180-green);
	border-bottom: 2px solid var(--f180-green);
	transform: translateY(-65%) rotate(45deg);
	pointer-events: none;
}
.flip180-select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 40px;
	cursor: pointer;
}

/* checkboxes */
.flip180-checks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
    margin-bottom: 20px;
    max-width: 400px;
    font-size: 14px;
}
.flip180-check {
	display: flex;
	align-items: center;
	gap: 11px;
	transition: border-color 0.18s ease, background 0.18s ease;
}
.flip180-check:hover { border-color: var(--f180-green-soft); }
.flip180-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.flip180-check__box {
	flex: 0 0 auto;
	width: 20px; height: 20px;
	border: 1.5px solid var(--f180-line-strong);
	border-radius: 2px;
	background: #fff;
	position: relative;
	transition: all 0.18s ease;
}
.flip180-check__box::after {
	content: "";
	position: absolute; left: 6px; top: 2px;
	width: 5px; height: 10px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg) scale(0);
	transition: transform 0.18s ease;
}
.flip180-check input:checked ~ .flip180-check__box {
	background: var(--f180-green);
	border-color: var(--f180-green);
}
.flip180-check input:checked ~ .flip180-check__box::after { transform: rotate(45deg) scale(1); }
.flip180-check input:focus-visible ~ .flip180-check__box {
	box-shadow: 0 0 0 3px rgba(44, 99, 84, 0.18);
}
.flip180-check input:checked ~ .flip180-check__text { font-weight: 600; }

/* errors */
.flip180-field.has-error .flip180-input {
	border-color: #c0473d;
}
.flip180-field.has-error .flip180-budget__answer-surface {
	border-color: var(--fb-accent);
}

.flip180-turnstile { margin-top: 24px; }

.fp-archive-opportunity-assesment [data-flip180-audit][aria-disabled="true"] {
	opacity: 0.6;
	pointer-events: none;
}
.fp-archive-opportunity-assesment [data-flip180-submit][aria-disabled="true"] {
	opacity: 0.6;
	pointer-events: none;
}

/* step nav */
.flip180-step__nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--f180-line);
}

/* ------------------------------ loading ------------------------------- */

.flip180-loading {
	min-height: 300px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 22px;
	text-align: center;
}
.flip180-loading__ring { display: flex; gap: 9px; }
.flip180-loading__ring span {
	width: 12px; height: 12px;
	border-radius: 50%;
	background: var(--f180-green);
	animation: f180-bounce 1s ease-in-out infinite;
}
.flip180-loading__ring span:nth-child(2) { background: var(--f180-brass); animation-delay: 0.15s; }
.flip180-loading__ring span:nth-child(3) { animation-delay: 0.3s; }
@keyframes f180-bounce {
	0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
	40% { transform: translateY(-12px); opacity: 1; }
}
.flip180-loading__text {
	font-family: inherit;
	font-size: 20px;
	color: var(--f180-ink-soft);
	margin: 0;
}

/* ------------------------------ results ------------------------------- */

.flip180-snapshot__head { text-align: center; margin-bottom: 30px; }
.flip180-snapshot__title { font-size: clamp(26px, 4vw, 38px); line-height: 1.1; }
.flip180-snapshot__title em { font-style: italic; color: var(--f180-green); }

.flip180-snapshot__hero {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: clamp(24px, 5vw, 48px);
	align-items: center;
	padding: clamp(22px, 4vw, 34px);
	border: 1px solid var(--f180-line);
}

/* gauge */
.flip180-gauge { position: relative; width: 188px; height: 188px; flex: 0 0 auto; margin: 0 auto; }
.flip180-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.flip180-gauge__track { fill: none; stroke: #ddd; stroke-width: 14; }
.flip180-gauge__value {
	fill: none;
	stroke: url(#none);
	stroke: #9E0B1B;
	stroke-width: 14;
	stroke-linecap: round;
	transition: stroke-dashoffset 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.flip180-gauge.is-animated .flip180-gauge__value { stroke: #9E0B1B; }
.flip180-gauge__center {
	position: absolute; inset: 0;
	display: flex; flex-direction: column;
	align-items: center; justify-content: center;
	text-align: center;
}
.flip180-gauge__num {
	font-family: inherit;
	font-size: 56px;
	font-weight: 500;
	line-height: 1;
	color: #9E0B1B;
}
.flip180-gauge__den { font-size: 13px; color: var(--f180-muted); margin-top: 2px; }
.flip180-gauge__cap {
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #000;
	margin-top: 8px;
	font-weight: 600;
}

.flip180-snapshot__stats { display: grid; gap: 16px; }
.flip180-stat {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--f180-line);
}
.flip180-stat:last-child { border-bottom: 0; padding-bottom: 0; }
.flip180-stat__label {
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--f180-muted);
	font-weight: 600;
}
.flip180-stat__value {
	font-family: inherit;
	font-size: 23px;
	color: var(--f180-ink);
	display: flex;
	align-items: baseline;
	gap: 8px;
}
.flip180-stat__value small {
	font-family: inherit;
	font-size: 13px;
	color: var(--f180-muted);
}

/* .flip180-readiness--low { color: #b06a2e; } */
/* .flip180-readiness--moderate { color: var(--f180-brass-dk); } */
/* .flip180-readiness--strong { color: var(--f180-green-soft); } */
/* .flip180-readiness--high { color: var(--f180-green); } */

/* traffic bars */
.flip180-traffic { align-items: center; }
.flip180-traffic__bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.flip180-traffic__bars i {
	width: 5px;
	background: var(--f180-line-strong);
	border-radius: 1px;
}
.flip180-traffic__bars i:nth-child(1) { height: 7px; }
.flip180-traffic__bars i:nth-child(2) { height: 12px; }
.flip180-traffic__bars i:nth-child(3) { height: 18px; }
.flip180-traffic--low .flip180-traffic__bars i:nth-child(1),
.flip180-traffic--medium .flip180-traffic__bars i:nth-child(1),
.flip180-traffic--medium .flip180-traffic__bars i:nth-child(2),
.flip180-traffic--strong .flip180-traffic__bars i { background: var(--f180-green); }

.flip180-snapshot__insight {
	position: relative;
	margin: 28px 0 0;
	padding: clamp(25px, 4vw, 36px) clamp(24px, 5vw, 44px);
	overflow: hidden;
	border: 1px solid #dce5e1;
	border-left: 4px solid var(--f180-green);
}
.flip180-snapshot__insight-label,
.flip180-panel__eyebrow,
.flip180-monetization__eyebrow {
	display: block;
	margin-bottom: 9px;
	color: var(--f180-green);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .15em;
	line-height: 1.3;
	text-transform: uppercase;
}
.flip180-snapshot__lede {
	position: relative;
	z-index: 1;
	max-width: 740px;
	margin: 0;
	color: var(--f180-ink-soft);
	font-size: clamp(17px, 2.2vw, 20px);
	font-weight: 400;
	line-height: 1.65;
}
.flip180-snapshot__lede strong {
	color: var(--f180-green);
	font-size: 1.12em;
	font-weight: 600;
}

/* assessment insight panels */
.flip180-panels {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 18px;
}
.flip180-panel {
	position: relative;
	min-width: 0;
	padding: clamp(24px, 3vw, 30px);
	border: 1px solid var(--f180-line);
	background: #fff;
	box-shadow: 0 12px 35px rgba(29, 26, 22, 0.05);
}
/* .flip180-panel::before {
	content: "";
	position: absolute;
	left: -1px;
	top: -1px;
	bottom: -1px;
	width: 3px;
	background: var(--f180-green);
} */
.flip180-panel--accent {
	border-color: #eadbde;
	background: linear-gradient(145deg, #fff 0%, #fcf7f8 100%);
}
.flip180-panel--accent::before { background: var(--f180-brass); }
.flip180-panel__head {
	margin-bottom: 20px;
}
.flip180-panel__head > div { min-width: 0; }
.flip180-panel__eyebrow { margin: 0 0 4px; }
.flip180-panel--accent .flip180-panel__eyebrow { color: var(--f180-brass); }
.flip180-panel__title {
	margin: 0;
	font-size: clamp(18px, 2.2vw, 21px);
	line-height: 1.25;
}
.flip180-panel__title--center { justify-content: center; text-align: center; }
.flip180-result-list {
	display: grid;
	gap: 13px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.flip180-result-list li {
	position: relative;
	margin: 0;
	color: var(--f180-ink-soft);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.55;
}

/* monetization paths */
.flip180-monetization {
	margin-top: clamp(40px, 7vw, 62px);
	padding-top: clamp(30px, 5vw, 42px);
	border-top: 1px solid var(--f180-line);
}
.flip180-monetization__head { margin: 0 auto 24px; text-align: center; }
.flip180-monetization__eyebrow { margin-bottom: 7px; color: var(--f180-brass); }
.flip180-paths {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
.flip180-path {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 17px;
	min-width: 0;
	padding: clamp(21px, 3vw, 27px);
	overflow: hidden;
	border: 1px solid #e1ddd6;
}
.flip180-path__number {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid #d7dfdc;
	border-radius: 50%;
	color: var(--f180-green);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .08em;
}
.flip180-path__body { min-width: 0; }
.flip180-path__title {
	margin: 1px 0 8px;
	color: var(--f180-ink);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
}
.flip180-path__desc {
	margin: 0;
	color: var(--f180-ink-soft);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.6;
}

/* CTA */
.flip180-cta {
	margin-top: 38px;
	background:
		radial-gradient(600px 200px at 50% 0%, rgba(176, 132, 70, 0.10), transparent 70%),
		var(--f180-green-dk);
	border-radius: var(--f180-radius);
	padding: clamp(30px, 5vw, 48px);
	text-align: center;
}
.flip180-cta__inner { max-width: 540px; margin: 0 auto; }
.flip180-cta__title { color: #f6f1e7; font-size: clamp(23px, 3.2vw, 30px); margin-bottom: 10px; }
.flip180-cta__sub { color: #cdd9d2; margin: 0 0 24px; font-size: 16px; }
.flip180-cta .flip180-btn--primary { background: var(--f180-brass); color: #1d1a16; box-shadow: 0 12px 28px rgba(0,0,0,0.28); }
.flip180-cta .flip180-btn--primary:hover { background: #c4954f; }
.flip180-cta__done {
	color: #d8e5dd;
	font-family: inherit;
	font-size: 19px;
	margin: 4px 0 0;
}

/* reveal animation */
.flip180-reveal { opacity: 0; transform: translateY(14px); animation: f180-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes f180-rise { to { opacity: 1; transform: none; } }

/* ----------------------------- responsive ----------------------------- */

@media (max-width: 720px) {
	.flip180-fields { grid-template-columns: 1fr; }
	.flip180-checks { grid-template-columns: 1fr; }
	.flip180-snapshot__hero { grid-template-columns: 1fr; text-align: center; }
	.flip180-snapshot__stats { text-align: left; }
	.flip180-stat__value { justify-content: flex-start; }
	.flip180-panels { grid-template-columns: 1fr; }
	.flip180-paths { grid-template-columns: 1fr; }
	.flip180-snapshot__insight { padding: 24px 22px; }
	.flip180-panel { padding: 24px 22px; }
	.flip180-path { padding: 22px; }
	.flip180-progress__label { display: none; }
	.flip180-progress__steps { justify-content: center; gap: 14px; }
	.flip180-progress__step { flex: 0 0 auto; }
}

@media (max-width: 440px) {
	.flip180-path { grid-template-columns: 30px 1fr; gap: 13px; padding: 20px 18px; }
	.flip180-path__number { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
	.fp-archive-opportunity-assesment *,
	.fp-archive-opportunity-assesment *::before,
	.fp-archive-opportunity-assesment *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}
