/* -------------------------------------------------------- */
/* GLOBAL                                                   */
/* -------------------------------------------------------- */

body {
	background: #f0f2f5;
}

input,
select,
textarea {
	font-size: 16px !important;
}

/* Header */
.app-header {
	background: #1E2938;
	padding: 20px 0;
}

.app-header img {
	max-height: 100px;
	max-width: 130px;
	filter: brightness(0) invert(1);
}

.app-header-title {
	font-size: 1.4rem;
	font-weight: 600;
	color: #fff;
	text-align: right;
}

.app-header-subtitle {
	font-size: 0.9rem;
	opacity: 0.9;
	color: #fff;
	text-align: right;
}

.app-footer {
	font-size:0.9rem;
}

.btn-wide {
	padding-left: 2rem;
	padding-right: 2rem;
}

.dropdown .dropdown-item {
	white-space: normal;
	line-height: 1.2rem;
	padding: 8px 12px;
	border-left: 3px solid transparent;
}

.dropdown .dropdown-item:hover {
	border-left: 3px solid #EAC43D;
	background: #F8F8F8;
}

.pobranch-list label:hover {
	cursor: pointer;
	border-left: 3px solid #EAC43D;
}

.is-invalid .form-selectgroup-label {
	border: 1px solid rgb(214, 57, 57);
}

@media (max-width: 600px) {
	.account-text {
		display: none !important;
	}
	.account-icon {
		display: inline-block !important;
	}
	.account-btn {
		padding-left: 0.75rem;
		padding-right: 0.75rem;
	}
}

/* Application wrapper */
.application-wrapper {
	max-width: 900px;
	margin: 40px auto 0;
	background: #ffffff;
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
	border-top: 4px solid #EAC43D;
}
.application-wrapper.smaller {
	max-width:600px;
}

.steps.steps-counter .step-item::before {
	width: 34px;
	height: 34px;
	line-height: 34px;
	font-size: 1rem;
	top: 25%;
	transform: translateY(-50%);
}

.steps.steps-counter .step-item::after {
	top: 16px;
}

.steps.steps-counter .step-item {
	padding-left: 2.2rem;
	padding-top: 40px;
}

/* Steps fade overlay */
.steps-scroll {
	position: relative;
}

/* Make steps a horizontal scroller */
.steps {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto !important;
	overflow-y: hidden;
	white-space: nowrap;
	padding: 10px 0;
	gap: 2rem;
	scrollbar-width: none;
}

.steps::-webkit-scrollbar {
	display: none;
}

.steps .step-item {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	white-space: nowrap;
	padding: 0 !important;
	min-width: 90px;
	font-size: 0.85rem;
	color: #666;
	text-align: center;
}

.steps .step-item.active {
	font-weight: 600;
	color: #000;
}

/* Circle repositioning */
.steps.steps-counter .step-item::before {
	position: relative;
	left: 0;
	top: 0;
	transform: none;
	margin-bottom: 6px;
}

/* Mobile connector line */
.steps.steps-counter .step-item::after {
	left: 60%;
	top: 18px;
	width: 120%;
}

/* Remove final connector */
.steps .step-item:last-child::after {
	display: none !important;
}

.step-content {
	display: none;
}

footer .cbs {
	display: inline-block;
	margin: 15px auto;
	height: 25px;
}

/* FORM TWEAKS */
.field-context {
	font-size:0.85rem;
}
/* Hide number arrows in browsers */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
input[type=number] {
	-moz-appearance: textfield;
}

/* Custom Dropdown */
.custom_dropdown .dropdown-label {
	font-weight: normal;
	font-size: 16px;

	max-width: calc(100% - 15px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}
.custom_dropdown .btn-selectlike .d-flex {
	min-width: 0;
}
.custom_dropdown .btn-selectlike {
	background-color: #fff;
	border-color: #ced4da;
	color: #212529;
}
.custom_dropdown .btn-selectlike:hover {
	background-color: #fff;
	border-color: #adb5bd;
	color: #212529;
}
.custom_dropdown .btn-selectlike:focus,
.custom_dropdown .btn-selectlike:active,
.custom_dropdown .btn-selectlike.show {
	background-color: #fff;
	border-color: #86b7fe;
	color: #212529;
	box-shadow: 0 0 0 0.25rem #CCD7EA;
}
.custom_dropdown .btn-selectlike:active {
	transform: none;
}
.custom_dropdown .dropdown-caret {
	flex: 0 0 auto;
	margin-left: .5rem;
}

/* Strength bar styling */
#password-strength-box {
	padding-top: 10px;
}
.password-strength-bar {
	gap: 4px;
}

.password-strength-bar .segment {
	flex: 1;
	height: 6px;
	border-radius: 3px;
	background: #e9ecef;
	transition: background 0.25s;
}

.password-strength-bar .segment.active {
	background: #2f9e44;
}

.password-strength-bar .segment.average {
	background: #f59f00;
}

.password-strength-bar .segment.weak {
	background: #d63939;
}

/* Rules fade out instead of turning green */
#password-rules .rule {
	color: #d63939;
	transition: opacity 0.3s;
}

#password-rules .rule.valid {
	opacity: 0;
	height: 0;
	margin: 0;
	padding: 0;
	display: none;
}

.input-group.is-invalid .form-control {
	border-color: #d63939;
}

.input-group.is-invalid .input-group-text {
	border-color: #d63939;
}

/* LOADING SPINNER */
.wrapper-loading {
	text-align: center;
	display: none;
}
.wrapper-loading .spinner {
	display:inline-block;
	background: #086954;
	width: 60px;
	animation: spin 2s linear infinite;
}
.wrapper-loading .spinner img {
	width: 101%;
	max-width: 101% !important;
}
.wrapper-loading p {
	padding-top: 15px;
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

/* GOV-STYLE PANEL */
.gov-panel {
	background: #f3f2f1;
	border-left: 6px solid #1d70b8;
	padding: 20px;
	border-radius: 4px;
}
.gov-panel.error {
	border-left: 6px solid #d4351c;
}

.gov-panel-title {
	margin: 0 0 10px 0;
	font-size: 1.25rem;
	font-weight: 600;
}

.gov-panel-body {
	margin: 0;
	color: #333;
}

.gov-panel-body ol li {
	margin-bottom: 0.6rem;
	line-height: 1.3;
}

.info-hide.hidden {
	display: none;
}

.previous-address-message {
	display: none;
}

.addr-spinner {
	position: absolute;
	right: 15px;
	top: 53%;
	transform: translateY(-50%);
	display: none;
}

/* TASK LIST */
.task-list {
	list-style: none;
	padding: 0;
	margin: 0;
	border-top: 1px solid #d8d8d8;
}

.task-list li {
	display: flex;
	justify-content: space-between;
	padding: 14px 0;
	border-bottom: 1px solid #d8d8d8;
	font-size: 1rem;
	align-items: center;
}

.task-status {
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 0.85rem;
}

.task-status.incomplete {
	background: #d0d7e0;
	color: #2c3e50;
}

.task-status.complete {
	background: #c7e7c1;
	color: #1b5e0a;
}

/* GOV error summary box */
.gov-error-summary {
	background: #f3f2f1;
	border-left: 6px solid #d4351c;
	padding: 20px;
	border-radius: 4px;
	margin-bottom: 20px;
	display: none;
}

.gov-error-summary h3 {
	margin: 0 0 10px 0;
	font-size: 1.25rem;
	font-weight: 600;
	color: #0b0c0c;
}

.gov-error-summary ul {
	margin: 0;
	padding-left: 20px;
}

.gov-error-summary li {
	color: #d4351c;
	margin-bottom: 5px;
	font-size: 0.95rem;
}

.review_application [data-gotostep]:hover {
	cursor: pointer;
}
.review_application [data-gotostep]:hover .col {
	padding-left: 10px;
	margin-left: 10px;
	border-left: 3px solid #EAC43D;
}

.ibv_country_responsive {
	max-width: 200px;
}

/* -------------------------------------------------------- */
/* TABLET                                                  */
/* -------------------------------------------------------- */

@media (max-width: 992px) {
	.application-wrapper {
		margin: 0;
		border-radius: 0;
		max-width: 100% !important;
		padding: 20px;
		box-shadow: none;
	}
}

@media (max-width: 850px) {
	.steps-scroll::after {
		content: "";
		position: absolute;
		top: 0;
		right: 0;
		width: 20px;
		height: 100%;
		pointer-events: none;
		background: linear-gradient(to left, white 60%, rgba(255, 255, 255, 0));
		z-index: 10;
	}
	.steps-scroll::before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		width: 20px;
		height: 100%;
		pointer-events: none;
		background: linear-gradient(to right, white 60%, rgba(255, 255, 255, 0));
		z-index: 10;
	}	
	/* Extra right spacing for last step */
	.steps .step-item:last-child {
		margin-right: 20px;
	}
}
@media (max-width: 1200px) {
	.app-header .container-xl {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}
}

/* -------------------------------------------------------- */
/* MOBILE                                                   */
/* -------------------------------------------------------- */

@media (max-width: 768px) {

	/* Header resize */
	.app-header {
		padding: 15px 0;
	}

	.app-header img {
		max-height: 80px;
	}
	
	.w-mobile-100 {
		width: 100% !important;
	}
	
	.step-content .d-flex.justify-content-between > .btn-prev-step {
		width: 25% !important;
	}
	
	.step-content .d-flex.justify-content-between > .btn-next-step {
		width: 65% !important;
	}
	
	.ibv_country_responsive {
		max-width: none;
		flex-basis: 100%;
		width: 100%;
		margin-left: 0 !important;
		margin-top: .5rem;
	}
	#ibv-selected-documents .avatar {
		display: none;
	}

	
}