/* TFWG Apply Form - 3-step form (popup / inline). All rules are scoped to .tfwg-form. */
.tfwg-form{
	--tfwg-accent:#6222df;
	--tfwg-btn:#fdb226;
	--tfwg-btn-hover:#e9a00f;
	--tfwg-btn-text:#fff;
	--tfwg-text:#1f2020;
	--tfwg-sub:#3b3b3b;
	--tfwg-err-bg:#feecf0;
	--tfwg-err:#f14668;
	--tfwg-star:#ff492c;
	--tfwg-card:#fff;
	--tfwg-overlay:rgba(14,11,17,.94);
	--tfwg-divider:#ddcbff;
	--tfwg-radius:0px;
	--tfwg-ease:cubic-bezier(.22,.61,.36,1);
	font-family:"Outfit","Century Gothic",CenturyGothic,"Avenir Next",Avenir,"Segoe UI",sans-serif;
	-webkit-font-smoothing:antialiased;
	color:var(--tfwg-text);
	line-height:1.3;
}
.tfwg-form,.tfwg-form *,.tfwg-form *::before,.tfwg-form *::after{box-sizing:border-box}
.tfwg-form [hidden]{display:none!important}
.tfwg-form h2,.tfwg-form h3,.tfwg-form p,.tfwg-form label{margin:0;padding:0;text-transform:none;letter-spacing:normal}
.tfwg-form svg{display:block;flex:none}

/* ---------- popup shell ---------- */
.tfwg-form--popup:not(.tfwg-form--editor){
	position:fixed;inset:0;z-index:2147483000;
	visibility:hidden;opacity:0;
	transition:opacity .35s ease,visibility 0s linear .35s;
}
.tfwg-form--popup.is-open{visibility:visible;opacity:1;transition:opacity .35s ease,visibility 0s}
.tfwg-form .tfwg-backdrop{position:absolute;inset:0;background:var(--tfwg-overlay)}
.tfwg-form--inline .tfwg-backdrop,.tfwg-form--inline .tfwg-close,.tfwg-form--editor .tfwg-backdrop,.tfwg-form--editor .tfwg-close{display:none}
html.tfwg-lock,html.tfwg-lock body{overflow:hidden!important}

.tfwg-form .tfwg-card{
	position:absolute;top:4.5vh;left:5.5vw;right:5.5vw;bottom:5vh;
	display:flex;
	background:var(--tfwg-card);
	border-radius:var(--tfwg-radius);
	overflow-x:hidden;overflow-y:auto;
	-webkit-overflow-scrolling:touch;
	transform:translateY(26px) scale(.985);
	transition:transform .55s var(--tfwg-ease);
}
.tfwg-form--popup.is-open .tfwg-card{transform:none}

.tfwg-form button.tfwg-close{
	position:absolute!important;top:calc(4.5vh + 4px);right:calc(5.5vw - 48px);
	width:34px;height:34px;padding:0!important;margin:0!important;
	background:transparent!important;border:0!important;box-shadow:none!important;
	color:#fff!important;cursor:pointer;line-height:1;z-index:3;
	display:flex;align-items:center;justify-content:center;
	transition:transform .25s var(--tfwg-ease),opacity .2s;opacity:.95;
}
.tfwg-form button.tfwg-close:hover{transform:rotate(90deg) scale(1.08);opacity:1;background:transparent!important;color:#fff!important}
.tfwg-form button.tfwg-close:focus-visible{outline:2px solid var(--tfwg-btn);outline-offset:4px}

/* ---------- inline / editor ---------- */
.tfwg-form--inline,.tfwg-form--editor{position:relative;width:100%}
.tfwg-form--inline .tfwg-card,.tfwg-form--editor .tfwg-card{
	position:relative;inset:auto;min-height:560px;overflow:hidden;
	transform:none;border:1px solid var(--tfwg-divider);
	box-shadow:0 24px 70px rgba(98,34,223,.10);
	padding:48px 0 110px;
}
.tfwg-form--editor.tfwg-form--popup::before{
	content:"Popup form \2013 shown inline while editing; on the site it opens as a popup";
	display:block;margin:0 0 8px;font:600 12px/1.4 Arial,sans-serif;color:#6222df;
}

/* ---------- stage & panes ---------- */
.tfwg-form .tfwg-formel{width:100%;margin:auto 0}
.tfwg-form .tfwg-stage{display:grid;width:100%;position:relative}
.tfwg-form .tfwg-pane{
	grid-area:1/1;
	display:grid;grid-template-columns:1fr 1fr;align-items:center;
	opacity:0;visibility:hidden;
	transition:transform .6s var(--tfwg-ease),opacity .45s ease,visibility 0s linear .6s;
	will-change:transform,opacity;
}
.tfwg-form .tfwg-pane.is-before{transform:translateY(-70px)}
.tfwg-form .tfwg-pane.is-after{transform:translateY(70px)}
.tfwg-form .tfwg-pane.is-active{opacity:1;visibility:visible;transform:none;transition:transform .6s var(--tfwg-ease),opacity .5s ease .08s,visibility 0s}

.tfwg-form .tfwg-left{padding:0 6% 0 12%;min-width:0}
.tfwg-form .tfwg-q{position:relative}

.tfwg-form label.tfwg-q__title{
	display:block;position:relative;cursor:text;
	font-size:clamp(22px,1.4vw + 3px,32px);font-weight:400;line-height:1.25;
	color:var(--tfwg-text);
}
.tfwg-form .tfwg-q__num{
	position:absolute;right:100%;top:.28em;margin-right:18px;
	display:flex;align-items:center;gap:3px;
	font-size:.68em;line-height:1;color:var(--tfwg-accent);font-weight:500;
}
.tfwg-form .tfwg-q__num .tfwg-ic--arrow{width:.62em;height:.62em;margin-top:1px}
.tfwg-form .tfwg-req{color:var(--tfwg-err);font-size:.75em;vertical-align:.12em;margin-left:2px}
.tfwg-form .tfwg-q__sub{
	margin-top:16px;
	font-size:clamp(17px,1.15vw + 4px,27px);font-weight:400;line-height:1.35;color:var(--tfwg-sub);
}
.tfwg-form .tfwg-q__title + .tfwg-field{margin-top:44px}
.tfwg-form .tfwg-q__sub + .tfwg-field{margin-top:20px}

.tfwg-form .tfwg-field{position:relative}
.tfwg-form .tfwg-input{
	display:block;width:100%;max-width:none;min-height:0;height:auto;
	margin:0;padding:6px 4px 10px!important;
	font:inherit;font-size:clamp(24px,2vw,40px);font-weight:400;line-height:1.3;
	color:var(--tfwg-accent)!important;caret-color:var(--tfwg-accent);
	background:transparent!important;
	border:0!important;border-bottom:2px solid var(--tfwg-accent)!important;border-radius:0!important;
	box-shadow:none!important;outline:none!important;
	resize:none;overflow:hidden;
	-webkit-appearance:none;appearance:none;
	transition:background-color .2s ease,border-color .2s ease;
}
.tfwg-form .tfwg-input::placeholder{color:rgba(98,34,223,.3);opacity:1}
.tfwg-form .tfwg-input:hover{background:rgba(98,34,223,.04)!important}
.tfwg-form .tfwg-input:focus{background:transparent!important}

.tfwg-form .tfwg-err{
	display:flex;width:fit-content;max-width:100%;align-items:center;gap:8px;
	margin-top:20px;padding:9px 20px 9px 18px;
	background:var(--tfwg-err-bg);color:var(--tfwg-err);
	font-size:clamp(16px,1.12vw,22px);line-height:1.25;border-radius:2px;
	animation:tfwg-err-in .35s var(--tfwg-ease) both;
}
.tfwg-form .tfwg-err svg{width:1em;height:1em;font-size:1.05em}
.tfwg-form .tfwg-err.is-shake{animation:tfwg-shake .45s cubic-bezier(.36,.07,.19,.97) both}
@keyframes tfwg-err-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
@keyframes tfwg-shake{
	0%{opacity:1;transform:none}15%{transform:translateX(-8px)}30%{transform:translateX(7px)}45%{transform:translateX(-5px)}60%{transform:translateX(4px)}80%{transform:translateX(-2px)}100%{opacity:1;transform:none}
}

.tfwg-form button.tfwg-ok{
	display:flex!important;width:fit-content;align-items:center;justify-content:center;gap:14px;
	height:56px;min-width:143px;margin:24px 0 0!important;padding:0 36px!important;
	font:inherit;font-size:26px;font-weight:700;line-height:1;letter-spacing:0;text-transform:none;
	color:var(--tfwg-btn-text)!important;background:var(--tfwg-btn)!important;
	border:0!important;border-radius:4px!important;box-shadow:none!important;cursor:pointer;
	transition:background-color .2s ease,transform .15s ease,box-shadow .2s ease;
}
.tfwg-form button.tfwg-ok:hover{background:var(--tfwg-btn-hover)!important;color:var(--tfwg-btn-text)!important;transform:translateY(-1px);box-shadow:0 8px 20px rgba(253,178,38,.35)!important}
.tfwg-form button.tfwg-ok:active{transform:scale(.97)}
.tfwg-form button.tfwg-ok:focus-visible{outline:3px solid var(--tfwg-accent);outline-offset:3px}
.tfwg-form button.tfwg-ok .tfwg-ic{width:26px;height:26px}
.tfwg-form button.tfwg-ok:disabled{opacity:.65;cursor:progress;transform:none}

/* ---------- review card ---------- */
.tfwg-form .tfwg-right{
	align-self:center;
	min-height:clamp(230px,15.2vw,292px);
	padding:10px 12% 10px 9%;
	border-left:1px solid var(--tfwg-divider);
	display:flex;align-items:center;
}
.tfwg-form .tfwg-rv{width:100%;max-width:520px;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;color:#111}
.tfwg-form .tfwg-rv__head{display:flex;align-items:center;gap:8px;max-width:420px}
.tfwg-form .tfwg-rv__stars{display:flex;gap:1px;color:var(--tfwg-star)}
.tfwg-form .tfwg-rv__stars svg{width:clamp(24px,1.8vw,34px);height:clamp(24px,1.8vw,34px)}
.tfwg-form .tfwg-rv__date{font-size:14px;color:#555;white-space:nowrap}
.tfwg-form .tfwg-rv__logo{margin-left:auto;width:50px;height:50px;object-fit:contain;display:block}
.tfwg-form h3.tfwg-rv__title{
	margin:14px 0 0;font-size:clamp(19px,1.36vw,26px);font-weight:700;line-height:1.2;color:#111;
}
.tfwg-form .tfwg-rv__label{margin:clamp(24px,2.1vw,40px) 0 12px;font-size:15px;font-weight:700;line-height:1.3;color:#111}
.tfwg-form .tfwg-rv__text{font-size:15px;line-height:1.25;color:#555}
.tfwg-form .tfwg-rv__text p{margin:0 0 17px}
.tfwg-form .tfwg-rv__text p:last-child{margin-bottom:0}

/* ---------- navigation arrows ---------- */
.tfwg-form .tfwg-nav{position:absolute;right:2vw;bottom:clamp(16px,3.4vh,37px);display:flex;z-index:2}
.tfwg-form--popup:not(.tfwg-form--editor) .tfwg-nav{position:fixed;right:calc(5.5vw + 2vw);bottom:calc(5vh + clamp(16px,3.4vh,37px))}
.tfwg-form button.tfwg-navbtn{
	width:84px;height:57px;padding:0!important;margin:0!important;
	display:flex;align-items:center;justify-content:center;
	color:var(--tfwg-btn-text)!important;background:var(--tfwg-btn)!important;
	border:0!important;box-shadow:none!important;cursor:pointer;
	transition:background-color .2s ease,transform .15s ease;
}
.tfwg-form button.tfwg-navbtn:hover{background:var(--tfwg-btn-hover)!important;color:var(--tfwg-btn-text)!important}
.tfwg-form button.tfwg-navbtn:active{transform:scale(.94)}
.tfwg-form button.tfwg-navbtn:focus-visible{outline:3px solid var(--tfwg-accent);outline-offset:2px;z-index:1}
.tfwg-form button.tfwg-navbtn:disabled{opacity:.55;cursor:default}
.tfwg-form button.tfwg-prev{border-radius:4px 0 0 4px!important;border-right:1px solid rgba(255,255,255,.28)!important}
.tfwg-form button.tfwg-next{border-radius:0 4px 4px 0!important}
.tfwg-form .tfwg-prev[hidden] + .tfwg-next{border-radius:4px!important}
.tfwg-form .tfwg-nav .tfwg-ic{width:26px;height:26px}

/* ---------- honeypot ---------- */
.tfwg-form .tfwg-hp{position:absolute!important;left:-9999px!important;top:auto;width:1px;height:1px;overflow:hidden}

/* ---------- thank you ---------- */
.tfwg-form .tfwg-thanks{
	position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px;
	opacity:0;visibility:hidden;transform:translateY(24px);
	transition:opacity .45s ease,transform .6s var(--tfwg-ease),visibility 0s linear .6s;
}
.tfwg-form.is-done .tfwg-thanks{opacity:1;visibility:visible;transform:none;transition:opacity .5s ease .25s,transform .6s var(--tfwg-ease) .25s,visibility 0s}
.tfwg-form.is-done .tfwg-formel,.tfwg-form.is-done .tfwg-nav{opacity:0;visibility:hidden;transition:opacity .3s ease,visibility 0s linear .3s}
.tfwg-form .tfwg-thanks__in{max-width:560px}
.tfwg-form .tfwg-thanks__ic{margin:0 auto 22px;color:var(--tfwg-accent)}
.tfwg-form .tfwg-thanks__ic circle{stroke-dasharray:152;stroke-dashoffset:152}
.tfwg-form .tfwg-thanks__ic path{stroke-dasharray:44;stroke-dashoffset:44}
.tfwg-form.is-done .tfwg-thanks__ic circle{animation:tfwg-draw .7s ease .35s forwards}
.tfwg-form.is-done .tfwg-thanks__ic path{animation:tfwg-draw .5s ease .85s forwards}
@keyframes tfwg-draw{to{stroke-dashoffset:0}}
.tfwg-form h2.tfwg-thanks__title{font-size:clamp(26px,2.4vw,44px);font-weight:500;line-height:1.2;color:var(--tfwg-text)}
.tfwg-form .tfwg-thanks__text{margin-top:14px;font-size:clamp(17px,1.3vw,24px);color:var(--tfwg-sub)}
.tfwg-form button.tfwg-thanks__btn{margin:30px auto 0!important}

/* ---------- tablet ---------- */
@media (max-width:1100px){
	.tfwg-form .tfwg-left{padding:0 5% 0 11%}
	.tfwg-form .tfwg-right{padding:10px 7% 10px 6%}
	.tfwg-form .tfwg-rv__logo{width:42px;height:42px}
}

/* ---------- small tablet & mobile: single column, full-screen popup ---------- */
@media (max-width:899px){
	.tfwg-form--popup:not(.tfwg-form--editor) .tfwg-card{inset:0;border-radius:0;padding:64px 0 120px;transform:translateY(40px)}
	.tfwg-form--popup.is-open .tfwg-card{transform:none}
	.tfwg-form--popup:not(.tfwg-form--editor) .tfwg-formel{margin:auto 0}
	.tfwg-form button.tfwg-close{top:14px;right:14px;width:32px;height:32px;color:var(--tfwg-text)!important}
	.tfwg-form button.tfwg-close:hover{color:var(--tfwg-accent)!important}
	.tfwg-form .tfwg-close svg{width:28px;height:28px}
	.tfwg-form .tfwg-pane{grid-template-columns:1fr;align-items:start;align-content:center;row-gap:34px}
	.tfwg-form .tfwg-left{padding:0 24px 0 clamp(46px,9vw,84px)}
	.tfwg-form label.tfwg-q__title{font-size:clamp(22px,4.6vw,30px)}
	.tfwg-form .tfwg-q__num{margin-right:12px;font-size:.62em}
	.tfwg-form .tfwg-q__title + .tfwg-field{margin-top:30px}
	.tfwg-form .tfwg-input{font-size:clamp(24px,5.6vw,34px)}
	.tfwg-form button.tfwg-ok{height:52px;min-width:120px;font-size:22px;padding:0 28px!important;margin-top:22px!important}
	.tfwg-form .tfwg-right{
		min-height:0;border-left:0;border-top:1px solid var(--tfwg-divider);
		margin:0 24px 0 clamp(24px,6vw,84px);padding:26px 0 0;
	}
	.tfwg-form .tfwg-rv{max-width:none}
	.tfwg-form .tfwg-rv__head{max-width:none}
	.tfwg-form h3.tfwg-rv__title{font-size:clamp(18px,3.6vw,24px)}
	.tfwg-form .tfwg-rv__label{margin-top:20px}
	.tfwg-form .tfwg-nav,.tfwg-form--popup:not(.tfwg-form--editor) .tfwg-nav{right:16px;bottom:16px}
	.tfwg-form button.tfwg-navbtn{width:68px;height:50px}
	.tfwg-form--inline .tfwg-card,.tfwg-form--editor .tfwg-card{padding:36px 0 96px;min-height:0}
}
@media (max-width:480px){
	.tfwg-form .tfwg-left{padding-right:18px}
	.tfwg-form .tfwg-right{margin-right:18px}
	.tfwg-form .tfwg-rv__stars svg{width:24px;height:24px}
	.tfwg-form .tfwg-rv__logo{width:38px;height:38px}
	.tfwg-form .tfwg-rv__text,.tfwg-form .tfwg-rv__label{font-size:14px}
}
@media (max-height:520px) and (orientation:landscape){
	.tfwg-form--popup:not(.tfwg-form--editor) .tfwg-card{padding-top:48px}
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
	.tfwg-form,.tfwg-form *{animation-duration:.01ms!important;animation-delay:0s!important;transition-duration:.01ms!important;transition-delay:0s!important}
}
