.gsp-overlay,
.gsp-overlay *,
.gsp-overlay *::before,
.gsp-overlay *::after {
	box-sizing: border-box;
}

.gsp-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 20, 20, 0.55);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 20px;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.gsp-overlay.gsp-visible {
	display: flex;
	opacity: 1;
}

.gsp-modal {
	background: #fff;
	width: 100%;
	max-width: 980px;
	max-height: 90vh;
	max-height: 90dvh;
	display: flex;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	transform: translateY(10px);
	transition: transform 0.25s ease;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.gsp-overlay.gsp-visible .gsp-modal {
	transform: translateY(0);
}

.gsp-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: #333;
	cursor: pointer;
	z-index: 2;
}

.gsp-image {
	flex: 0 0 38%;
	background-size: cover;
	background-position: center;
}

.gsp-content {
	flex: 1 1 62%;
	padding: 36px 40px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	max-height: 90vh;
	max-height: 90dvh;
}

.gsp-heading {
	font-size: 25px;
	line-height: 1.3;
	font-weight: 800;
	margin: 0 0 10px;
	color: #16181f;
}

.gsp-subheading {
	font-size: 14.5px;
	line-height: 1.6;
	color: #4b5160;
	margin: 0 0 22px;
}

.gsp-learn {
	background: #f7f8fa;
	border-radius: 6px;
	padding: 20px 22px;
	margin-bottom: 24px;
}

.gsp-learn-heading {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 14px;
	color: #16181f;
}

.gsp-learn-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.gsp-learn-list li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.gsp-learn-num {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #e8a33d;
	color: #fff;
	font-weight: 700;
	font-size: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 1px;
}

.gsp-learn-text {
	font-size: 13px;
	line-height: 1.55;
	color: #3c414d;
}

.gsp-learn-text strong {
	display: block;
	color: #16181f;
	font-size: 13.5px;
	margin-bottom: 2px;
}

.gsp-field-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 22px;
	row-gap: 16px;
	margin-bottom: 20px;
}

.gsp-field {
	display: flex;
	align-items: center;
	gap: 10px;
	border: none;
	border-bottom: 2px solid #e8a33d;
	padding-bottom: 8px;
	transition: border-color 0.2s ease;
}

.gsp-field:focus-within {
	border-bottom-color: #c9820e;
}

.gsp-icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	color: #3c414d;
	display: flex;
}

.gsp-icon svg {
	width: 100%;
	height: 100%;
}

/* Fully reset native browser styling (this is what causes the "double line" —
   browsers draw their own border/underline under inputs and selects unless
   every one of these is explicitly cleared). */
.gsp-field input,
.gsp-field select {
	border: 0;
	border-bottom: 0;
	border-radius: 0;
	box-shadow: none;
	background-color: transparent;
	background-image: none;
	font-size: 16px;
	color: #1f2430;
	width: 100%;
	outline: none;
	font-family: inherit;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.gsp-field input:focus,
.gsp-field select:focus {
	border: 0;
	outline: none;
	box-shadow: none;
}

.gsp-field select {
	cursor: pointer;
	padding-right: 20px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%233c414d' stroke-width='1.6'%3E%3Cpath d='M5 7l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right center;
	background-size: 14px;
}

.gsp-field select::-ms-expand {
	display: none;
}

/* Kill Chrome/Safari's autofill yellow highlight + its own border so it
   doesn't stack a second line under the field. */
.gsp-field input:-webkit-autofill,
.gsp-field input:-webkit-autofill:hover,
.gsp-field input:-webkit-autofill:focus {
	-webkit-text-fill-color: #1f2430;
	-webkit-box-shadow: 0 0 0 1000px #fff inset;
	box-shadow: 0 0 0 1000px #fff inset;
	transition: background-color 9999s ease-in-out 0s;
}

.gsp-field input::placeholder {
	color: #6b7280;
}

.gsp-interests {
	margin-bottom: 22px;
}

.gsp-field-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #1f2430;
	margin-bottom: 10px;
}

.gsp-checkboxes {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 16px;
}

.gsp-checkbox {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	color: #3c414d;
	cursor: pointer;
}

.gsp-checkbox input {
	width: 17px;
	height: 17px;
	cursor: pointer;
	accent-color: #e8a33d;
	flex: 0 0 auto;
}

.gsp-submit {
	width: 100%;
	background: #e8a33d;
	color: #fff;
	border: none;
	padding: 15px 20px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border-radius: 2px;
	transition: background 0.2s ease;
}

.gsp-submit:hover {
	background: #d6922f;
}

.gsp-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.gsp-arrow {
	font-size: 17px;
}

.gsp-privacy {
	text-align: center;
	font-size: 12px;
	color: #6b7280;
	margin: 10px 0 0;
}

.gsp-message {
	text-align: center;
	min-height: 18px;
	font-size: 13px;
	margin: 6px 0 0;
}

.gsp-message.is-success {
	color: #2e6b3e;
}

.gsp-message.is-error {
	color: #a4332c;
}

/* --- Trust badges --- */

.gsp-badges {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid #e2e5ea;
}

.gsp-badge {
	flex: 1 1 200px;
}

.gsp-badge strong {
	display: block;
	font-size: 13.5px;
	margin-bottom: 4px;
	color: #16181f;
}

.gsp-badge span {
	font-size: 12.5px;
	color: #6b7280;
}

/* --- Testimonial --- */

.gsp-testimonial {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid #e2e5ea;
}

.gsp-quote {
	font-size: 14.5px;
	line-height: 1.6;
	font-style: italic;
	color: #2a2f3a;
	margin: 0 0 8px;
}

.gsp-author {
	font-size: 12.5px;
	font-weight: 700;
	color: #1f2430;
	margin: 0;
}

.gsp-author span {
	font-weight: 400;
	color: #6b7280;
}

/* --- Minimized bar (shown after the first close) --- */

.gsp-mini {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	width: calc(100% - 40px);
	max-width: 420px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
	padding: 16px 18px;
	display: none;
	flex-direction: column;
	gap: 10px;
	z-index: 999998;
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}

.gsp-mini.gsp-mini-visible {
	display: flex;
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.gsp-mini-text {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: #2a2f3a;
}

.gsp-mini-text strong {
	color: #16181f;
}

.gsp-mini-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.gsp-mini-readmore {
	background: none;
	border: none;
	padding: 0;
	color: #c9820e;
	font-weight: 700;
	font-size: 13.5px;
	cursor: pointer;
}

.gsp-mini-readmore:hover {
	text-decoration: underline;
}

.gsp-mini-close {
	background: #f1f4f7;
	border: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 18px;
	line-height: 1;
	color: #3c414d;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

@media (max-width: 760px) {
	.gsp-overlay {
		padding: 0;
		align-items: flex-end;
	}
	.gsp-modal {
		flex-direction: column;
		max-width: 100%;
		max-height: 94vh;
		max-height: 94dvh;
		width: 100%;
		/* Let the whole card scroll as one unit on mobile instead of a
		   second scroll area inside it — avoids content getting clipped
		   by the card's own overflow:hidden. */
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
	}
	.gsp-image {
		flex: 0 0 140px;
	}
	.gsp-content {
		padding: 22px 18px 20px;
		max-height: none;
		overflow: visible;
	}
	.gsp-heading {
		font-size: 21px;
		margin-bottom: 8px;
	}
	.gsp-subheading {
		font-size: 14px;
		margin-bottom: 18px;
	}

	/* Rounded fields instead of underlines on mobile */
	.gsp-learn {
		padding: 14px 16px;
		margin-bottom: 18px;
	}
	.gsp-field-grid {
		row-gap: 12px;
		margin-bottom: 14px;
	}
	.gsp-field-grid,
	.gsp-checkboxes {
		grid-template-columns: 1fr;
	}
	.gsp-field {
		border-bottom: none;
		background: #f1f4f7;
		border: 1px solid #e3e6ea;
		border-radius: 10px;
		padding: 12px 14px;
	}
	.gsp-field:focus-within {
		border-color: #e8a33d;
		background: #fff;
	}
	.gsp-interests {
		margin-bottom: 18px;
	}
	.gsp-submit {
		padding: 15px 18px;
	}

	/* Tighter spacing in the lower sections on mobile */
	.gsp-badges {
		flex-direction: column;
		gap: 10px;
		margin-top: 18px;
		padding-top: 16px;
	}
	.gsp-testimonial {
		margin-top: 14px;
		padding-top: 14px;
	}
	.gsp-quote {
		font-size: 13.5px;
		margin-bottom: 6px;
	}
}

@media (max-width: 760px) {
	.gsp-mini {
		bottom: 0;
		left: 0;
		transform: translateY(100%);
		width: 100%;
		max-width: 100%;
		border-radius: 14px 14px 0 0;
		padding: 16px 18px calc(16px + env(safe-area-inset-bottom, 0px));
	}
	.gsp-mini.gsp-mini-visible {
		transform: translateY(0);
	}
}

@media (max-width: 400px) {
	.gsp-image {
		flex: 0 0 100px;
	}
	.gsp-content {
		padding: 18px 14px 16px;
	}
	.gsp-heading {
		font-size: 19px;
	}
	.gsp-learn {
		padding: 12px 14px;
		margin-bottom: 14px;
	}
	.gsp-badges {
		margin-top: 14px;
		padding-top: 12px;
	}
	.gsp-testimonial {
		margin-top: 10px;
		padding-top: 10px;
	}
}
