/*
 * GEMobile iPhone Buyback v7
 */

.gem-ib,
.gem-ib * {
	box-sizing: border-box;
}

.gem-ib {
	--black: #070707;
	--text: #080812;
	--muted: #747486;
	--pink: #c400c9;
	--pink-soft: #fae9fb;
	--green-soft: #effff3;
	--border: #eaddec;
	--gold: #f5d680;
	color: var(--text);
	font-family: inherit;
}

.gem-ib a {
	text-decoration: none;
}

.gem-ib__hero {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	margin-bottom: 18px;
	padding: clamp(28px, 5vw, 56px);
	border-radius: 30px;
	background:
		radial-gradient(circle at 20% 12%, rgba(196,0,201,.14), transparent 28%),
		radial-gradient(circle at 82% 82%, rgba(118,255,151,.16), transparent 34%),
		linear-gradient(135deg, #111 0%, #231f18 100%);
	color: #fff;
}

.gem-ib__eyebrow {
	margin: 0 0 10px;
	color: var(--gold);
	font-size: 12px;
	font-weight: 950;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.gem-ib__hero h1 {
	max-width: 820px;
	margin: 0;
	color: #fff;
	font-size: clamp(34px, 5vw, 70px);
	line-height: 1.05;
	letter-spacing: -.055em;
}

.gem-ib__hero p:not(.gem-ib__eyebrow) {
	max-width: 680px;
	margin: 18px 0 0;
	color: rgba(255,255,255,.8);
	font-size: 17px;
	line-height: 1.6;
}

.gem-ib__hero-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 22px;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font-weight: 950;
	white-space: nowrap;
}

.gem-ib__form {
	position: relative;
	overflow: hidden;
	min-height: 560px;
	padding: clamp(18px, 3vw, 34px);
	border-radius: 30px;
	border: 1px solid #f0e5f2;
	background:
		radial-gradient(circle at 10% 100%, rgba(122,255,148,.24), transparent 34%),
		radial-gradient(circle at 86% 20%, rgba(255,63,216,.28), transparent 34%),
		linear-gradient(120deg, #fff 0%, #f8fbff 44%, #fff3ff 100%);
	box-shadow: 0 18px 60px rgba(0,0,0,.08);
}

.gem-ib__bar {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
}

.gem-ib__bar > span {
	color: var(--muted);
	font-size: 13px;
	font-weight: 900;
}

.gem-ib__bar > div {
	flex: 1;
	height: 8px;
	border-radius: 999px;
	background: rgba(196,0,201,.10);
	overflow: hidden;
}

.gem-ib__bar i {
	display: block;
	width: 10%;
	height: 100%;
	border-radius: inherit;
	background: var(--pink);
	transition: width .24s ease;
}

.gem-ib__stage {
	display: none;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
	gap: clamp(24px, 5vw, 70px);
	align-items: start;
	min-height: 430px;
}

.gem-ib__stage.is-active {
	display: grid;
}

.gem-ib__copy {
	max-width: 700px;
}

.gem-ib__pre {
	margin: 0 0 2px;
	color: #747486;
	font-size: 18px;
	font-weight: 850;
}

.gem-ib h2 {
	margin: 0 0 22px;
	color: #000;
	font-size: clamp(32px, 4vw, 48px);
	line-height: 1.04;
	letter-spacing: -.05em;
}

.gem-ib__question {
	margin: 0 0 14px;
}

.gem-ib__question strong {
	display: block;
	color: #000;
	font-size: clamp(18px, 2vw, 24px);
	font-weight: 950;
	line-height: 1.22;
}

.gem-ib__question p {
	margin: 6px 0 0;
	color: var(--muted);
	font-weight: 700;
}

.gem-ib__field {
	display: grid;
	gap: 8px;
	max-width: 520px;
	margin: 16px 0 22px;
	color: #111;
	font-size: 14px;
	font-weight: 900;
}

.gem-ib input,
.gem-ib select {
	width: 100%;
	height: 54px;
	padding: 0 15px;
	border: 1px solid #decfde;
	border-radius: 16px;
	background: #fff;
	color: #111;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	outline: none;
}

.gem-ib input:focus,
.gem-ib select:focus {
	border-color: var(--pink);
	box-shadow: 0 0 0 4px rgba(196,0,201,.09);
}

.gem-ib__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 28px;
}

.gem-ib__choice {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 0 25px;
	border: 3px solid var(--pink);
	border-radius: 999px;
	background: transparent;
	color: var(--pink);
	font: inherit;
	font-size: 18px;
	font-weight: 950;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
	transition: background .18s ease, color .18s ease, transform .18s ease;
}

.gem-ib__choice:hover,
.gem-ib__choice.is-active {
	background: var(--pink);
	color: #fff;
	transform: translateY(-1px);
}

.gem-ib__choices--big .gem-ib__choice {
	text-transform: uppercase;
	font-size: 16px;
}

.gem-ib__empty {
	color: var(--muted);
	font-weight: 750;
}

.gem-ib__hint {
	display: grid;
	grid-template-columns: 46px 1fr;
	gap: 12px;
	max-width: 660px;
	margin-top: 10px;
	padding: 22px 26px;
	border-radius: 28px;
	background: var(--pink-soft);
	color: #13002a;
}

.gem-ib__hint b:first-child {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--pink);
	color: #fff;
	font-size: 26px;
	line-height: 1;
}

.gem-ib__hint strong {
	display: block;
	margin: 0 0 6px;
	color: var(--pink);
	font-size: 16px;
	font-weight: 950;
	text-transform: uppercase;
}

.gem-ib__hint p {
	margin: 0 0 14px;
	color: #13002a;
	font-size: 15px;
	font-weight: 760;
	line-height: 1.52;
}

.gem-ib__hint p:last-child {
	margin-bottom: 0;
}

.gem-ib__visual {
	min-height: 360px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 6px;
}

.gem-ib__phone {
	position: relative;
	width: 250px;
	height: 310px;
}

.gem-ib__phone:before,
.gem-ib__phone:after {
	content: "";
	position: absolute;
	border-radius: 38px;
	box-shadow: 0 15px 30px rgba(0,0,0,.25);
}

.gem-ib__phone:before {
	left: 14px;
	top: 30px;
	width: 142px;
	height: 238px;
	background:
		radial-gradient(circle at 30px 30px, #1d1d2a 0 13px, transparent 14px),
		radial-gradient(circle at 76px 30px, #1d1d2a 0 13px, transparent 14px),
		radial-gradient(circle at 30px 76px, #1d1d2a 0 13px, transparent 14px),
		linear-gradient(145deg, #4d4b68, #25243a);
	border: 4px solid #2f2d42;
}

.gem-ib__phone:after {
	right: 14px;
	top: 28px;
	width: 138px;
	height: 244px;
	border: 5px solid #101010;
	background:
		radial-gradient(circle at 50% -10%, #43ff25 0 70px, transparent 72px),
		radial-gradient(circle at 80% 90%, #a0ff33 0 98px, transparent 100px),
		linear-gradient(135deg, #00de21, #b5ff42);
}

.gem-ib__nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 22px;
}

.gem-ib__nav button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 22px;
	border-radius: 999px;
	border: 0;
	font: inherit;
	font-weight: 950;
	cursor: pointer;
}

.gem-ib__prev {
	background: #fff;
	color: #111;
	border: 1px solid #e4d7e4 !important;
}

.gem-ib__next,
.gem-ib__submit {
	margin-left: auto;
	background: #111;
	color: #fff;
}

.gem-ib__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

.gem-ib__grid label {
	display: grid;
	gap: 7px;
	color: #111;
	font-weight: 850;
}

.gem-ib__check {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	margin-top: 14px;
	color: #333;
	font-weight: 700;
	line-height: 1.45;
}

.gem-ib__check input {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 2px;
}

.gem-ib__notice {
	margin: 0 0 18px;
	padding: 18px 20px;
	border-radius: 22px;
	background: var(--pink-soft);
	border: 1px solid #efd3f6;
}

.gem-ib__notice strong {
	color: var(--pink);
}

.gem-ib__notice p {
	margin: 6px 0 0;
	font-weight: 750;
	line-height: 1.5;
}

.gem-ib__estimate {
	margin: 0 0 18px;
	padding: 18px 20px;
	border-radius: 22px;
	background: #111;
	color: #fff;
}

.gem-ib__estimate small {
	display: block;
	color: var(--gold);
	font-size: 11px;
	font-weight: 950;
	text-transform: uppercase;
	letter-spacing: .1em;
}

.gem-ib__estimate b {
	display: block;
	margin-top: 6px;
	color: #fff;
	font-size: 28px;
	line-height: 1.12;
	letter-spacing: -.04em;
}

.gem-ib__estimate em {
	display: block;
	margin-top: 8px;
	color: rgba(255,255,255,.74);
	font-style: normal;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}

.gem-ib__summary {
	width: min(360px, 100%);
	padding: 26px;
	border-radius: 28px;
	background: #111;
	color: #fff;
	box-shadow: 0 16px 45px rgba(0,0,0,.16);
}

.gem-ib__summary span {
	display: block;
	color: var(--gold);
	font-size: 12px;
	font-weight: 950;
	text-transform: uppercase;
	letter-spacing: .1em;
}

.gem-ib__summary strong {
	display: block;
	margin-top: 7px;
	font-size: 25px;
	line-height: 1.14;
	letter-spacing: -.035em;
}

.gem-ib__summary p {
	margin: 12px 0 0;
	color: rgba(255,255,255,.76);
	line-height: 1.5;
}

.gem-ib__result {
	margin-top: 18px;
	padding: 16px 18px;
	border-radius: 18px;
	background: #effaf3;
	border: 1px solid #bfe7cc;
	color: #165c2d;
	font-weight: 750;
	line-height: 1.5;
}

.gem-ib__result.is-error {
	background: #fff1f1;
	border-color: #ffc9c9;
	color: #8a1e1e;
}

@media (max-width: 900px) {
	.gem-ib__hero {
		display: block;
	}

	.gem-ib__hero-btn {
		margin-top: 22px;
	}

	.gem-ib__stage {
		grid-template-columns: 1fr;
	}

	.gem-ib__visual {
		display: none;
	}

	.gem-ib__copy {
		max-width: none;
	}
}

@media (max-width: 640px) {
	.gem-ib__hero,
	.gem-ib__form {
		border-radius: 22px;
	}

	.gem-ib__form {
		padding: 16px;
	}

	.gem-ib h2 {
		font-size: 31px;
	}

	.gem-ib__question strong {
		font-size: 18px;
	}

	.gem-ib__choices {
		display: grid;
		grid-template-columns: 1fr;
	}

	.gem-ib__choice {
		width: 100%;
		font-size: 16px;
	}

	.gem-ib__grid {
		grid-template-columns: 1fr;
	}

	.gem-ib__hint {
		grid-template-columns: 38px 1fr;
		padding: 18px;
		border-radius: 22px;
	}

	.gem-ib__nav {
		display: grid;
		grid-template-columns: 1fr;
	}

	.gem-ib__nav button {
		width: 100%;
	}

	.gem-ib__next,
	.gem-ib__submit {
		margin-left: 0;
	}
}
