/* Design */
:root {
	--colorBlue: #083751;
	--colorGold: #ab860f;

	--colorBlack: #000000;
	--colorGreyDark: #7d7d7d;
	--colorGrey: #c4c4c4;
	--colorGreyLight: #f2f2f2;
	--colorGreyLighter: #f9f9f9;
	--colorWhite: #ffffff;
}

/* Throughout the ENTIRE document */

body {
	margin: 0;
}

.form {
	padding-top: 1rem;
	padding-left: 2rem;
	padding-right: 2rem;
}

/* ################################################################################################ */
/* STEPS ########################################################################################## */
/* ################################################################################################ */

.step.active {
	display: block;
}

.step {
	display: none;
}
.double-div input {
	height: 15px;
}
.double-div {
	display: flex;
	align-items: flex-end;
}
.column-label {
	display: flex;
	font-size: 12px;
	flex-direction: column;
}

.column-label button {
	top: 63% !important;
}
.error-sec {
	display: none;
}

/* ################################################################################################ */
/* STEP TEMPLATE ################################################################################## */
/* ################################################################################################ */

.corporate-block h1 {
	width: 100%;
}
.corporate-block {
	display: none;
}
.corporate-block.active {
	display: flex;
	flex-wrap: wrap;
}
.step-module-layout {
	background-color: var(--colorGreyLight);
	width: 42rem;
	height: 35rem; /* Set fixed height */
	margin-left: auto;
	margin-right: auto;
	padding: 1rem;
	overflow: auto; /* Add scrollbar if content overflows */
	box-sizing: border-box; /* Ensure padding doesn't affect total size */
}

.step-header-info {
	margin-left: auto;
	margin-right: auto;
	color: var(--colorWhite);
	text-align: center;
	background-color: var(--colorBlue);
	width: 40rem;
	padding: 1px;
	font-size: 12px;
}

.done-header-info-box {
	margin-left: auto;
	margin-right: auto;
	color: var(--colorWhite);
	text-align: center;
	background-color: var(--colorGold);
	width: 40rem;
	padding: 1px;
	font-size: 12px;
}

.invest-types {
	display: flex;
	gap: 1.4rem;
	align-items: center;
	position: relative;
}
.invest-types input {
	margin: 0;
}

.invest-type .i-field button {
	height: 30px;
	right: -23px;
}

.invest-type .i-field div {
	left: 23px;
	min-width: 200px;
	z-index: 10;
}

.pep {
	position: relative;
	margin-bottom: 10px;
}
.pep .i-field button {
	height: 30px;
	right: -29px;
}
.pep .i-field div {
	left: 37px;
	min-width: 200px;
	z-index: 10;
}

.reg-country {
	position: relative;
	margin-bottom: 10px;
	display: flex;
}
.reg-country .i-field button {
	height: 30px;
	right: -29px;
}
.reg-country .i-field div {
	left: 37px;
	min-width: 200px;
	z-index: 10;
}

.reg-country-apl {
	position: relative;
	margin-bottom: 10px;
	display: flex;
	margin-top: 10px;
}
.reg-country-apl .i-field button {
	height: 30px;
	right: -29px;
}
.reg-country-apl .i-field div {
	right: 0;
	left: unset;
	min-width: 200px;
	z-index: 10;
}

.todays-date {
	position: relative;
	margin-bottom: 10px;
	display: flex;
}
.todays-date .i-field button {
	height: 30px;
	right: -8px;
}
.todays-date .i-field div {
	left: 23px;
	min-width: 200px;
	z-index: 10;
}

.title-trade {
	margin: 0;
}
.invest-type {
	margin-right: 1rem;
	display: flex;
	gap: 4px;
	align-items: center;
}

.boolean-intro {
	margin-top: -1rem;
	padding-bottom: 3rem;
}

.boolean-intro-option {
	margin-bottom: -1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.boolean-intro-option.activity {
	margin-left: auto;
	width: fit-content;
	margin-top: 1rem;
}
.boolean-intro-option div {
	display: flex;
	align-items: center;
}

.boolean-intro-option input {
	margin-right: 2rem;
	margin-top: 0;
}

/* ################################################################################################ */
/* STEP 0: INDEX ################################################################################## */
/* ################################################################################################ */

.todays-date {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.todays-date input {
	border: none;
	background-color: rgb(230, 230, 230);
	padding: 5px;
	margin-top: 5px;
	margin-bottom: 5px;
	margin-right: 5px;
	width: 9rem;
	/* height: 1rem; */
}

.header-section {
	margin-top: 3rem;
	text-align: center;
}

.header-section-header h1 {
	margin-top: 0;
	font-size: 35px;
	color: var(--colorBlue);
	margin-bottom: 1rem;
	font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.header-section-header p {
	font-size: 15px;
	color: var(--colorGold);
	margin-bottom: -1.5rem;
}

.header-section-header img {
	width: 10%;
}

.header-info-box {
	margin-left: auto;
	margin-right: auto;
	color: var(--colorWhite);
	text-align: center;
	background-color: var(--colorBlue);
	width: 40rem;
	padding: 1px;
	font-size: 12px;
	display: flex;
	justify-content: center;
}

.other-input-text {
	border: none;
	background-color: rgb(230, 230, 230);
	padding: 5px;
	margin-top: 5px;
	margin-bottom: 5px;
	margin-right: 5px;
	width: 9rem;
}

.invest-types {
	display: flex;
	gap: 1.4rem;
	align-items: center;
}

.invest-type {
	margin-right: 1rem;
}

.boolean-intro {
	margin-top: -1rem;
	padding-bottom: 3rem;
}

.boolean-intro-option {
	margin-bottom: -1rem;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
}

.boolean-intro-option input {
	margin-right: 2rem;
}

.welcome-module {
	background-color: var(--colorGreyLight);
	width: 40rem;
	margin-left: auto;
	margin-right: auto;
	padding: 1rem;
}

/* ################################################################################################ */
/* STEP 1: PERSONAL INFORMATIONS ################################################################################## */
/* ################################################################################################ */

.secApplicant {
	display: none;
}

.secAppHeader {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.secAppHeader h1 {
	font-size: 18px;
}

.secAppHeader button {
	border: none;
	background-color: var(--colorGreyLighter);
	height: 1.5rem;
	width: 1.5rem;
	border-radius: 5px;
}

.input-text {
	border: none;
	background-color: rgb(230, 230, 230);
	padding: 5px;
	margin-top: 5px;
	margin-bottom: 5px;
	margin-right: 5px;
	width: 17.5rem;
}

/* ################################################################################################ */
/* STEP 2: BANK DETAILS ################################################################################## */
/* ################################################################################################ */

.bank-input-text {
	border: none;
	background-color: rgb(230, 230, 230);
	padding: 5px;
	margin-top: 5px;
	margin-bottom: 5px;
	margin-right: 5px;
	width: 38rem;
}

.short-bank-input-text {
	border: none;
	background-color: rgb(230, 230, 230);
	padding: 5px;
	margin-top: 5px;
	margin-bottom: 5px;
	margin-right: 5px;
	width: 15rem;
}

/* ################################################################################################ */
/* STEP 3: – – – ################################################################################## */
/* ################################################################################################ */

.invest-currencies {
	display: flex;
	gap: 1rem;
}
.invest-currency-total {
	flex-direction: column;
	display: flex;
}

.invest-currency {
	margin-right: 1rem;
}

.invest-amount-input-text {
	border: none;
	background-color: rgb(230, 230, 230);
	padding: 5px;
	margin-top: 5px;
	margin-bottom: 5px;
	margin-right: 5px;
	width: 38rem;
}

.short-invest-amount-input-text {
	border: none;
	background-color: rgb(230, 230, 230);
	padding: 5px;
	margin-top: 5px;
	margin-bottom: 5px;
	margin-right: 5px;
	width: 15rem;
}

/* ################################################################################################ */
/* STEP 4: – – – ################################################################################## */
/* ################################################################################################ */

.fund-sources {
	/* display: grid;
    grid-template-columns: 5.5rem 5.5rem 9rem 11rem 9rem; */
}

.fund-source {
	display: grid;
	grid-template-columns: 1fr 2fr;
	align-items: top;
}

.additional-assets {
	/* display: grid;
    grid-template-columns: 5.5rem 5.5rem 9rem 11rem 9rem; */
}

.additional-asset {
	display: grid;
	grid-template-columns: 1fr 2fr;
	align-items: center;
	margin-bottom: 1rem;
}

.short-fund-source-input-text {
	border: none;
	background-color: rgb(230, 230, 230);
	padding: 5px;
	margin-top: 5px;
	margin-bottom: 5px;
	margin-right: 5px;
	width: 90%;
}

/* ################################################################################################ */
/* PREVIOUS / NEXT BTN ############################################################################ */
/* ################################################################################################ */

.steps-mover {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-left: auto;
	margin-right: auto;
	gap: 1rem;
}

.prev-btn {
	text-align: center;
}

.prev-btn button {
	margin-top: 2rem;
	background-color: var(--colorGreyDark);
	color: var(--colorWhite);
	width: 10rem;
	border: none;
	padding: 10px;
	border-radius: 10px;
}

.next-btn {
	text-align: center;
}

.next-btn button {
	margin-top: 2rem;
	background-color: var(--colorGold);
	color: var(--colorWhite);
	width: 10rem;
	border: none;
	padding: 10px;
	border-radius: 10px;
}

.success-btn {
	text-align: center;
}

.success-btn button {
	margin-top: 2rem;
	background-color: var(--colorBlue);
	color: var(--colorWhite);
	width: 10rem;
	border: none;
	padding: 10px;
	border-radius: 10px;
}

/* ################################################################################################ */
/* SUBMIT BTN ##################################################################################### */
/* ################################################################################################ */

.submit-btn {
	text-align: center;
}

.submit-btn button {
	background-color: var(--colorGold);
	color: var(--colorWhite);
	width: 10rem;
	border: none;
	padding: 10px;
	border-radius: 10px;
}

/* ################################################################################################ */
/* STEPS TRACKER ################################################################################## */
/* ################################################################################################ */

/* STEPS TRACKER */
.tracker {
	height: 20vh;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 40px;
	max-width: 650px;
	width: 100%;
}

.container .steps {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	position: relative;
}

.steps .circle {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	width: 40px;
	font-size: 20px;
	font-weight: 500;
	border-radius: 50%;
	background-color: #ffffff;
	border: 4px solid var(--colorGreyLight);
	color: var(--colorGrey);
}

.steps .circle.active {
	border-color: var(--colorGold); /* Highlight border */
	color: var(--colorGold); /* Highlight text color */
}

.steps .progress-bar {
	position: absolute;
	height: 4px;
	width: 100%;
	background-color: var(--colorGreyLight); /* Grey background */
	z-index: -1;
}

.progress-bar .indicator {
	position: absolute;
	margin-left: -20rem;
	width: 0px;
	height: 100%;
	background: var(--colorGold);
	transition: width 0.3s ease-in-out;
}

.container .buttons {
	display: flex;
	gap: 20px;
}

.buttons button {
	padding: 8px 25px;
	background-color: var(--colorBlue);
	border: none;
	border-radius: 8px;
	color: var(--colorGreyLight);
	font-size: 16px;
	font-weight: 400;
	cursor: pointer;
}

.buttons button:hover {
	background-color: var(--colorGold);
}

.buttons button:disabled {
	background-color: var(--colorBlue);
	opacity: 50%;
	cursor: not-allowed;
}

.steps-container {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.progress-bar .indicator-2 {
	position: absolute;
	height: 100%;
	width: 20%;
	background: var(--colorGold);
}

.progress-bar .indicator-3 {
	position: absolute;
	height: 100%;
	width: 60%;
	background: var(--colorGold);
}

.documents {
	display: none;
}
.documents.active {
	display: unset;
}

.validation-notifier {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
	padding: 5px 10px;
	border-radius: 2px;
	font-size: 14px;
	margin-left: 10px; /* Adjust to align horizontally */
	display: inline-block; /* Keep it inline with the heading */
	vertical-align: top; /* Align to the top of the heading */
	position: relative;
	white-space: nowrap; /* Prevent the text from wrapping */
}
.i-field,
.i-title {
	display: flex;
	position: relative;
	width: fit-content;
}
.i-field div,
.i-title div {
	z-index: 10;
	position: absolute;
	left: 0;
	padding: 10px;
	background-color: #675b5b;
	border-radius: 10px;
	color: white;
	top: 50%;
	transform: translateY(-50%);
	max-width: 83%;
	display: none;
	font-size: 15px;
	min-width: 250px;
}

.i-title.right div {
	left: 29px;
	right: unset;
}

.i-field button:hover + div,
.i-title button:hover + div {
	display: flex;
}
.i-field button,
.i-title button {
	width: 30px;
	height: 100%;
	padding: 0;
	margin: 0;
	background-color: transparent;
	border: none;
	outline: none;
	position: absolute;
	right: 3px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
}

.i-title button {
	right: -30px;
}
.i-title div {
	right: -295%;
	left: unset;
	max-width: 300px;
}
.i-field svg,
.i-title svg {
	width: 15px;
	height: 100%;
}

.i-big-title div {
	right: 0;
	top: 92px;
}
input.invalid {
	border: 2px solid #721c24; /* Highlight invalid fields */
}
.non-finance {
	display: none;
}
.non-finance.action {
	display: flex;
}
.wrapper-popup .popop button,
.emailCheck .popop button,
.wrapper-popup-required .popop button {
	border: none;
	width: 50%;
	margin: 0 auto;
	cursor: pointer;
}
.wrapper-popup .popop,
.emailCheck .popop,
.wrapper-popup-required .popop {
	display: flex;
	width: 300px;
	background: white;
	flex-direction: column;
	padding: 0 20px 20px 20px;
}
.wrapper-popup.active,
.emailCheck.active,
.wrapper-popup-required.active {
	display: flex;
}
.wrapper-popup,
.emailCheck,
.wrapper-popup-required {
	display: none;
	position: fixed;
	width: 100%;
	height: 100%;
	background: #0000007a;
	top: 0;
	z-index: 20;
	justify-content: center;
	align-items: center;
}

.termination__output {
	padding: 0 40px 40px 40px;

	@media (max-width: 500px) {
		padding: 0 20px 40px 20px;
	}
}
.termination__output__sign #sign-output.error {
	border: 1px solid #df443b;
}
.termination__output__sign #sign-output::after {
	content: '';
	width: 24px;
	height: 24px;
	background: url('../icons/error.svg') center/cover no-repeat;
	top: 50%;
	right: 50%;
	transform: translate(50%, -50%);
	position: absolute;
	display: none;
}
.termination__output__sign
	#sign-output::hover
	~ .termination__output__sign__hidden {
	opacity: 1;
	pointer-events: auto;
}
.termination__output__sign #sign-input {
	height: 48px;
	padding: 0 16px;
	font-weight: 600;
	font-size: $textSize;
	color: #1a1a1a;
	line-height: 120%;
}
.termination__output__sign #sign-output img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.termination__output__sign #sign-output h2 {
	font-weight: 400;
	font-size: 5.2em;
	line-height: 100%;
	color: #145394;
	margin: 0;
	padding: 20px;
	max-width: calc(100% - 40px);
}
.termination__output__sign #sign-output {
	height: auto;
	min-height: 108px;
	margin-bottom: 20px;
	cursor: pointer;
	overflow: hidden;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}
.termination__output__sign #sign-output,
#sign-input {
	border: 1px solid #1a1a1a;
	border-radius: 4px;
	width: 100%;
}
.termination__output__sign {
	display: flex;
	flex-direction: column;
	position: relative;
	width: 400px;

	@media (max-width: 540px) {
		width: 100%;
	}
}

.termination__output__sign__hidden #sign-pad {
	margin-bottom: 18px;
}
.termination__output__sign__hidden #sign-download input[type='file'] {
	display: none;
}
.termination__output__sign__hidden #sign-download label {
	display: inline-block;
	cursor: pointer;
}
.termination__output__sign__hidden:before {
	content: '';
	position: absolute;
	border: 6px dashed #1a1a1a;
	top: -5px;
	bottom: -5px;
	left: -5px;
	right: -5px;
}
.termination__output__sign__hidden #sign-pad,
.termination__output__sign__hidden #sign-download {
	z-index: 1;
	background: #ffffff;
	border: 2px solid #2254f5;
	border-radius: 4px;
	height: 54px;
	width: 237px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 1.8rem;
	line-height: 120%;
	color: #2254f5;
	transition: 0.3s linear;
	cursor: pointer;
}
.termination__output__sign__hidden:hover {
	opacity: 1;
	pointer-events: auto;
}
.termination__output__sign__hidden {
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	position: absolute;
	opacity: 0;
	pointer-events: none;
	border-radius: 4px;
	background: #f7f7f7;
	overflow: hidden;
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	transition: 0.1s linear;

	&:hover {
	}

	#sign-pad,
	#sign-download {
	}

	#sign-download {
		input[type='file'] {
			display: none;
		}

		label {
			display: inline-block;
			cursor: pointer;
		}

		&:hover {
			&:before {
				background: url('../icons/sign_download_white.svg') center / contain
					no-repeat;
			}
		}

		&:before {
			content: '';
			background: url('../icons/sign_download.svg') center / contain no-repeat;
			width: 24px;
			height: 24px;
			margin-right: 12px;
			transition: 0.3s linear;
		}
	}

	&:before {
		content: '';
		position: absolute;
		border: 6px dashed #1a1a1a;
		top: -5px;
		bottom: -5px;
		left: -5px;
		right: -5px;
	}
}
