@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

body {
	/* --survey-body: #fff; */
	--survey-body: transparent;
	--survey-grey: #f3f3f3;
	--survey-grey-light: #bdbdbd;
	--survey-grey-med: #666;
	--survey-border: #d8d8d8;
	--survey-white: #fff;
	--survey-black: #1a1a1a;
	--survey-separator: #efefef;
	--survey-grey-dark: #606060;
}

body.theme-dark {
	--survey-body: #121212;
	--survey-grey: #262626;
	--survey-grey-light: #8f8f8f;
	--survey-grey-med: #ffffffde;
	--survey-border: #ffffffde;
	--survey-white: #121212;
	--survey-black: #ffffffde;
	--survey-separator: #3a3a3a;
	--survey-grey-dark: #ffffffde;
}

@media (prefers-color-scheme: dark) {
	body {
		--survey-body: #121212;
		--survey-grey: #262626;
		--survey-grey-light: #8f8f8f;
		--survey-grey-med: #ffffffde;
		--survey-border: #ffffffde;
		--survey-white: #121212;
		--survey-black: #ffffffde;
		--survey-separator: #3a3a3a;
		--survey-grey-dark: #fffffde;
	}

	body.theme-light {
		/* --survey-body: #fff; */
		--survey-body: transparent;
		--survey-grey: #f3f3f3;
		--survey-grey-light: #bdbdbd;
		--survey-grey-med: #666;
		--survey-border: #d8d8d8;
		--survey-white: #fff;
		--survey-black: #1a1a1a;
		--survey-separator: #efefef;
		--survey-grey-dark: #606060;
	}
}

*,
:after,
:before {
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

html,
body {
	padding: 0;
	margin: 0;
	height: 100%;
}

body {
	background: var(--survey-body);
	border: solid 1px transparent;
}

.survey__container {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
}

.survey__separator {
	border: 1px solid var(--survey-separator);
	padding: 0px 10px;
	border-radius: 6px;
}

.survey__wrap,
.survey__wrap * {
	font-family: "Roboto", sans-serif;
}

.survey__wrap {
	position: relative;
	margin: 15px 0;
}

.survey__wrap input,
.survey__wrap textarea {
	outline: none;
}

.survey__wrapper {
	position: relative;
}

.survey__question {
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--survey-black);
	margin-top: 0;
}

.survey__wording {
	font-size: 14px !important;
	font-style: italic;
	margin: 0 0 10px 0;
	line-height: 19px;
	color: var(--survey-black);
}

.survey__agreement {
	font-size: 11px;
	display: flex;
	line-height: 1.5;
}

.survey__agreement input[type="checkbox"] {
	margin-top: 2px;
}

.survey__input {
	margin: 8px 0;
}

.survey__button {
	background-color: #2289ce;
	color: #fff;
	font-size: 14px;
	border: none;
	padding: 4px 10px;
	border-radius: 6px;
	margin: 0 auto;
	display: block;
	margin-top: 12px;
	cursor: pointer;
}

.input__wrap {
	transition: all 0.3s;
	cursor: pointer;
	display: flex;
	align-items: center;
	padding: 4px 8px;
	/* border: solid 1px var(--survey-grey-med); */
	border-radius: 8px;
	font-size: 14px;
	background-color: var(--survey-grey);
	align-items: start;
	line-height: 1.6em;
	color: var(--survey-black);
}

.input__radio {
	display: none;
}

.custom__radio {
	position: relative;
	top: 3px;
	left: 0;
	height: 16px;
	width: 16px;
	display: inline-block;
	border-radius: 50%;
	border: solid 2px;
	flex: 0 0 16px;
	margin-right: 8px;
	border: solid 1.5px var(--survey-grey-med);
}

.custom__radio:after {
	content: "";
	position: absolute;
	display: none;
}

.input__wrap input:checked ~ .custom__radio:after {
	display: block;
}

.input__wrap .custom__radio:after {
	left: 0;
	top: 0;
	width: 8px;
	height: 8px;
	background: var(--survey-grey-med);
	border-radius: 50%;
	margin: auto;
	right: 0;
	bottom: 0;
}

.survey__wrap input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	font: inherit;
	color: var(--survey-grey-med);
	width: 16px;
	height: 16px;
	border: 1.5px solid var(--survey-grey-med);
	border-radius: 4px;
	display: grid;
	place-content: center;
	flex-shrink: 0;
	margin-right: 8px;
}

.survey__wrap input[type="checkbox"]::before {
	content: "";
	width: 8px;
	height: 8px;
	transform: scale(0);
	transition: 120ms transform ease-in-out;
	box-shadow: inset 16px 16px var(--survey-black);
}

.survey__wrap input[type="checkbox"]:checked::before {
	transform: scale(1);
	transform-origin: bottom left;
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.survey__wrap input[type="checkbox"]:disabled {
	color: #6b7280;
	cursor: not-allowed;
}

.input__text__other {
	width: 100%;
	padding: 2px 8px;
	margin-top: 2px;
	margin-left: 24px;
	margin-bottom: 4px;
	border-radius: 4px;
	border: solid 1px var(--survey-border);
	background: var(--survey-white);
	color: var(--survey-black);
}

.survey__text {
	width: 100%;
	resize: none;
	font-size: 14px;
	padding: 4px 8px;
	border-radius: 6px;
	color: var(--survey-black);
	background: var(--survey-white);
	border: solid 1px var(--survey-border);
}

.survey__file {
	transition: all 0.3s;
	cursor: pointer;
	display: flex;
	align-items: center;
	padding: 4px 8px;
	border-radius: 8px;
	font-size: 14px;
	flex-wrap: wrap;
	background-color: var(--survey-grey);
	width: 100%;
}

.survey__hide {
	display: none !important;
}

.survey__rate {
	display: flex;
	gap: 4px;
}

.survey__rate > div {
	width: 100%;
}

.input__rate {
	justify-content: center;
	padding: 4px;
	border-radius: 4px;
}

.input__rate input {
	display: none;
}

.survey__wrap input::-webkit-file-upload-button {
	background-color: var(--survey-black);
	border-radius: 4px;
	border: none;
	color: #fff;
	padding: 4px 12px;
	margin-top: 4px;
	margin-bottom: 4px;
	margin-right: 8px;
	color: var(--survey-white);
}

.input__wrap.selected {
	background-color: var(--survey-grey-light);
}

.survey__button--link {
	color: #fff !important;
	width: fit-content;
	font-size: 18px;
}

.survey__gridimg {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.survey__gridimg .input__wrap {
	padding-top: 8px;
	padding-bottom: 8px;
	flex-wrap: wrap;
}

.input__img--option {
	display: flex;
	line-height: 1.3;
	margin-top: 6px;
	font-size: 12px;
}

.input__img--option .custom__radio,
.input__img--option .custom__checkbox {
	margin-top: 4px;
}

@media (min-width: 768px) {
	.input__img--option .custom__radio,
	.input__img--option .custom__checkbox {
		margin-top: 0;
	}
}

.rating {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
}

.rating input {
	display: none;
}

.rating label {
	position: relative;
	color: #cf8300;
}

.rating label {
	margin: 0 4px;
	display: inline-block;
	font-size: 16px;
	fill: #ccc;
	user-select: none;
}

.rating label svg {
	width: 45px;
	height: auto;
}

.rating input:checked ~ label svg path {
	fill: #cf8300;
}

.rating label:hover ~ label svg path {
	fill: #cf8300;
}

.rating label:hover svg path {
	fill: #cf8300;
}

.survey__matrix {
	width: 100%;
	font-size: 14px;
}

.survey__matrix thead tr {
	display: none;
}

.survey__matrix tbody tr {
	display: flex;
	flex-direction: column;
	margin: 6px 0;
}

.survey__matrix--input {
	margin: 2px 0;
}

.survey__matrix--sub {
	display: none;
}

.input__table {
	flex-wrap: nowrap;
	line-height: 1.3;
	padding-top: 8px;
	padding-bottom: 8px;
}

.survey__range--range {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
}

.survey__range--range strong,
.survey__range--range p {
	margin: 0;
	font-size: 12px;
	line-height: 1;
}

.range--right {
	text-align: right;
}

.survey__wrap input[type="range"] {
	-webkit-appearance: none;
	margin-right: 15px;
	width: 100%;
	height: 0.5rem;
	background: var(--survey-grey-light);
	border-radius: 5px;
	background-size: 0% 100%;
	background-repeat: no-repeat;
}

/* Input Thumb */
.survey__wrap input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	height: 25px;
	width: 25px;
	border-radius: 50%;
	background: var(--survey-black);
	position: relative;
	cursor: pointer;
	box-shadow: 0 0 2px 0 #555;
	transition: background 0.3s ease-in-out;
}

.survey__wrap input[type="range"]::-moz-range-thumb {
	-webkit-appearance: none;
	height: 25px;
	width: 25px;
	border-radius: 50%;
	background: var(--survey-black);
	position: relative;
	cursor: pointer;
	box-shadow: 0 0 2px 0 #555;
	transition: background 0.3s ease-in-out;
}

.survey__wrap input[type="range"]::-ms-thumb {
	-webkit-appearance: none;
	height: 25px;
	width: 25px;
	border-radius: 50%;
	background: var(--survey-black);
	position: relative;
	cursor: pointer;
	box-shadow: 0 0 2px 0 #555;
	transition: background 0.3s ease-in-out;
}

.survey__wrap input[type="range"]::-webkit-slider-thumb:hover {
	background: var(--survey-black);
}

.survey__wrap input[type="range"]::-moz-range-thumb:hover {
	background: var(--survey-black);
}

.survey__wrap input[type="range"]::-ms-thumb:hover {
	background: var(--survey-black);
}

/* .survey__wrap Input Track */
.survey__wrap input[type="range"]::-webkit-slider-runnable-track {
	-webkit-appearance: none;
	box-shadow: none;
	border: none;
	background: transparent;
}

.survey__wrap input[type="range"]::-moz-range-track {
	-webkit-appearance: none;
	box-shadow: none;
	border: none;
	background: transparent;
}

.survey__wrap input[type="range"]::-ms-track {
	-webkit-appearance: none;
	box-shadow: none;
	border: none;
	background: transparent;
}

.survey__range {
	margin-bottom: 44px;
	position: relative;
}

.survey__range .range--progress {
	height: 8px;
	background: var(--survey-black);
	position: absolute;
	top: 9px;
	left: 0;
	border-radius: 5px;
}

.survey__range .range--value {
	position: relative;
	width: 100%;
	left: 0;
}

.survey__range .range--value span {
	position: absolute;
	height: 25px;
	width: 25px;
	top: 12px;
	z-index: 2;
	color: var(--survey-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: bold;
}

.survey__range .range--value span:after {
	position: absolute;
	content: "";
	height: 100%;
	width: 100%;
	background: var(--survey-black);
	z-index: -1;
	transform: rotate(-135deg);
	border-bottom-left-radius: 50%;
	box-shadow: 0px 0px 8px rgb(0 0 0 / 10%);
	border-top-left-radius: 50%;
	border-top-right-radius: 50%;
}

.survey__range .range--progress,
.survey__range .range--value span:after {
	background-color: var(--survey-black);
}

.survey__popup {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	text-align: center;
	align-items: center;
	justify-content: center;
}

.survey__blur {
	filter: blur(6px);
}

.survey__end p {
	font-size: 16px;
}

.survey__wrapper p {
	color: var(--survey-black);
}

.survey__wrap a {
	color: #39c;
}

.survey__agreement label {
	color: var(--survey-black);
}

.dark-wrapper-iframe {
	display: none;
}

.survey__winners {
	display: block;
	text-decoration: none;
	font-size: 12px;
	font-weight: 700;
	font-family: "Roboto", sans-serif;
	color: #007aff;
	text-align: center;
	padding: 14px;
	border-top: 1px solid var(--survey-separator);
	width: 99%;
	bottom: 0;
	left: 0px;
	right: 0;
	margin: auto;
}

.survey__winners--arrow {
	margin-left: 4px;
}

.survey__winners--arrow svg path {
	fill: var(--survey-grey-dark);
}

.survey__bottom {
	position: fixed;
	bottom: 0;
	width: 100%;
}

.survey__sponsor {
	font-size: 7px;
	font-family: "Roboto", sans-serif;
	color: var(--survey-grey-med);
	display: flex;
	gap: 6px;
	align-items: center;
	justify-content: end;
	margin-left: auto;
	padding: 0 10px;
}

.survey__sponsor--img {
	width: auto;
	padding: 4px;
	background-color: #fff;
	border-radius: 3px;
}

.survey__sponsor--img img {
	filter: grayscale(1);
	opacity: 0.7;
	max-width: 60px;
	max-height: 25px;
}

.survey__separator .survey__bottom {
	margin: 0 -12px;
}

.survey__audience {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: "Roboto", sans-serif;
	color: var(--survey-grey-med);
	font-size: 12px;
	font-weight: 700;
}

.survey__audience svg path {
	fill: var(--survey-grey-med);
}

.survey__bottom__wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 10px 15px;
}

.survey__audience svg path {
	fill: var(--survey-grey-med);
}

.survey__audience__top {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: "Roboto", sans-serif;
	color: var(--survey-grey-med);
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 5px;
	justify-content: flex-end;
}

.survey__audience__top svg path {
	fill: var(--survey-grey-med);
}
