/**
 * Let's Achieve — Goal Assessment wizard styles.
 * Enqueued only on the Let's Achieve page (see functions.php) since
 * none of this is needed anywhere else on the site.
 */

.ygm-wizard-outer {
	max-width: 42rem;
	margin: 0 auto;
	padding: 2.5rem 1rem 4rem;
}

/* =========================================================
   PROGRESS
   ========================================================= */
.ygm-wizard-progress-wrap { margin-bottom: 2rem; }
.ygm-wizard-progress-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.75rem;
	color: var(--ygm-muted-foreground);
	margin-bottom: 0.5rem;
}
.ygm-wizard-progress-meta span:first-child { font-weight: 500; }
.ygm-wizard-progress-track {
	height: 6px;
	background: var(--ygm-border);
	border-radius: 999px;
	overflow: hidden;
}
.ygm-wizard-progress-bar {
	height: 100%;
	background: linear-gradient(135deg, var(--ygm-accent), var(--ygm-primary));
	border-radius: 999px;
	transition: width 0.4s ease-out;
}

/* =========================================================
   CARD
   ========================================================= */
.ygm-wizard-card {
	position: relative;
	border: 1px solid var(--ygm-border);
	background: rgba(243, 238, 252, 0.8);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-radius: 1rem;
	box-shadow: 0 10px 40px -15px rgba(116, 74, 242, 0.1);
	padding: 1.5rem;
	min-height: 420px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
@media (min-width: 768px) { .ygm-wizard-card { padding: 2.5rem; } }

.ygm-wizard-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

/* =========================================================
   STEPS
   ========================================================= */
.ygm-wizard-step { display: none; flex: 1; }
.ygm-wizard-step.is-active { display: flex; flex-direction: column; gap: 1.5rem; }

@keyframes ygm-slide-in-right {
	from { opacity: 0; transform: translateX(50px); }
	to   { opacity: 1; transform: translateX(0); }
}
@keyframes ygm-slide-in-left {
	from { opacity: 0; transform: translateX(-50px); }
	to   { opacity: 1; transform: translateX(0); }
}
.ygm-wizard-step.is-active.slide-in-right { animation: ygm-slide-in-right 0.35s ease-out; }
.ygm-wizard-step.is-active.slide-in-left { animation: ygm-slide-in-left 0.35s ease-out; }

/* =========================================================
   FIELDS
   ========================================================= */
.ygm-field-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--ygm-foreground);
	opacity: 0.85;
	margin-bottom: 0.5rem;
}
.ygm-required { color: var(--ygm-destructive); margin-left: 0.15rem; }

.ygm-wizard-input {
	width: 100%;
	border: 1px solid var(--ygm-border);
	background: rgba(255, 255, 255, 0.6);
	border-radius: 0.75rem;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	font-family: var(--ygm-font-body);
	color: var(--ygm-foreground);
	transition: all 0.2s ease;
	box-sizing: border-box;
}
.ygm-wizard-input::placeholder { color: rgba(95, 92, 138, 0.5); }
.ygm-wizard-input:focus {
	outline: none;
	border-color: rgba(116, 74, 242, 0.5);
	box-shadow: 0 0 0 3px rgba(116, 74, 242, 0.15);
}
.ygm-wizard-input.ygm-field-error { border-color: var(--ygm-destructive); }
.ygm-wizard-textarea { resize: none; }
.ygm-wizard-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235F5C8A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 18px; padding-right: 2.5rem; }

.ygm-char-count {
	display: block;
	text-align: right;
	font-size: 0.7rem;
	color: rgba(95, 92, 138, 0.6);
	margin-top: 0.25rem;
}
.ygm-char-count.is-near-limit { color: var(--ygm-destructive); }

.ygm-error {
	font-size: 0.75rem;
	color: var(--ygm-destructive);
	margin: 0;
}
.ygm-error:empty { display: none; }
.ygm-error:not(:empty) { margin-top: 0.35rem; }

/* =========================================================
   INTEREST BUTTON-GRID
   ========================================================= */
.ygm-interest-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	border-radius: 0.75rem;
}
.ygm-interest-grid.ygm-field-error { outline: 1px solid var(--ygm-destructive); outline-offset: 4px; border-radius: 0.85rem; }
.ygm-interest-btn {
	border: 1px solid var(--ygm-border);
	background: rgba(255, 255, 255, 0.4);
	border-radius: 0.75rem;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	font-family: var(--ygm-font-body);
	color: var(--ygm-muted-foreground);
	text-align: left;
	cursor: pointer;
	transition: all 0.2s ease;
}
.ygm-interest-btn:hover { border-color: rgba(116, 74, 242, 0.3); background: rgba(116, 74, 242, 0.05); }
.ygm-interest-btn.is-selected {
	border-color: var(--ygm-primary);
	background: rgba(116, 74, 242, 0.1);
	color: var(--ygm-primary);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* =========================================================
   NAV + SUBMIT ERROR
   ========================================================= */
.ygm-wizard-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--ygm-border);
}
.ygm-wizard-prev-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 500;
	font-family: var(--ygm-font-body);
	color: var(--ygm-muted-foreground);
	padding: 0.5rem 0;
}
.ygm-wizard-prev-btn svg { width: 16px; height: 16px; }
.ygm-wizard-prev-btn:hover:not(:disabled) { color: var(--ygm-foreground); }
.ygm-wizard-prev-btn:disabled { opacity: 0.3; cursor: not-allowed; }

#ygm-wizard-next svg, #ygm-wizard-submit svg { width: 16px; height: 16px; }
#ygm-wizard-submit.is-loading svg { animation: ygm-spin 0.8s linear infinite; }
#ygm-wizard-submit:disabled { opacity: 0.65; cursor: not-allowed; }
@keyframes ygm-spin { to { transform: rotate(360deg); } }

.ygm-wizard-submit-error {
	font-size: 0.8rem;
	color: var(--ygm-destructive);
	text-align: center;
	margin: 1rem 0 0;
}
.ygm-wizard-submit-error:empty { display: none; }

/* =========================================================
   SUCCESS STATE
   ========================================================= */
.ygm-wizard-success {
	text-align: center;
	max-width: 32rem;
	margin: 3rem auto 0;
	padding: 0 1rem;
}
.ygm-wizard-success-icon {
	width: 80px;
	height: 80px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--ygm-accent), var(--ygm-primary));
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	margin: 0 auto 2rem;
}
.ygm-wizard-success-icon svg { width: 36px; height: 36px; }
.ygm-wizard-success-title {
	font-family: var(--ygm-font-heading);
	font-weight: 700;
	font-size: 1.875rem;
	margin: 0 0 1rem;
}
@media (min-width: 768px) { .ygm-wizard-success-title { font-size: 2.25rem; } }
.ygm-wizard-success-body { color: var(--ygm-muted-foreground); }
.ygm-wizard-success-body p { margin: 0 0 0.75rem; }
.ygm-wizard-success-tagline {
	color: var(--ygm-primary);
	font-weight: 600;
	font-size: 1.125rem;
	padding-top: 0.75rem;
}
