/**
 * Imports
 */
@import 'variables/variables';
@import 'mixins/mixins';

*,
*::before,
*::after {
	margin: 0;
	box-sizing: border-box;
}

body {
	position: relative;
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Roboto", "Oxygen",
	"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
	"Poppins", sans-serif;
	font-size: 13px;
	line-height: 1.8;
	font-weight: 400;
	color: #000;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;

	&.user-registration-welcome {
		background-color: #ECEFF3;
		height: 100vh;
	}
}

#user-registration-welcome {
	text-align: center;
	margin: 0px auto;
	padding: 60px 0px;
	max-width: 980px;

	@media (max-width: 768px) {
		padding-left: 15px;
		padding-right: 15px;
	}

	> img {
		border-radius: 50%;
		border: 1px solid $border-color;
		width: 70px;
		height: 70px;
	}

	> a {
		> p {
			margin: 0;
			font-weight: 400;
			font-size: 16px;
			line-height: 150%;
			color: $grey-300;
			text-decoration: underline;
			display: flex;
			align-items: center;
			justify-content: center;
			gap: 7px;
		}
	}

	.user-registration-welcome-card {
		max-width: 920px;
		border-radius: 8px;
		margin: 16px auto 21px;
		background: $grey-0;
		border: 1px solid $border-color;
		padding: 32px;
		display: flex;
		gap: 32px;
		justify-content: center;

		@media (max-width: 1600px) {
			max-width: 857px;
		}

		@media (max-width: 768px) {
			padding-left: 25px;
			padding-right: 25px;
		}
	}

	.user-registration-skip-btn {
		text-align: center;

		> a {
			display: inline-block;
			text-decoration: underline;

			&:hover {
				p {
					svg {
						transform: translateX(6px);
					}
				}
			}

			p {
				display: flex;
				align-items: center;
				justify-content: center;
				gap: 6px;
				margin: 0;

				svg {
					transition: all .3s ease-in-out;
				}
			}
		}
	}

	a.button {
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		padding: 8px 16px;
		margin: 0px 10px;
		height: 44px;
		left: 440px;
		top: 726px;
		border: 1px solid #475BB2;
		border-radius: 2px;
		box-sizing: border-box;
		text-decoration: none;

		&-primary {
			background: #475BB2;
			color: $white;
		}

		&-secondary {
			background: #F1F4FF;
			color: #475BB2;
		}

		&-tertiary {
			background: whitesmoke;
			color: #2d3559;
			border: 1px solid #2d3559;
		}

		h3 {
			font-weight: 400;
		}
	}

	p {
		line-height: 150%;
		font-size: 16px;
		text-align: center;
		margin-top: 17px;
		margin-bottom: 0;
		color: $grey-300;
	}

	.user-registration-welcome-card {
		a {
			text-decoration: none;

			&:focus {
				box-shadow: none;
				outline: none;
			}
		}

		.user-registration-welcome-header {
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 1em;
			border-bottom: 1px solid $color_gray_two;
		}

		.user-registration-welcome-container {
			text-align: center;
			display: flex;
			flex-direction: column;
			align-items: center;
			gap: 36px;
			width: 100%;

			&__header {
				display: flex;
				flex-direction: column;
				align-items: center;
				padding: 0 1em;
				max-width: 605px;

				@media (max-width: 768px) {
					padding-left: 0;
					padding-right: 0;
				}

				h2 {
					font-size: 28px;
					line-height: 120%;
					color: $grey-500;
					font-weight: 600;

					@media (max-width: 1600px) {
						font-size: 24px;
					}
				}

				p {
					font-size: 16px;
					line-height: 26px;
					color: #1a202c;
					font-weight: 400;
					paragraph-spacing: 24px;

					@media (max-width: 1600px) {
						font-size: 14px;
					}
				}

				img {
					margin-top: 1.75em;
					fill: var(--ur-primary-color, $primary_color);
					height: 70px;
				}
			}


			.user-registration-welcome-video {
				display: flex;
				justify-content: center;
				border: 1px solid $border-color;
				box-sizing: border-box;
				position: relative;
				height: 482px;
				overflow: hidden;
				width: 100%;

				@media (max-width: 1600px) {
					height: 440px;
				}

				.onboarding-video-thumb {
					width: 100%;
					height: 100%;
					object-fit: cover;
				}

				&:has(.onboarding-video-thumb) {
					&::before {
						content: "";
						width: 100%;
						height: 100%;
						position: absolute;
						background: rgba(0, 0, 0, 0.24);
					}
				}

				a.welcome-video-play {
					cursor: pointer;
					align-items: center;
					position: absolute;
					width: 100%;
					height: 100%;

					.welcome-video-container {
						width: 100%;
						height: 100%;

						iframe {
							width: 100%;
							height: 100%;
						}
					}

					.user-registration-welcome-video__button {
						border: none;
						cursor: pointer;
						height: 70px;
						width: 70px;
						border-radius: 50%;
						padding: 0;
						position: absolute;
						top: 50%;
						left: 50%;
						transform: translate(-50%, -50%);
						color: $grey-0;
						background: var(--ur-primary-color, $primary_color);
						display: flex;
						align-items: center;
						justify-content: center;
						transition: all .25s ease-in-out;

						&::before {
							content: "";
							animation-duration: 2s;
							animation-iteration-count: infinite;
							animation-timing-function: linear;
							background-color: rgba(75, 83, 188, .471);
							animation-name: pulseAnimate;
							border-radius: 50%;
							bottom: 0;
							height: 100%;
							left: 0;
							position: absolute;
							right: 0;
							top: 0;
							width: 100%;
						}

						&::after {
							content: "";
							animation-name: pulseAnimate;
							border-radius: 50%;
							bottom: 0;
							height: 100%;
							left: 0;
							position: absolute;
							right: 0;
							top: 0;
							width: 100%;
							animation-delay: .3s;
							animation-duration: 3s;
							animation-iteration-count: infinite;
							animation-timing-function: linear;
							background-color: rgba(84, 92, 207, .47);
						}

						.dashicons-controls-play {
							display: flex;
							align-items: center;
							justify-content: center;

							&::before {
								font-size: 40px;
								font-weight: 600;
								margin-left: 10px;
								width: auto;
								height: auto;
								position: relative;
								z-index: 1;
								margin-top: 2px;
							}
						}

						svg {
							height: 24px;
							width: 224px;
						}

						&:hover {
							transform: translate(-50%, -50%) scale(1.1);
						}
					}

					img {
						display: block;
						max-width: 100%;
						opacity: 0;
						border-radius: 9px;
					}

					@keyframes user-registration-welcome-video__button {
						0% {
							box-shadow: 0 0 0 15px #ced5f3;
						}
						50% {
							box-shadow: none;
						}
						100% {
							box-shadow: 0 0 0 15px #ced5f3;
						}
					}
					@-webkit-keyframes user-registration-welcome-video__button {
						0% {
							box-shadow: 0 0 0 15px #ced5f3;
						}
						50% {
							box-shadow: 0 0 0;
						}
						100% {
							box-shadow: 0 0 0 15px #ced5f3;
						}
					}


					// .user-registration-welcome-video__button {
					// 	-webkit-animation: user-registration-welcome-video__button 2.0s normal infinite ease-in-out;
					// 	-moz-animation: user-registration-welcome-video__button 2.0s normal infinite ease-in-out;
					// 	-ms-animation: user-registration-welcome-video__button 2.0s normal infinite ease-in-out;
					// 	-o-animation: user-registration-welcome-video__button 2.0s normal infinite ease-in-out;
					// 	animation: user-registration-welcome-video__button 2.0s normal infinite ease-in-out;
					// }
				}
			}

			&__action {
				margin: 0;


				.button-primary {
					display: flex;
					align-items: center;
					gap: 10px;
					padding: 14px 19px 14px 22px;
					height: auto;
					border-radius: 3px;
					border: 1px solid var(--ur-primary-color, $primary_color);
					background: var(--ur-primary-color, $primary_color);
					margin-left: 0;
					margin-right: 0;

					&:hover {
						background: #4153a2;
					}

					h3 {
						font-size: 16px;
						line-height: 140%;
						font-weight: 600;
						color: $grey-0;
					}
				}

				.user-registration-welcome-container__action-card {
					padding: 1em;
					margin: 0 1em;
					width: 100%;
					border-radius: 4px;
					width: calc(50% - 38px);
					border: 1px solid $color_gray_two;
					transition: 0.3s ease;

					.user-registration-welcome-container__action-card-img {
						svg {
							height: 64px;
							width: 64px;
						}
					}

					.user-registration-welcome-container__action-card-content {
						h3 {
							font-size: 1.23em;
							margin-bottom: 0.5em;
						}

					}

					&:hover {
						box-shadow: 0 2px 20px 0 transparentize($gray_base, 0.85);
					}
				}
			}
		}
	}

	.user-registration-extensions-card {
		text-align: center;

		.user-registration-extensions-container__header {
			padding: 0 1em;

			h2 {
				font-size: 1.75em;
				margin-top: 1.75em;
				margin-bottom: 1em;
				color: #2D3559;
				font-size: 26px;
				line-height: 36px;
				font-weight: 600;
			}
		}

		.user-registration-extensions-container__body {
			padding: 15px;

			img {
				display: block;
				max-width: 100%;
			}
		}

		.user-registration-extensions-container__footer {
			padding: 0 32px;
			margin: 3rem 0;
			display: flex;
			justify-content: center;
		}
	}

	.user-registration-support-card {
		text-align: center;

		.user-registration-support-container__header {
			padding: 0 1em;

			h2 {
				font-size: 1.75em;
				margin-top: 1.75em;
				margin-bottom: 1em;
				color: #2D3559;
				font-size: 20px;
				line-height: 130%;
				font-weight: 600;
			}
		}

		.user-registration-support-container__body {
			padding: 0 1em;
		}

		.user-registration-support-container__footer {
			padding: 0 32px;
			margin: 3rem 0;
			display: flex;
			justify-content: center;
		}
	}
}

#user-registration-setup-wizard {
	margin: 0px auto;
	max-width: 980px;
	border-radius: 4px;
	align-content: center;
	padding: 60px 0px;

	.user-registration-setup-wizard {

		&__header {
			margin-bottom: 25px;
			display: flex;
			flex-direction: column;
			gap: 32px;

			&--logo {
				display: flex;
				justify-content: center;
				align-items: center;

				h1 {
					font-size: 24px;
					font-weight: 400;
					line-height: 31px;
					margin-left: 20px;
				}

				img {
					width: 70px;
				}
			}

			&--nav {
				display: flex;
				justify-content: space-between;
				list-style-type: none;
				align-items: center;

				.step {
					color: #BFBFBF;
					display: flex;
					flex-direction: column;
					align-items: center;
					justify-content: center;
					align-items: center;

					.step-label {
						font-weight: 500;
						font-size: 16px;
						line-height: 26px;
					}
				}

				.done,
				.active {
					.step-label {
						color: #475BB2;
					}
				}
			}

			.center-line {
				flex-grow: 1;
				height: 1px;
				background-color: #BABABA;
				margin: 0 10px;

				&#center-line-step-2 {
					flex-grow: 0.75;
				}

				&.done {
					background-color: #475BB2;
				}
			}
		}

		&__body {
			padding: 32px 32px 32px 40px;
			background-color: $white;
			border-radius: 13px 13px 0px 0px;
			color: #2D3559;
			margin-top: 42px;

			.ur-setup-wizard-tool-tip {
				margin-bottom: 8px !important;

				&::after {
					content: "";
					background-image: url('../images/settings-icons/information.svg') !important;
					background-repeat: no-repeat !important;
					background-size: 100% !important;
					background-position: center;
					display: block;
					width: 16px;
					height: 16px;
					cursor: pointer;
					padding: $spacing_4px;
					background: transparent;
					border-radius: $border_radius_3;
				}
			}

			&--select {
				flex: 1 0 60%;

				input {
					border: none;
				}

				span.css-1f1glkn {
					height: 29px;
				}
			}

			&--checkbox {
				.chakra-checkbox__control {
					border-radius: 50%;
					height: 18px;
					width: 18px;
					margin-right: 10px;

					svg {
						font-size: 10px;
					}
				}
			}
		}

		&__footer {
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			align-items: flex-end;
			background-color: #FAFAFA;
			padding: 24px 32px;
			border: 1px solid #E1E1E1;
			border-radius: 0px 0px 13px 13px;

			&--left,
			&--right {
				flex: 0 0 50%;
				display: flex;
				align-items: center;

				a.chakra-link {
					text-decoration: none;
				}
			}

			&--right {
				justify-content: flex-end;
			}

		}
	}
}


// Play Button Animation
@keyframes pulseAnimate {
	0% {
		transform: scale(1, 1);
	}
	50% {
		transform: scale(1.8, 1.8);
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}
