:root {
	--dark-color: #171717;
	--nav-font-color: #5D5D5D;
	--nav-font-color-hover: #0E71BB;
	--btn-seconday-color: #7A7A7A;
	--btn-primary-color: #0E71BB;
	--btn-special-color: #F8941C;
	--btn-primary-dark: #0B5B98;
	--btn-primary-light: #3d6fb9;
	--section-margin: 8%;
	--mobile-breakpoint: 480px;
	--panel-menu-item-height: 60px;
	--default-font: IRANSans, serif;
	--default-direction: rtl;
}

html[dir='ltr'] {
	--default-font: DMSans, Roboto;
	--default-direction: ltr;
}

@media only screen and (max-width: 768px) {
	:root {
		--section-margin: 10%;
	}
}

html {
	color: #222;
	font-size: 1em;
	line-height: 1.4;
	height: 100%;
	scrollbar-width: thin;
	width: 100vw;
}

@media screen and (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	height: 100%;
	scrollbar-width: thin;
	width: auto;
	margin: 0;
	font-family: var(--default-font);
	overflow-x: hidden;
	overflow-y: overlay;
}

::-webkit-scrollbar {
	width: 7px;
}
::-webkit-scrollbar-track {
	background: transparent;
}
::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
	background: #555;
}
::-webkit-resizer,
::-webkit-scrollbar-button,
::-webkit-scrollbar-corner { display: none; }


::selection {
	background: rgba(0, 173, 239, 0.43); /* WebKit/Blink Browsers */
	text-shadow: none;
}
::webkit-selection {
	background: rgba(0, 173, 239, 0.43);
	text-shadow: none;
}
::-moz-selection {
	background: rgba(0, 173, 239, 0.43); /* Gecko Browsers */
	text-shadow: none;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

input[type=number] {
	appearance: none;
	-moz-appearance:textfield;
}

hr {
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid #ccc;
	margin: 1em 0;
	padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
	vertical-align: middle;
}

fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

textarea {
	resize: vertical;
}

.hidden,
[hidden] {
	display: none !important;
}

.sr-only {
	border: 0;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
	/* 1 */
}

.sr-only.focusable:active,
.sr-only.focusable:focus {
	clip: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	position: static;
	white-space: inherit;
	width: auto;
}

.invisible {
	visibility: hidden;
}

.clearfix::before,
.clearfix::after {
	content: " ";
	display: table;
}

.clearfix::after {
	clear: both;
}

@media only screen and (min-width: 35em) {
	/* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
	/* Style adjustments for high resolution devices */
}

@media print {
	*,
	*::before,
	*::after {
		background: #fff !important;
		color: #000 !important;
		/* Black prints faster */
		box-shadow: none !important;
		text-shadow: none !important;
	}

	a,
	a:visited {
		text-decoration: underline;
	}

	a[href]::after {
		content: " (" attr(href) ")";
	}

	abbr[title]::after {
		content: " (" attr(title) ")";
	}

	/*
	 * Don't show links that are fragment identifiers,
	 * or use the `javascript:` pseudo protocol
	 */
	a[href^="#"]::after,
	a[href^="javascript:"]::after {
		content: "";
	}

	pre {
		white-space: pre-wrap !important;
	}

	pre,
	blockquote {
		border: 1px solid #999;
		page-break-inside: avoid;
	}

	thead {
		display: table-header-group;
	}

	tr,
	img {
		page-break-inside: avoid;
	}

	p,
	h2,
	h3 {
		orphans: 3;
		widows: 3;
	}

	h2,
	h3 {
		page-break-after: avoid;
	}
}

@keyframes shake {
	10%, 90% {
		transform: translate3d(-1px, 0, 0);
	}

	20%, 80% {
		transform: translate3d(2px, 0, 0);
	}

	30%, 50%, 70% {
		transform: translate3d(-4px, 0, 0);
	}

	40%, 60% {
		transform: translate3d(4px, 0, 0);
	}
}


/**
 * ==============================================
 * Dot Pulse
 * ==============================================
 */
.dot-pulse {
	margin: auto;
	text-align: center;
}

.dot-pulse > div {
	position: relative;
	top: 3px;
	width: 18px;
	height: 18px;
	background-color: #f5f9ff;

	border-radius: 100%;
	display: inline-block;
	-webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
	animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.dot-pulse .dot-pulse-bounce1 {
	-webkit-animation-delay: -0.32s;
	animation-delay: -0.32s;
}

.dot-pulse .dot-pulse-bounce2 {
	-webkit-animation-delay: -0.16s;
	animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {
	0%, 80%, 100% { -webkit-transform: scale(0) }
	40% { -webkit-transform: scale(1.0) }
}

@keyframes sk-bouncedelay {
	0%, 80%, 100% {
		-webkit-transform: scale(0);
		transform: scale(0);
	} 40% {
		  -webkit-transform: scale(1.0);
		  transform: scale(1.0);
	  }
}

/***** SPECIFIC ELEMENTS */
#loadingOverlay {
	background-image: url("/static/images/logo.svg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 256px;
	left: 0 !important;
	top: 0 !important;
	z-index: 10000 !important;
	width: 100% !important;
	height: 100% !important;
	position: fixed !important;
	background-color: rgba(255, 255, 255) !important;
	/*cursor: pointer !important;*/
	visibility: visible !important;
	transition: visibility 0s, opacity 0.4s linear !important;
	display: flex;
	align-items: center;
	justify-content: center;
	/*cursor: wait !important;*/
}

@media only screen and (max-width: 700px) {
	#loadingOverlay {
		background-size: 160px;
	}
}

@media only screen and (max-width: 500px) {
	#loadingOverlay {
		background-size: 120px;
	}
}

/***** region datepicker theme */
jdp-container,
jdp-container .jdp-month,
jdp-container .jdp-month input,
jdp-container .jdp-month select,
jdp-container .jdp-time,
jdp-container .jdp-time input,
jdp-container .jdp-time select,
jdp-container .jdp-year,
jdp-container .jdp-year input,
jdp-container .jdp-year select {
	background: #323232;
}

jdp-container .jdp-day-name.today, jdp-container .jdp-day.today {
	border-color: rgba(255, 255, 255, 0.3);
	border-width: 2px;
}

jdp-container .jdp-months, jdp-container .jdp-years, jdp-container .jdp-time-container .jdp-time {
	color: rgb(255 255 255 / 80%);
	fill: rgb(255 255 255 / 80%);
}
jdp-container .jdp-time-container .jdp-time option {
	color: black;
}
jdp-container .jdp-day-name {
	background-color: rgb(255 255 255 / 10%);
}
jdp-container .jdp-day, jdp-container .jdp-day-name {
	color: rgb(255 255 255 / 80%);
}
jdp-container .jdp-day:empty {
	border-color: #323232;
}
jdp-container .jdp-btn-empty, jdp-container .jdp-btn-today {
	background: #1d497e;
}
/***** endregion */

/* region forms */
.was-validated .form-control:invalid ~ .did-floating-label {
	font-weight: 600 !important;
}

/*.form-element:has(.form-control.is-invalid), .form-element:has(.was-validated .form-control:invalid) {*/
.form-control.is-invalid, .was-validated .form-control:invalid {
	animation:  shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
	transform: translate3d(0, 0, 0);
	backface-visibility: hidden;
	perspective: 1000px;
}

.form-control.is-invalid, .was-validated .form-control:invalid {
	background-image: unset !important;
	border-color: #de161c !important;
}

.form-control.is-valid, .was-validated .form-control:valid {
	background-image: unset !important;
	border-color: var(--btn-primary-color) !important;
}

.form-container p {
	text-align: justify;
	font-size: 16px;
	font-weight: 300;
	max-width: 350px;
	line-height: 36px;
	margin: 0 auto 20px;
}

.form-container a {
	color: #08416E;
}

.form-container .form-element input[type='search']:before {
	content: url('/static/images/search.svg');
	filter: brightness(0) saturate(100%) invert(25%) sepia(60%) saturate(587%) hue-rotate(167deg) brightness(97%) contrast(89%);
	position: absolute;
	width: 20px;
	top: 13px;
	margin: auto 14px auto auto;
}

.form-container .form-element input:focus, .form-container .form-element textarea:focus {
	outline-style: none;
	box-shadow: none;
	border-color: var(--btn-primary-color);
	background-color: white;
	color: black;
}

.form-container .form-element input, .form-container .form-element textarea {
	text-align: right;
	direction: ltr;
	padding-right: 20px;
	padding-left: 45px;
	height: 45px;
	border-radius: 30px;
	/*border: 2px solid transparent;*/
	caret-color: black;
	color: black;
}

.form-container .form-element input#tomselect-2-ts-control, .form-container .form-element input[role="combobox"] {
	height: unset;
}

.form-container .form-element input::placeholder, .form-container .form-element textarea::placeholder {
	font-family: var(--default-font);
	color: #404040;
	font-weight: 500;
	margin-right: 20px;
	text-align: right;
}

.form-element.captcha-container > .svg-container {
	position: absolute;
	top: 0;
	left: 0;
}

.did-floating-label-content {
	position: relative;
}

.did-floating-label {
	color: #a8a8a8;
	font-size: 13px;
	font-weight: normal;
	position: absolute;
	pointer-events: none;
	right: 22px;
	top: 4px;
	height: 3px;
	padding: 0 5px;
	background: white;
	transition: 0.2s ease all;
	-moz-transition: 0.2s ease all;
	-webkit-transition: 0.2s ease all;
}

.did-floating-label span {
	transition: 0.2s ease all;
	-moz-transition: 0.2s ease all;
	-webkit-transition: 0.2s ease all;
	top: 9px;
	position: relative;
}

.did-floating-input, .did-floating-select {
	font-size: 14px;
	display: block;
	width: 100%;
	height: 36px;
	/*padding: 0 20px;*/
	background: #fff;
	color: #777a7c;
	border: 2px solid #3D85D8;
	border-radius: 4px;
	box-sizing: border-box;
}

select.did-floating-input {
	color: #333333 !important;
	font-family: var(--default-font), Monaco, monospace, serif !important;
}

input.form-control, input.form-check-input {
	margin-bottom: 25px !important;
}

.ts-wrapper.form-control {
	margin-bottom: 25px !important;
}

.was-validated input.form-control:invalid {
	margin-bottom: 0 !important;
}

.grecaptcha-badge {
	/*display: none !important;*/
}

.did-floating-input:focus, .did-floating-select:focus {
	outline: none;
}

.did-floating-input:focus ~ .did-floating-label, .did-floating-select:focus ~ .did-floating-label {
	top: 0;
	font-size: 13px;
}

.did-floating-input:focus ~ .did-floating-label span, .did-floating-select:focus ~ .did-floating-label span {
	top: -9px;
	position: relative;
}

.did-floating-input:not(:placeholder-shown) ~ .did-floating-label span {
	top: -9px;
	font-size: 13px;
}

.did-floating-input:not(:placeholder-shown) ~ .did-floating-label {
	top: 0;
}

.error-text {
	color: #de161c;
	width: min(320px, 100%);
	margin: 0 auto;
}

.overflow-text-ellipsis {
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	max-width: 80px;
	direction: ltr;
	cursor: pointer;
	margin: 0;
}
/* endregion */


/* region material bubble btn */
.material-bubble-wrapper--w-free {
	width: 100%;
}

.material-bubble-wrapper--w-auto {
	width: auto;
}

.material-bubble {
	border: 0;
	width: 100px;
	/*max-height: 45px;*/
	height: 45px;
	border-radius: 100em;
	padding: 10px 26px 13px 26px;
	position: relative;
	display: block;
	overflow: hidden;
	text-align: center;
	text-decoration: none;
	color: white;
	background-color: transparent;
	/*transition: background-color 1s cubic-bezier(0,1.05,.58,1);*/
}

.material-bubble:hover {
	background-color: transparent;
}

.material-bubble:active, .material-bubble:focus {
	background-color: transparent;
	border-color: transparent;
}

.material-bubble__text {
	text-align: center;
	vertical-align: middle;
	font-size: 0.99rem;
	white-space: nowrap;
}

html[dir='ltr'] .material-bubble__text {
	width: 100%;
}

@media only screen and (max-width: 700px) {
	.material-bubble__text {
		font-size: 0.9rem;
	}
}

.material-bubble__fill {
	position: absolute;
	display: inline-block;
	width: 0;
	height: 0;
	border-radius: 50%;
	background-image: radial-gradient(circle, #0b5b98 0%, #0b5b98 100%);
	transition: width 0.5s ease-in, height 0.5s ease-in;
	transform: translate(-50%, -50%);
	z-index: -1;
	top: 50%;
	left: 50%;
}

/*.material-bubble-wrapper--w-140 .material-bubble__fill {*/
/*	background-image: radial-gradient(circle, #000 0%, #5d5d5d 100%);*/
/*}*/

.material-bubble-wrapper--special .material-bubble__fill {
	background-image: radial-gradient(circle, #ed8607 0%, #ed8607 100%);
}

.material-bubble:hover .material-bubble__fill {
	width: 225%;
	height: 225px;
}

.material-bubble-wrapper--w-140 .material-bubble:hover .material-bubble__fill {
	width: 225%;
	height: 295.5px;
}

.material-bubble-wrapper--w-140 .material-bubble {
	width: 140px;
}

.material-bubble-wrapper--w-free .material-bubble {
	width: 100%;
}

.material-bubble-wrapper--w-auto .material-bubble {
	width: auto;
}

.material-bubble::before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	background-color: var(--btn-primary-color);
	width: 100px;
	height: 45px;
}

.material-bubble-wrapper--w-140 .material-bubble::before {
	width: 140px;
}

.material-bubble-wrapper--w-free .material-bubble::before {
	width: 100%;
}

.material-bubble-wrapper--w-auto .material-bubble::before {
	width: 100%;
}

.material-bubble-wrapper--special .material-bubble::before {
	background-color: var(--btn-special-color);
}
@media only screen and (max-width: 500px) {
	.material-bubble {
		font-size: 0.9rem;
		font-weight: 400;
		padding: 12px 15px 12px 15px;
	}

	.material-bubble,
	.material-bubble::before {
		width: 100px;
	}

	.material-bubble::before,
	.material-bubble-wrapper--w-140 .material-bubble,
	.material-bubble-wrapper--w-140 .material-bubble::before {
		width: 120px;
	}
}

@media only screen and (max-width: 440px) {
	.material-bubble {
		width: 95px;
		font-size: 0.8rem;
		font-weight: 400;
		padding: 12px 15px 12px 15px;
	}

	.material-bubble::before,
	.material-bubble-wrapper--w-140 .material-bubble,
	.material-bubble-wrapper--w-140 .material-bubble::before {
		width: 120px;
	}
}
/* endregion */
