/* Wise Form — front end. Colors follow the wise palette; override the variables from Elementor/Additional CSS if needed. */
.wisef {
	--wisef-ink: #111111;
	--wisef-gold: #DFA964;
	--wisef-gold-deep: #B8843F;
	--wisef-gold-text: #8A6427;
	--wisef-cream: #F7F3EC;
	--wisef-line: #E6E6E6;
	--wisef-body: #4A4A4A;
	--wisef-muted: #6B6B6B;
	--wisef-error: #B42318;
	--wisef-error-bg: #FEF3F2;
	--wisef-radius: 24px;
	--wisef-field-radius: 12px;
	--wisef-wa: #1FA855;
	max-width: 880px;
	margin: 0 auto;
	color: var(--wisef-body);
	font-size: 16px;
	line-height: 1.55;
}
.wisef *, .wisef *::before, .wisef *::after { box-sizing: border-box; }

.wisef-card {
	background: #fff;
	border: 1px solid var(--wisef-line);
	border-radius: var(--wisef-radius);
	box-shadow: 0 20px 48px rgba(17, 17, 17, .08);
	padding: 40px;
}

.wisef-head { margin-bottom: 28px; }
.wisef-title { margin: 0 0 8px; color: var(--wisef-ink); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; font-weight: 700; }
.wisef-intro { margin: 0; color: var(--wisef-muted); }

/* Stepper */
.wisef-stepper { list-style: none; margin: 0 0 14px; padding: 0; display: flex; gap: 8px; counter-reset: none; }
.wisef-stepper li { flex: 1 1 0; min-width: 0; margin: 0; padding: 0; }
.wisef-stepper-btn {
	all: unset;
	box-sizing: border-box;
	width: 100%;
	display: flex; align-items: center; gap: 12px;
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--wisef-cream);
	color: var(--wisef-muted);
	font-weight: 600; font-size: 15px;
	cursor: default;
	transition: background .2s, color .2s;
}
.wisef-stepper-num {
	flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fff; border: 2px solid #D9D2C4; color: var(--wisef-muted); font-weight: 700; font-size: 14px;
}
.wisef-stepper-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wisef-stepper li.is-active .wisef-stepper-btn { background: var(--wisef-ink); color: #fff; }
.wisef-stepper li.is-active .wisef-stepper-num { background: var(--wisef-gold); border-color: var(--wisef-gold); color: var(--wisef-ink); }
.wisef-stepper li.is-done .wisef-stepper-btn { cursor: pointer; color: var(--wisef-ink); }
.wisef-stepper li.is-done .wisef-stepper-btn:hover { background: #EFE7D9; }
.wisef-stepper li.is-done .wisef-stepper-num { background: var(--wisef-gold); border-color: var(--wisef-gold); color: transparent; position: relative; }
.wisef-stepper li.is-done .wisef-stepper-num::after { content: ""; position: absolute; width: 10px; height: 6px; border-left: 2.5px solid var(--wisef-ink); border-bottom: 2.5px solid var(--wisef-ink); transform: rotate(-45deg) translate(1px, -1px); }
.wisef-stepper-btn:focus-visible { outline: 3px solid var(--wisef-gold); outline-offset: 2px; }

.wisef-progress { height: 4px; background: var(--wisef-cream); border-radius: 99px; overflow: hidden; margin-bottom: 32px; }
.wisef-progress-bar { display: block; height: 100%; background: var(--wisef-gold); border-radius: 99px; transition: width .35s ease; }

/* Step */
.wisef-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.wisef-step[hidden] { display: none; }
.wisef-step-title { padding: 0; margin: 0 0 6px; color: var(--wisef-ink); font-size: 22px; font-weight: 700; line-height: 1.3; outline: none; }
.wisef-step-count { display: block; margin-bottom: 4px; color: var(--wisef-gold-text); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.wisef-step-desc { margin: 0 0 24px; color: var(--wisef-muted); }

.wisef-grid { display: flex; flex-wrap: wrap; gap: 22px 20px; }
.wisef-field { flex: 1 1 100%; min-width: 0; }
.wisef-field.wisef-half { flex: 1 1 calc(50% - 10px); }

.wisef-label { display: block; margin-bottom: 6px; color: var(--wisef-ink); font-weight: 600; font-size: 15px; }
.wisef-req { color: var(--wisef-error); }
.wisef-opt { color: var(--wisef-muted); font-weight: 400; font-size: 13px; }
.wisef-desc { margin: -2px 0 8px; color: var(--wisef-muted); font-size: 13px; line-height: 1.5; }

.wisef-input {
	display: block; width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1.5px solid #D6D6D6;
	border-radius: var(--wisef-field-radius);
	background: #fff;
	color: var(--wisef-ink);
	font: inherit; font-size: 16px; line-height: 1.4;
	transition: border-color .2s, box-shadow .2s;
	-webkit-appearance: none; appearance: none;
}
textarea.wisef-input { min-height: 120px; resize: vertical; }
select.wisef-input { background-image: linear-gradient(45deg, transparent 50%, #666 50%), linear-gradient(135deg, #666 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.wisef-input::placeholder { color: #9A9A9A; }
.wisef-input:hover { border-color: #BDBDBD; }
.wisef-input:focus { outline: none; border-color: var(--wisef-ink); box-shadow: 0 0 0 3px rgba(223, 169, 100, .35); }

.wisef-affix { position: relative; }
.wisef-affix-pre { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--wisef-muted); font-weight: 600; pointer-events: none; }
.wisef-affix .wisef-input { padding-left: 46px; }

/* Choices */
.wisef-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.wisef-choice {
	position: relative; display: flex; align-items: center; gap: 10px;
	min-height: 48px; padding: 10px 14px;
	border: 1.5px solid #D6D6D6; border-radius: var(--wisef-field-radius);
	background: #fff; color: var(--wisef-ink); cursor: pointer; font-size: 15px;
	transition: border-color .2s, background .2s;
}
.wisef-choice:hover { border-color: #BDBDBD; }
.wisef-choice input {
	-webkit-appearance: none; appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 0;
	border: 2px solid #BDBDBD; background: #fff; cursor: pointer; display: grid; place-content: center;
}
.wisef-choice input[type=radio] { border-radius: 50%; }
.wisef-choice input[type=checkbox] { border-radius: 6px; }
.wisef-choice input[type=radio]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--wisef-ink); transform: scale(0); transition: transform .15s; }
.wisef-choice input[type=checkbox]::before { content: ""; width: 10px; height: 6px; border-left: 2.5px solid var(--wisef-ink); border-bottom: 2.5px solid var(--wisef-ink); transform: rotate(-45deg) scale(0); margin-top: -3px; transition: transform .15s; }
.wisef-choice input:checked { border-color: var(--wisef-ink); }
.wisef-choice input[type=radio]:checked::before { transform: scale(1); }
.wisef-choice input[type=checkbox]:checked { background: var(--wisef-gold); border-color: var(--wisef-gold); }
.wisef-choice input[type=checkbox]:checked::before { transform: rotate(-45deg) scale(1); }
.wisef-choice:has(input:checked) { border-color: var(--wisef-ink); background: var(--wisef-cream); }
.wisef-choice input:focus-visible { outline: 3px solid var(--wisef-gold); outline-offset: 2px; }
.wisef-other-input { margin-top: 10px; }
.wisef-input[hidden], .wisef-err[hidden], .wisef-alert[hidden] { display: none; }

/* Errors */
.wisef-err { margin: 6px 0 0; color: var(--wisef-error); font-size: 13px; font-weight: 500; }
.wisef-err::before { content: "! "; font-weight: 700; }
.wisef-field.has-error .wisef-input,
.wisef-field.has-error .wisef-choice { border-color: var(--wisef-error); }
.wisef-field.has-error .wisef-input:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .18); }
.wisef-alert { margin: 24px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--wisef-error-bg); color: var(--wisef-error); font-size: 14px; font-weight: 500; }

/* Navigation */
.wisef-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--wisef-line); }
.wisef-nav [data-wisef-next], .wisef-nav [data-wisef-submit] { margin-left: auto; }
.wisef-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0;
	font: inherit; font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer;
	transition: background .2s, color .2s, opacity .2s;
}
.wisef-btn[hidden] { display: none; }
.wisef-btn-primary { background: var(--wisef-gold); color: var(--wisef-ink); }
.wisef-btn-primary:hover { background: var(--wisef-gold-deep); color: var(--wisef-ink); }
.wisef-btn-ghost { background: transparent; color: var(--wisef-ink); border: 1.5px solid var(--wisef-ink); }
.wisef-btn-ghost:hover { background: var(--wisef-cream); }
.wisef-btn:disabled { opacity: .6; cursor: progress; }
.wisef-btn:focus-visible { outline: 3px solid var(--wisef-gold); outline-offset: 3px; }
.wisef-note { margin: 16px 0 0; color: var(--wisef-muted); font-size: 13px; text-align: center; }

/* Honeypot + screen reader */
.wisef-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.wisef-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Thank you */
.wisef-thankyou { max-width: 640px; }
.wisef-ty-card { text-align: center; padding: 48px 40px; }
.wisef-ty-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--wisef-gold); color: var(--wisef-ink); display: flex; align-items: center; justify-content: center; }
.wisef-ty-title { margin: 0 0 10px; color: var(--wisef-ink); font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.25; }
.wisef-ty-msg { margin: 0 auto 28px; max-width: 480px; }
.wisef-btn-wa { background: var(--wisef-wa); color: #fff; }
.wisef-btn-wa:hover { background: #178A45; color: #fff; }
.wisef-ty-note { margin: 16px 0 0; color: var(--wisef-muted); font-size: 13px; }

@media (max-width: 767px) {
	.wisef-card { padding: 24px 18px; border-radius: 20px; }
	.wisef-field.wisef-half { flex-basis: 100%; }
	.wisef-stepper-btn { padding: 10px; gap: 8px; font-size: 14px; }
	.wisef-stepper-num { flex-basis: 28px; width: 28px; height: 28px; }
	.wisef-choices { grid-template-columns: 1fr; }
	.wisef-nav { flex-wrap: wrap; }
	.wisef-nav .wisef-btn { flex: 1 1 100%; }
	.wisef-nav [data-wisef-prev] { order: 2; }
	.wisef-ty-card { padding: 36px 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.wisef * { transition: none !important; }
}
