.global-form {}

.global-form .input-box input[readonly],
.global-form .input-box input:disabled {
	color: #6D7275;
	background: #E2E4E8;
}

.global-form .custom-select-box:has(select:disabled):focus-within>label,
.global-form .custom-select-box:has(select:disabled):has(select option:checked:not([hidden]))>label {
	top: 4px;
	font-size: 10px;
	left: 16px;
	color: #94989b;
}

.global-form .text-checkbox-module {
	background: #f2f3f5;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 48px;
	border-radius: 16px;
	cursor: pointer;
	transition: background-color ease 0.5s;
	width: 100%;
	box-sizing: border-box;
}

.global-form .text-checkbox-module:hover {
	background-color: rgb(199, 199, 199);
}

.global-form .text-checkbox-module * {
	cursor: inherit;
}

.global-form .text-checkbox-module .text {
	font-size: 32px;
}

.global-form .text-checkbox-module .title {
	font-size: 40px;
	font-weight: 700;
	margin-bottom: 16px;
}

.global-form .side-panel {
	position: fixed;
	top: 0px;
	bottom: 0px;
	right: 0;
	width: 1360px;
	height: 100vh;
	background: #FFF;
	padding: 80px 48px 0px;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	opacity: 0;
	transition:
		transform 0.4s ease,
		opacity 0.4s ease;
	z-index: 1060;
	overflow: hidden;
	box-sizing: border-box;
}

body.navbar-hidden .side-panel {
	top: 0px;
	bottom: 0px;
}

.global-form .side-panel.is-open {
	transform: translateX(0);
	opacity: 1;
}

.global-form .side-panel .global-title {
	font-size: 48px;
	font-weight: 700;
}

.global-form .side-panel .container-terms {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	padding-right: 24px;
}

.global-form .side-panel .button-wrapper-specific,
.global-form .side-panel .button-wrapper {
	width: 100%;
	background: #FAFAFA;
	box-sizing: border-box;
	display: flex;
	gap: 24px;
	padding: 32px 0px;
	flex-shrink: 0;
}

.global-form .side-panel .button-wrapper-specific .global-button,
.global-form .side-panel .button-wrapper .global-button {
	flex: 1;
	padding: 32px;
	font-size: 32px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	border: none;
}

.global-form .side-panel .button-wrapper-specific .global-button-border-gray,
.global-form .side-panel .button-wrapper .global-button-border-gray {
	border: 3px solid #6d7275 !important;
}

#overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 1050;
}

#overlay.active {
	display: block;
}

.global-form .side-panel .container-terms::-webkit-scrollbar,
.global-form .textarea-box textarea::-webkit-scrollbar {
	width: 16px;
}

.global-form .side-panel .container-terms::-webkit-scrollbar-thumb,
.global-form .textarea-box textarea::-webkit-scrollbar-thumb {
	background-color: #163fe8;
	border-radius: 98px;
}

.global-form .side-panel .container-terms::-webkit-scrollbar-track,
.global-form .textarea-box textarea::-webkit-scrollbar-track {
	background-color: #d3d5d6;
	border-radius: 98px;
}

.global-form .terms-and-condition-container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 32px;
	align-self: stretch;
}

.global-form .ticked-checkbox {
	display: flex;
	align-items: flex-start;
	align-self: stretch;
}

.global-form .ticked-checkbox .text-details {
	flex: 1 0 0;
	color: #0d0d0d;
	margin-left: 16px;
	font-size: 32px;
	font-style: normal;
	font-weight: 400;
	line-height: 24px;
}

.global-form .ticked-checkbox input {
	display: none;
}

.global-form .ticked-checkbox input+label {
	width: 48px;
	height: 48px;
	min-width: 48px;
	border: 3px solid #6d7275;
	background: #fff;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition:
		background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
		transform 0.15s ease;
}

.global-form .ticked-checkbox input+label svg path {
	fill: transparent;
	transition: all 250ms cubic-bezier(1, 0, 0.37, 0.91);
}

.global-form .ticked-checkbox input:checked+label {
	background: #163fe8;
	border-color: #163fe8;
}

.global-form .ticked-checkbox input:checked+label svg path {
	fill: #ffffff;
}

.global-form .ticked-checkbox input+label svg {
	pointer-events: none;
}

.global-form .input-box {
	position: relative;
	border-radius: 16px;
	border: 2px solid #0d0d0d;
	background: #fff;
	flex: 1 0 calc(25% - 48px);
	width: 100%;
	box-sizing: border-box;
}

.global-form .input-box label {
	position: absolute;
	opacity: 0.6;
	left: 32px;
	font-size: 28px;
	pointer-events: none;
	color: #6d7275;
	transition: all 0.22s;
	top: 50%;
	transform: translateY(-50%);
	display: block;
}

.global-form .input-box input {
	width: 100%;
	padding: 24px 32px 8px;
	box-sizing: border-box;
	border-radius: 16px;
	border: none;
	font-size: 28px;
	color: #0d0d0d;
	height: 96px;
	font-family: PingLCG, sans-serif;
}

.global-form .input-box input:focus {
	outline: 0;
}

.global-form .input-box.input-box-optional input:not(:focus):valid+label {
	color: #6d7275;
	top: 50%;
	font-size: 28px;
	transform: translateY(-50%);
	left: 32px;
	opacity: 0.6;
}

.global-form .input-box.input-box-optional.has-value input:not(:focus)+label {
	color: #163fe8;
	top: 8px;
	font-size: 20px;
	transform: translateY(0);
	left: 32px;
	opacity: 1;
}

.global-form .input-box input:focus+label,
.global-form .input-box input:hover+label,
.global-form .input-box input:valid+label {
	color: #163fe8;
	top: 8px;
	font-size: 20px;
	transform: translateY(0);
	left: 32px;
	opacity: 1;
}

/* Optional inputs have no `required` constraint, so they always match :valid
   and the rule above would float their label to the top on load even when the
   field is empty. A " " placeholder (injected by JS for every optional input)
   lets :placeholder-shown detect the truly-empty state and keep the label in
   its default centered position. This works whether the value is typed by the
   user or set programmatically via .val() (which never fires an input event).
   Required fields keep the :valid behavior; pre-filled fields stop matching
   :placeholder-shown and float normally. */
.global-form .input-box input:placeholder-shown:not(:focus):not(:hover):not(:required)+label {
	color: #6d7275;
	top: 50%;
	font-size: 28px;
	transform: translateY(-50%);
	left: 32px;
	opacity: 0.6;
}

.global-form .input-box input[readonly]+label,
.global-form .input-box input:disabled+label {
	color: #6d7275;
	top: 8px;
	font-size: 20px;
	transform: translateY(0);
	opacity: 1;
	left: 32px;
}

.global-form .input-box input[readonly][value]:not([value=""])+label,
.global-form .input-box input:disabled:not(:placeholder-shown)+label {
	opacity: 1;
	transform: translateY(0);
}

.global-form .input-box input[readonly][disabled][value=""]+label,
.global-form .input-box input[readonly][value=""]+label,
.global-form .input-box input:disabled:placeholder-shown+label {
	top: 8px;
	font-size: 20px;
	opacity: 1;
	transform: translateY(0);
	left: 32px;
}

.global-form .input-box .cover {
	width: 100%;
	position: absolute;

	height: 8px;
	top: 3rem;
}

.global-form .input-box.has-error {
	border-color: #ff2e00;
}

.global-form .input-box.has-error label {
	opacity: 1;
}


.global-form .field-error {
	display: flex;
	align-items: center;
	align-self: stretch;

	flex: 1 0 0;
	color: #FF2E00;
	font-size: 24px;
	font-weight: 400;
	line-height: 32px;
	margin-right: 16px;
	gap: 8px;
}



.global-form .field-error+.input-box {
	margin-top: -16px;
}

.global-form .input-box+.field-error {
	margin-top: -40px;
	margin-bottom: 0px;
}

/* custom-select-box with floating label — mirrors .input-box */
.global-form .custom-select-box:has(> label) {
	position: relative;
	border-radius: 16px;
	border: 2px solid #0D0D0D;
	background: #fff;
	flex: 1 0 calc(25% - 48px);
	width: 100%;
	box-sizing: border-box;
}

.global-form .custom-select-box>label {
	position: absolute;
	opacity: 0.6;
	left: 32px;
	font-size: 28px;
	pointer-events: none;
	color: #94989b;
	transition: all 0.22s;
	top: 50%;
	transform: translateY(-50%);
	display: block;
}

.global-form .custom-select-box:has(> label) select {
	width: 100%;
	padding: 24px 32px 8px;
	box-sizing: border-box;
	border-radius: 16px;
	border: none;
	background: transparent;
	font-size: 28px;
	color: #000;
	height: 96px;
}

.global-form .custom-select-box:has(> label) select:focus {
	outline: 0;
}



.global-form .custom-select-box:has(> label):focus-within>label,
.global-form .custom-select-box:has(> label):has(select option:checked:not([hidden]))>label {
	color: #163fe8;
	top: 8px;
	font-size: 20px;
	transform: translateY(0);
	left: 32px;
	opacity: 1;
}

.global-form .custom-select-box:has(> label):has(select[readonly])>label,
.global-form .custom-select-box:has(> label):has(select:disabled)>label {
	color: #6D7275;
	top: 8px;
	font-size: 20px;
	transform: translateY(0);
	left: 32px;
	opacity: 1;
}

.global-form .custom-select-box:has(> label):has(select[readonly]) select,
.global-form .custom-select-box:has(> label):has(select:disabled) select {
	color: #6D7275;
}

.global-form .custom-select-box:has(> label).has-error {
	border-color: #ff2e00;
}

.global-form .custom-select-box:has(> label).has-error>label {
	color: #ff2e00;
	opacity: 1;
}

/* field-error sitting under a custom-select-box — mirrors .input-box+.field-error */
.global-form .custom-select-box+.field-error {
	margin-top: -22px;
}

.global-form .tooltip-container {
	position: absolute;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	right: 0;
	padding-right: 32px;
	top: 25%;
}

.global-form .tooltip-container::before {
	content: "";
	display: flex;
	align-items: center;
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	aspect-ratio: 1/1;
	background: url("../../assets/images/info-tooltip.svg") no-repeat center;
	background-size: contain;
}

.global-form .input-box.has-error .tooltip-container::before {
	background-image: url("../../assets/images/info-tooltip-error.svg");
}

.global-form .tooltip-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	position: absolute;
	width: 560px;
	min-height: 160px;
	top: 130%;
	right: 0;
	border-radius: 16px;
	background: #f2f3f5;
	color: #0d0d0d;
	padding: 16px;

	white-space: normal;
	word-break: break-word;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: 0.5s ease;
	z-index: 10;
}

.global-form .tooltip-text::before {
	content: "";
	position: absolute;
	top: -10px;
	right: 44px;
	display: block;
	width: 24px;
	height: 12px;
	background: url("../../assets/images/Left\ edge\ -\ top.svg") no-repeat center;
	background-size: contain;
}

.global-form .tooltip-close {
	align-self: flex-start;
	background: url("../../assets/images/close-button.svg") no-repeat center;
	background-size: contain;
	border: 0;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;

	color: transparent;
}

.global-form .tooltip-message {
	color: #0d0d0d;
	font-size: 28px;
	font-weight: 400;
	line-height: 40px;
}

.global-form .input-box.tooltip.tooltip-open .tooltip-text {
	opacity: 1;
	visibility: visible;
	z-index: 10;
}

.global-form .field-error::before {
	content: "";
	display: flex;
	align-items: center;
	gap: 32px;
	width: 48px;
	height: 48px;
	background: url("../../assets/images/triangle-alert.svg") no-repeat center;
	background-size: contain;
}

.global-form .ticked-checkbox svg path {
	stroke-dasharray: 20;
	stroke-dashoffset: 20;
	transition: stroke-dashoffset 0.3s ease;
}

/* când devine checked */
.global-form .ticked-checkbox input:checked+label svg path {
	stroke-dashoffset: 0;
}

@media only screen and (max-width: 3000px) {

	.input-box:has(input:disabled) {
		pointer-events: none;
	}

	.global-form .custom-select-box:has(> label):has(select:disabled)::before {
		border-color: #6D7275;
	}

	.global-form .text-checkbox-module {
		padding: 24px;
		border-radius: 8px;
	}

	.global-form .text-checkbox-module .text {
		font-size: 16px;
	}

	.global-form .text-checkbox-module .title {
		font-size: 20px;
		margin-bottom: 8px;
	}

	.global-form .side-panel .container-terms::-webkit-scrollbar,
	.global-form .textarea-box textarea::-webkit-scrollbar {
		width: 8px;
	}

	.global-form .side-panel .container-terms::-webkit-scrollbar-thumb,
	.global-form .textarea-box textarea::-webkit-scrollbar-thumb {
		background-color: #163fe8;
		border-radius: 49px;
	}

	.global-form .side-panel .container-terms::-webkit-scrollbar-track,
	.global-form .textarea-box textarea::-webkit-scrollbar-track {
		background-color: #d3d5d6;
		border-radius: 49px;
	}

	.global-form .side-panel .container-terms {
		padding-right: 12px;
	}

	.global-form .side-panel {
		top: 0px;
		width: 680px;
		padding: 80px 24px 0px;
	}

	body.navbar-hidden .side-panel {
		top: 0px;
		bottom: 0px;
	}

	.global-form .side-panel .global-title {
		font-size: 24px;
	}

	.global-form .side-panel .button-wrapper {
		gap: 12px;
		padding: 16px 0px;
	}

	.global-form .side-panel .button-wrapper .global-button {
		padding: 16px;
		font-size: 16px;
		border-radius: 4px;
	}

	.global-form .side-panel .button-wrapper .global-button-border-gray {
		border: 1.5px solid #6d7275 !important;
	}

	.global-form .info {
		font-size: 16px;
	}

	.global-form .ticked-checkbox .text-details {
		margin-left: 8px;
		font-size: 16px;
	}

	.global-form .ticked-checkbox input+label {
		width: 24px;
		height: 24px;
		min-width: 24px;
		border: 1px solid #6d7275;
		border-radius: 4px;
		box-sizing: border-box;
	}

	.global-form .terms-and-condition-container {
		gap: 16px;
	}

	.global-form .input-box {
		border-radius: 8px;
		border: 1px solid #0D0D0D;
		flex: 1 0 calc(25% - 24px);
	}

	.global-form .input-box input {
		width: 100%;
		padding: 12px 16px 4px;
		border-radius: 8px;
		font-size: 14px;
		height: 48px;
	}

	.global-form .input-box label {
		left: 16px;
		font-size: 14px;
	}

	.global-form .input-box.input-box-optional input:not(:focus):valid+label {
		font-size: 14px;
		transform: translateY(-50%);
		left: 16px;
		opacity: 0.6;
	}

	.global-form .input-box.input-box-optional.has-value input:not(:focus)+label {
		color: #163fe8;
		top: 4px;
		font-size: 10px;
		transform: translateY(0);
		left: 16px;
		opacity: 1;
	}

	.global-form .input-box input:focus+label,
	.global-form .input-box input:hover+label,
	.global-form .input-box input:valid+label {
		top: 4px;
		font-size: 10px;
		left: 16px;
	}

	.global-form .input-box input:placeholder-shown:not(:focus):not(:hover):not(:required)+label {
		top: 50%;
		font-size: 14px;
		transform: translateY(-50%);
		left: 16px;
		opacity: 0.6;
	}

	.global-form .input-box input[readonly]+label,
	.global-form .input-box input:disabled+label {
		top: 4px;
		font-size: 10px;
		transform: translateY(0);
		opacity: 1;
		left: 16px;
	}

	.global-form .input-box input[readonly][disabled][value=""]+label,
	.global-form .input-box input[readonly][value=""]+label,
	.global-form .input-box input:disabled:placeholder-shown+label {
		top: 4px;
		font-size: 10px;
		transform: translateY(0);
		opacity: 1;
		left: 16px;
	}

	.global-form .input-box input[readonly][disabled][value=""]+label,
	.global-form .input-box input[readonly][value=""]+label,
	.global-form .input-box input:disabled:placeholder-shown+label {
		font-size: 10px;
	}

	.global-form .input-box input:disabled {
		color: #6d7275;
	}

	.global-form .input-box .cover {
		height: 4px;
		top: 1.25rem;
	}

	.global-form .field-error {
		font-size: 12px;
		line-height: 16px;
		margin-right: 8px;
		gap: 4px;
	}

	.global-form .field-error::before {
		gap: 16px;
		width: 24px;
		height: 24px;
	}

	.global-form .field-error+.input-box {
		margin-top: -8px;
	}

	.global-form .input-box+.field-error {
		margin-top: -20px;
		margin-bottom: 0px;
	}

	.global-form .custom-select-box:has(> label) {
		border-radius: 8px;
		border: 1px solid #0D0D0D;
		flex: 1 0 calc(25% - 24px);
	}

	.global-form .custom-select-box:has(> label) select {
		padding: 12px 16px 4px;
		border-radius: 8px;
		font-size: 14px;
		height: 48px;
	}

	.global-form .custom-select-box>label {
		left: 16px;
		font-size: 14px;
	}

	.global-form .custom-select-box:has(> label):focus-within>label,
	.global-form .custom-select-box:has(> label):has(select option:checked:not([hidden]))>label {
		top: 4px;
		font-size: 10px;
		left: 16px;
	}

	.global-form .custom-select-box:has(> label):has(select[readonly])>label,
	.global-form .custom-select-box:has(> label):has(select:disabled)>label {
		top: 4px;
		font-size: 10px;
		left: 16px;
	}

	.global-form .tooltip-container {
		padding-right: 16px;
	}

	.global-form .tooltip-container::before {
		width: 24px;
		height: 24px;
	}

	.global-form .tooltip-text {
		gap: 4px;
		width: 280px;
		min-height: 80px;
		border-radius: 8px;
		padding: 8px;
	}

	.global-form .tooltip-text::before {
		top: -5px;
		right: 22px;
		width: 12px;
		height: 6px;
	}

	.global-form .tooltip-close {
		width: 16px;
		height: 16px;
	}

	.global-form .tooltip-message {
		font-size: 14px;
		font-weight: 400;
		line-height: 20px;
	}
}

@media (max-width: 890px) {
	.global-form .text-checkbox-module .title {
		font-size: 18px;
	}

	.global-form .side-panel {
		padding: 80px 24px 0px;
		width: 100%;
		max-width: 100%;
		display: flex;
		gap: 8px;
		top: 0px;
		height: 100dvh;
		box-sizing: border-box;
	}

	.global-form .side-panel .container-terms {
		flex: 1;
		min-height: 0;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		padding-right: 12px;
		overflow-y: auto;
	}

	.global-form .side-panel .button-wrapper {
		display: flex;
		flex-direction: column;
		gap: 24px;
		padding-top: 16px;
		box-sizing: border-box;
	}

	.global-form .side-panel .container-terms * {
		max-width: 100%;
		box-sizing: border-box;
	}

	.global-form .side-panel .container-terms p,
	.global-form .side-panel .container-terms li,
	.global-form .side-panel .container-terms a,
	.global-form .side-panel .container-terms span,
	.global-form .side-panel .container-terms strong,
	.global-form .side-panel .container-terms em {
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	.global-form .side-panel .container-terms img,
	.global-form .side-panel .container-terms table,
	.global-form .side-panel .container-terms iframe,
	.global-form .side-panel .container-terms video {
		max-width: 100%;
		height: auto;
	}

	.global-form .side-panel .global-title {
		font-size: 20px;
	}

	@supports (-webkit-touch-callout: none) {
		.global-form .input-box input {
			font-size: 16px;
		}
	}
}

@media (max-width: 400px) {
	.global-form .button-container .global-button {
		min-width: 100%;
		width: 100%;
	}

	.global-form .tooltip-text {
		width: 250px;
	}
}