/* Creator Lounge Form — styled after the Creator Lounge invite
 * Palette: electric purple #4C0BD9, lime #D9FF00, white.
 * Fonts: headings/button = Helvetica Ultra Compressed (shared Creator Lounge font setting), everything else Helvetica.
 * Themes: .clf-theme-lounge (purple panel, default) and .clf-theme-light (white cards + purple).
 * Scope "body .clf-wrap:not(#_)" adds ID-level specificity so Elementor kit styles can't override
 * inputs/buttons (font-family never uses !important).
 */

/* ================= Tokens ================= */
.clf-wrap {
	--clf-primary: #4C0BD9;
	--clf-lime: #D9FF00;
	--clf-heading: "Helvetica Ultra Compressed", "HelveticaNeueLTStd-UltCmp", "Helvetica Neue LT Std", "Arial Narrow", sans-serif;
	--clf-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--clf-radius: 12px;

	/* light theme defaults */
	--clf-accent: var(--clf-primary);
	--clf-accent-ink: #fff;
	--clf-tile-bg: var(--clf-primary);
	--clf-tile-ink: #fff;
	--clf-text: #1B0F45;
	--clf-soft: #4F4870;
	--clf-muted: #8C86A8;
	--clf-card: #fff;
	--clf-card-border: #E4DFF4;
	--clf-field: #fff;
	--clf-border: #DED9EF;
	--clf-border-hover: #C3B8EC;
	--clf-ring: color-mix(in srgb, var(--clf-primary) 16%, transparent);
	--clf-ghost: color-mix(in srgb, var(--clf-primary) 10%, transparent);
	--clf-error: #D92D20;
	--clf-error-bg: #FEF3F2;
	--clf-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' d='M1 5l3.5 3.5L11 1.5'/%3E%3C/svg%3E");
	--clf-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%234C0BD9' stroke-width='1.8' stroke-linecap='round' d='M1.5 1.5 6 6l4.5-4.5'/%3E%3C/svg%3E");

	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--clf-max, 860px);
	margin-left: auto;
	margin-right: auto;
	color: var(--clf-text);
	font-family: var(--clf-body);
	font-size: 15px;
}

/* ================= Layout (Settings → Layout & Width) ================= */
.clf-wrap.clf-align-left { margin-left: 0; margin-right: auto; }
.clf-wrap.clf-align-right { margin-left: auto; margin-right: 0; }

.clf-wrap.clf-density-compact {
	--clf-gap: 10px; --clf-h: 44px; --clf-pad: 18px; --clf-stack: 10px; --clf-panel-pad: 22px 20px 20px;
}
.clf-wrap.clf-density-roomy {
	--clf-gap: 16px; --clf-h: 56px; --clf-pad: 30px; --clf-stack: 20px; --clf-panel-pad: 42px 40px 40px;
}
/* 1-column layout: full-width items behave the same */
.clf-wrap.clf-cols-1 { --clf-cols: 1; }
.clf-wrap.clf-cols-2 { --clf-cols: 2; }
.clf-wrap.clf-cols-3 { --clf-cols: 3; }

.clf-wrap.clf-theme-lounge {
	--clf-accent: var(--clf-lime);
	--clf-accent-ink: var(--clf-primary);
	--clf-tile-bg: #fff;
	--clf-tile-ink: var(--clf-primary);
	--clf-text: #fff;
	--clf-soft: rgba(255, 255, 255, .86);
	--clf-muted: rgba(255, 255, 255, .6);
	--clf-card: rgba(255, 255, 255, .07);
	--clf-card-border: rgba(255, 255, 255, .16);
	--clf-field: rgba(255, 255, 255, .1);
	--clf-border: rgba(255, 255, 255, .24);
	--clf-border-hover: rgba(255, 255, 255, .5);
	--clf-ring: color-mix(in srgb, var(--clf-lime) 22%, transparent);
	--clf-ghost: rgba(255, 255, 255, .12);
	--clf-error: #FFC2C2;
	--clf-error-bg: rgba(255, 70, 70, .18);
	--clf-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%234C0BD9' stroke-width='2.2' d='M1 5l3.5 3.5L11 1.5'/%3E%3C/svg%3E");
	--clf-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23D9FF00' stroke-width='1.8' stroke-linecap='round' d='M1.5 1.5 6 6l4.5-4.5'/%3E%3C/svg%3E");

	color-scheme: dark;
	isolation: isolate;
	overflow: hidden;
	padding: var(--clf-panel-pad, 30px 28px 28px);
	/* invite's big rounded top + thin lime outline */
	border: 1.5px solid color-mix(in srgb, var(--clf-lime) 75%, transparent);
	border-radius: 36px 36px 24px 24px;
	background:
		radial-gradient(520px 340px at 100% 0%, rgba(255, 255, 255, .10), transparent 65%),
		radial-gradient(480px 320px at 0% 100%, rgba(0, 0, 0, .12), transparent 65%),
		var(--clf-primary);
	box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--clf-primary) 70%, transparent);
}

.clf-wrap *,
.clf-wrap *::before,
.clf-wrap *::after { box-sizing: border-box; }
.clf-wrap [hidden] { display: none !important; }

/* ================= Intro (mirrors the invite) ================= */
.clf-wrap .clf-intro {
	margin: 0 0 22px;
	padding-bottom: 22px;
	text-align: center;
	border-bottom: 1px solid var(--clf-card-border);
}


body .clf-wrap:not(#_) .clf-intro__title {
	margin: 0 0 14px;
	padding: 0;
	font-family: var(--clf-heading);
	font-size: clamp(46px, 6vw, 72px);
	font-weight: 400;
	line-height: .9;
	letter-spacing: .005em;
	text-transform: uppercase;
	color: var(--clf-text);
}

.clf-wrap .clf-intro__bar {
	display: block;
	width: 84px;
	height: 4px;
	margin: 0 auto 14px;
	border-radius: 4px;
	background: var(--clf-accent);
}
body .clf-wrap:not(#_) .clf-intro__sub {
	max-width: 560px;
	margin: 0 auto;
	font-family: var(--clf-body);
	font-size: 16px;
	line-height: 1.55;
	color: var(--clf-soft);
}


/* ================= Section cards ================= */
.clf-wrap .clf-section {
	position: relative;
	overflow: hidden;
	padding: var(--clf-pad, 24px);
	background: var(--clf-card);
	border: 1px solid var(--clf-card-border);
	border-radius: 22px;
	transition: border-color .3s, box-shadow .3s, background .3s;
}
.clf-wrap .clf-section + .clf-section { margin-top: var(--clf-stack, 14px); }

/* the section being filled lights up */
.clf-wrap .clf-section:focus-within {
	border-color: color-mix(in srgb, var(--clf-accent) 70%, transparent);
	box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--clf-accent) 60%, transparent);
}
.clf-wrap.clf-theme-lounge .clf-section:focus-within { background: rgba(255, 255, 255, .1); }

/* giant outlined number */
.clf-wrap .clf-section::after {
	content: attr(data-num);
	position: absolute;
	top: -18px;
	right: 14px;
	z-index: 0;
	font-family: var(--clf-heading);
	font-size: 132px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--clf-ghost);
	pointer-events: none;
	transition: -webkit-text-stroke-color .3s;
}
.clf-wrap .clf-section:focus-within::after {
	-webkit-text-stroke-color: color-mix(in srgb, var(--clf-accent) 45%, transparent);
}
.clf-wrap .clf-section > * { position: relative; z-index: 1; }

.clf-wrap .clf-section__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 20px;
}
.clf-wrap .clf-section__icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 13px;
	display: grid;
	place-items: center;
	color: var(--clf-tile-ink);
	background: var(--clf-tile-bg);
	transform: rotate(-6deg);
	box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .35);
	transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), background .3s, color .3s;
}
.clf-wrap .clf-section__icon svg { width: 21px; height: 21px; }
.clf-wrap .clf-section:focus-within .clf-section__icon,
.clf-wrap .clf-section:hover .clf-section__icon { transform: rotate(0) scale(1.06); }
.clf-wrap.clf-theme-lounge .clf-section:focus-within .clf-section__icon {
	background: var(--clf-lime);
	color: var(--clf-primary);
}

.clf-wrap .clf-section__titles { display: flex; flex-direction: column; gap: 4px; }
.clf-wrap .clf-section__num {
	font-family: var(--clf-body);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .22em;
	color: var(--clf-accent);
}
.clf-wrap .clf-section__num::before { content: "SECTION "; }

body .clf-wrap:not(#_) .clf-section__title {
	margin: 0;
	padding: 0;
	font-family: var(--clf-heading);
	font-size: 32px;
	font-weight: 400;
	line-height: .95;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: var(--clf-text);
}

/* ================= Grid ================= */
.clf-wrap .clf-grid {
	display: grid;
	grid-template-columns: repeat(var(--clf-cols, 2), minmax(0, 1fr));
	gap: var(--clf-gap, 12px);
}
.clf-wrap .clf-field { position: relative; min-width: 0; }
.clf-wrap .clf-field--full { grid-column: 1 / -1; }

.clf-wrap .clf-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ================= Inputs ================= */
body .clf-wrap:not(#_) .clf-control {
	display: block;
	width: 100%;
	height: var(--clf-h, 50px);
	margin: 0;
	padding: 0 16px;
	font-family: var(--clf-body);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--clf-text);
	background: var(--clf-field);
	border: 1px solid var(--clf-border);
	border-radius: var(--clf-radius);
	box-shadow: none;
	outline: none;
	transition: border-color .2s, box-shadow .2s, background .2s;
	-webkit-appearance: none;
	appearance: none;
}
body .clf-wrap:not(#_) .clf-control::placeholder { color: var(--clf-muted); opacity: 1; font-weight: 400; }
body .clf-wrap:not(#_) .clf-control:hover { border-color: var(--clf-border-hover); }
body .clf-wrap:not(#_) .clf-control:focus {
	border-color: var(--clf-accent);
	box-shadow: 0 0 0 4px var(--clf-ring);
}
.clf-wrap.clf-theme-lounge .clf-control:focus { background: rgba(255, 255, 255, .15); }

/* filled fields get an accent edge */
body .clf-wrap:not(#_) .clf-control:not(:placeholder-shown):not(:focus):not(select) {
	box-shadow: inset 3px 0 0 var(--clf-accent);
}

/* autofill on purple */
.clf-wrap.clf-theme-lounge .clf-control:-webkit-autofill {
	-webkit-text-fill-color: #fff;
	-webkit-box-shadow: 0 0 0 100px #5F27E0 inset;
	caret-color: #fff;
}

body .clf-wrap:not(#_) .clf-select {
	padding-right: 42px;
	cursor: pointer;
	background-image: var(--clf-caret);
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px 8px;
}
body .clf-wrap:not(#_) .clf-select.is-placeholder { color: var(--clf-muted); font-weight: 400; }
body .clf-wrap:not(#_) .clf-select:not(.is-placeholder):not(:focus) { box-shadow: inset 3px 0 0 var(--clf-accent); }
.clf-wrap .clf-select option { color: #1B0F45; background: #fff; }
.clf-wrap.clf-theme-lounge .clf-select option { color: #fff; background: #3A08A8; }

body .clf-wrap:not(#_) .clf-textarea {
	height: auto;
	min-height: 108px;
	padding: 14px 16px 28px;
	resize: vertical;
}

.clf-wrap .clf-ta-wrap { position: relative; }
.clf-wrap .clf-counter {
	position: absolute;
	right: 14px;
	bottom: 9px;
	font-family: var(--clf-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--clf-muted);
	pointer-events: none;
}
.clf-wrap .clf-counter.is-near { color: var(--clf-accent); }

/* ================= Group labels & pills ================= */
.clf-wrap .clf-group-label {
	display: block;
	margin: 8px 0 10px;
	font-family: var(--clf-body);
	font-size: 14px;
	font-weight: 700;
	color: var(--clf-text);
}
.clf-wrap .clf-pills { display: flex; flex-wrap: wrap; gap: 8px; }

body .clf-wrap:not(#_) .clf-pill {
	position: relative;
	display: inline-flex;
	margin: 0;
	cursor: pointer;
}
.clf-wrap .clf-pill input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}
.clf-wrap .clf-pill span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 16px;
	font-family: var(--clf-body);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--clf-text);
	background: var(--clf-field);
	border: 1px solid var(--clf-border);
	border-radius: 99px;
	transition: all .2s;
}
.clf-wrap .clf-pill:hover span { border-color: var(--clf-border-hover); transform: translateY(-1px); }
.clf-wrap .clf-pill input:focus-visible + span { box-shadow: 0 0 0 4px var(--clf-ring); }

/* multi-choice: "+" that turns into a check */
.clf-wrap .clf-pill--check span::before {
	content: "+";
	display: grid;
	place-items: center;
	flex: 0 0 16px;
	width: 16px; height: 16px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	color: var(--clf-muted);
	border-radius: 50%;
	background: transparent center/9px no-repeat;
	transition: all .2s;
}

.clf-wrap .clf-pill input:checked + span {
	color: var(--clf-accent-ink);
	border-color: var(--clf-accent);
	background: var(--clf-accent);
	font-weight: 700;
	box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--clf-accent) 90%, transparent);
}
.clf-wrap .clf-pill--check input:checked + span::before {
	content: "";
	background-color: color-mix(in srgb, var(--clf-accent-ink) 12%, transparent);
	background-image: var(--clf-check);
}

/* ================= Consent ================= */
body .clf-wrap:not(#_) .clf-consent {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 2px 0;
	font-family: var(--clf-body);
	font-size: 14.5px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--clf-soft);
	background: transparent;
	border: 0;
	cursor: pointer;
}
.clf-wrap .clf-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.clf-wrap .clf-consent__box {
	flex: 0 0 20px;
	width: 20px; height: 20px;
	border: 1.5px solid var(--clf-border-hover);
	border-radius: 6px;
	background: var(--clf-field) center/11px no-repeat;
	transition: all .2s cubic-bezier(.34, 1.56, .64, 1);
}
.clf-wrap .clf-consent:hover .clf-consent__box { border-color: var(--clf-accent); }
.clf-wrap .clf-consent input:checked + .clf-consent__box {
	border-color: var(--clf-accent);
	background-color: var(--clf-accent);
	background-image: var(--clf-check);
	transform: scale(1.08);
}
.clf-wrap .clf-consent input:checked ~ .clf-consent__text { color: var(--clf-text); }
.clf-wrap .clf-consent input:focus-visible + .clf-consent__box { box-shadow: 0 0 0 4px var(--clf-ring); }
.clf-wrap .clf-consent a { color: var(--clf-accent); text-decoration: underline; }
.clf-wrap .clf-req { color: var(--clf-accent); font-style: normal; font-weight: 700; }

/* ================= Errors ================= */
.clf-wrap .clf-error {
	display: block;
	margin-top: 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--clf-error);
}
.clf-wrap .clf-error:empty { display: none; }
body .clf-wrap:not(#_) .clf-field.is-invalid .clf-control { border-color: var(--clf-error); box-shadow: none; }
.clf-wrap .clf-field.is-invalid .clf-pill span,
.clf-wrap .clf-field.is-invalid .clf-consent__box { border-color: var(--clf-error); }
.clf-wrap .clf-field.is-invalid { animation: clf-shake .35s; }
@keyframes clf-shake {
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}

.clf-wrap .clf-form-msg {
	margin-top: 12px;
	padding: 11px 14px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--clf-error);
	background: var(--clf-error-bg);
	border: 1px solid color-mix(in srgb, var(--clf-error) 40%, transparent);
	border-radius: 10px;
}

/* ================= Submit ================= */
.clf-wrap .clf-actions { display: flex; margin-top: 22px; }

body .clf-wrap:not(#_) .clf-btn {
	position: relative;
	overflow: hidden;
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 64px;
	margin: 0;
	padding: 0 9px 0 26px;
	font-family: var(--clf-heading);
	font-size: 30px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: .02em;
	text-transform: uppercase;
	border-radius: 18px;
	cursor: pointer;
	transition: transform .2s, box-shadow .25s, background .2s;
}
body .clf-wrap:not(#_) .clf-btn--primary {
	color: var(--clf-accent-ink);
	background: var(--clf-accent);
	border: 0;
	box-shadow: 0 18px 36px -18px color-mix(in srgb, var(--clf-accent) 85%, transparent);
}
body .clf-wrap:not(#_) .clf-btn--primary:hover,
body .clf-wrap:not(#_) .clf-btn--primary:focus-visible {
	color: var(--clf-accent-ink);
	background: var(--clf-accent);
	transform: translateY(-2px);
	box-shadow: 0 24px 44px -18px color-mix(in srgb, var(--clf-accent) 95%, transparent);
}
body .clf-wrap:not(#_) .clf-btn:active { transform: translateY(0) scale(.99); }
body .clf-wrap:not(#_) .clf-btn[disabled] { opacity: .8; cursor: wait; transform: none; }

/* shine sweep */
.clf-wrap .clf-btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
	transform: skewX(-20deg);
	transition: left .6s ease;
}
.clf-wrap .clf-btn:hover::before { left: 120%; }

.clf-wrap .clf-btn__label { position: relative; }
.clf-wrap .clf-btn__arrow {
	position: relative;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 13px;
	color: var(--clf-accent);
	background: var(--clf-accent-ink);
	transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.clf-wrap .clf-btn:hover .clf-btn__arrow { transform: translateX(-4px) rotate(-45deg); }
.clf-wrap .clf-btn.is-loading .clf-btn__arrow svg { display: none; }
.clf-wrap .clf-btn.is-loading .clf-btn__arrow::after {
	content: "";
	width: 18px; height: 18px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: clf-spin .7s linear infinite;
}
@keyframes clf-spin { to { transform: rotate(360deg); } }

/* ================= Honeypot ================= */
.clf-wrap .clf-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ================= Success ================= */
.clf-wrap .clf-success {
	padding: 54px 24px;
	text-align: center;
	border: 1px solid var(--clf-card-border);
	border-radius: 24px;
	background: var(--clf-card);
	animation: clf-in .45s ease;
	outline: none;
}
@keyframes clf-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.clf-wrap .clf-success__icon {
	display: inline-grid;
	place-items: center;
	width: 76px; height: 76px;
	border-radius: 24px;
	color: var(--clf-accent-ink);
	background: var(--clf-accent);
	transform: rotate(-6deg);
	box-shadow: 0 18px 36px -16px color-mix(in srgb, var(--clf-accent) 90%, transparent);
	animation: clf-pop .6s cubic-bezier(.34, 1.56, .64, 1) .1s both;
}
@keyframes clf-pop { from { transform: rotate(-30deg) scale(.4); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }
.clf-wrap .clf-success__icon svg { width: 38px; height: 38px; }
body .clf-wrap:not(#_) .clf-success__title {
	margin: 22px 0 8px;
	font-family: var(--clf-heading);
	font-size: clamp(40px, 5vw, 56px);
	font-weight: 400;
	line-height: .92;
	text-transform: uppercase;
	color: var(--clf-text);
}
body .clf-wrap:not(#_) .clf-success__msg {
	max-width: 460px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.6;
	color: var(--clf-soft);
}

/* ================= Responsive ================= */
@media (max-width: 960px) {
	.clf-wrap.clf-cols-3 { --clf-cols: 2; }
}
@media (max-width: 640px) {
	.clf-wrap { max-width: 100%; } /* phone par hamesha poori chaurai */
	.clf-wrap.clf-theme-lounge { padding: 26px 14px 16px; border-radius: 32px 32px 20px 20px; }
	.clf-wrap .clf-intro { margin-bottom: 22px; padding-bottom: 24px; }
	body .clf-wrap:not(#_) .clf-intro__sub { font-size: 15.5px; }
	.clf-wrap .clf-grid { grid-template-columns: 1fr; gap: 10px; }
	.clf-wrap .clf-section { padding: 20px 16px; border-radius: 18px; }
	.clf-wrap .clf-section::after { font-size: 104px; top: -12px; }
	body .clf-wrap:not(#_) .clf-section__title { font-size: 28px; }
	body .clf-wrap:not(#_) .clf-control { font-size: 16px; } /* stops iOS zoom */
	body .clf-wrap:not(#_) .clf-btn { height: 58px; font-size: 26px; border-radius: 16px; }
	.clf-wrap .clf-btn__arrow { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.clf-wrap *, .clf-wrap *::before, .clf-wrap *::after { animation: none !important; transition: none !important; }
}
