$red: #FF0000;
$white: #FFF;

.jbd-container {

	fieldset.boxed {
		width: 100%;
		position: relative;
		background-color: $white;
		border: 1px solid #EFEFEF;
		padding: 30px;
		margin-bottom: 15px;
		border-radius: 7px;
		box-shadow: 0px 0px 30px rgba(222, 222, 222, 0.3);

		&:first-child {
			margin-top: 0;
		}

		.package {
			background: #ededea;
			width: 100%;
		}

		p {
			margin: 10px 0 20px;
		}

		&.divider{
			p{
				margin: 10px 0 0;
			}
		}

		h2{
            font-size: 1.5rem;
        }

        h3{
            font-size: 1.3rem;
        }
	}

	.form-switch {
		margin: 0 0 10px 0;
		padding: 0;
	}

	.page-header {
		text-align: center;
		margin-bottom: 30px;

		h1 {
			font-size: 24px;
		}

		p {
			color: #92979D;
		}
	}

	.item-log{
		max-height: 400px;
		overflow: scroll;
	}

	&.jbd-edit-container {
		.chosen-container {
			font-size: 13px;
			line-height: 32px;

			.chosen-single {
				background: #fff;
				border: 1px solid #eaeaea;
				padding: 0px 5px 0 10px;
				vertical-align: top;

				&:hover {
					background: #fff;
				}

				div {
					top: 2px;

					&::before {
						line-height: 32px;
					}

					b {
						background-position: 0px 6px;
					}
				}
			}

			.chosen-drop {
				border: 1px solid #eaeaea;
				border-top: none;
			}

			a {
				height: 36px;
				line-height: 36px;
			}
		}

		joomla-tab>joomla-tab-element {
			padding: 0;
			border: none;
		}

		.business-hour-setup {
			.closed-button:hover {
				background: initial;
				cursor: default;
				color: inherit;
				box-shadow: none !important;
			}

			.closed-button:focus {
				box-shadow: none !important;
			}
		}

		.sound-details-box {
			margin-bottom: 10px;
		}

		.edit-header{
			display: grid;
			grid-template-columns: 1fr auto 1fr;
			align-items: center;
			column-gap: 16px;
			margin: 0;
			padding: 35px 0;
			font-weight: 600;

			.btn{
				padding: 10px 20px;
				border-radius: 5px;
				font-weight: 500;
				font-size: 16px;
				display: flex;
				align-items: center;
				border-width: 2px;

				.la{
					font-size: 25px;
					margin-right: 5px;
				}		
			}

			.btn-back{
				padding: 15px 20px;
			}

			.edit-page-title{
				font-size: 28px;
				font-weight: 500;
				color: #111;
			}

			a:before{
				content: '';
			}

		}

		.new-item-btn{
			background: linear-gradient(0deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), #3C98ED;
			border-radius: 8px;
			color: #3C98ED;
			padding: 12px 24px;
			font-weight: 600;
			display: inline-block;
		}
	}

	.activity-radius-container {
		display: flex;
		align-items: center;

		input {
			width: 150px !important;
			margin-right: 10px;
		}
	}

	.activity-area-container {

		.arrow-holder {
			margin-left: 30px;
			width: 90px;
		}

		.btn{
			display: flex;
			align-items: center;
			line-height: 20px;

			.la{
				font-size: 16px;
				margin-left: 3px;
			}

			&:disabled, &[disabled]{
				background-color: #cfcfcf;
				border: none;
				color: #777;
				
				.la{
					color: #777;
				}
			}
		}

		.arrow-right {
			display: inline-block;
			height: 37px;
			width: 30px;
			background: transparent url(../images/arrow_right.png) no-repeat 0 50%;
		}
	}


	.item-package-details {
		width: 100%;
	}

	form div.description,
	p.hint {
		clear: both;
		font-size: 11px;
		color: #8f9199;
	}

	.autocomplete-box {
		padding: 15px;
		background-color: #cfcfcf;
	}

	.clear {
		clear: both;
	}

	#repeat-container {
		line-height: 30px;

		input[type=checkbox],
		input[type=radio] {
			min-height: 0;
		}

		ul {
			list-style-type: none;
			margin: 0 !important;
			padding: 0;
		}

		label {
			float: none;
			display: inline !important;

		}
	}

	.jbd-sections {

		

	}

	.description-counter {
		text-align: right;
		margin-top: 5px;

		label {
			display: inline;
			font-weight: normal;
		}
	}

	#descriptionCounterShort,
	.description-counter input {
		display: inline !important;
		float: none;
		padding: 0 4px;
		width: 50px !important;
	}

	.picture-table {
		width: 100%;
	}

	.picture-preview-settings {
		background-color: #EAEAEA;
		box-shadow: 0 2px 5px #969696;
		padding: 2px;
		float: left;
	}

	.listing-edit-header {
		position: relative;
		margin-top: 30px;

		.cover-container {
			width: 100%;
			min-height: 320px;
			background-color: #3a3b45;

			.dir-overlay {
				background-color: #232323;
				height: 100%;
				width: 100%;
				position: absolute;
				bottom: 0px;
				opacity: .5;
				z-index: 5;
			}
		}

		.logo-container {
			position: absolute;
			z-index: 10;
			bottom: 60px;
			left: 30px;
			display: flex;
			align-items: center;

			.logo-image {
				display: flex;
				align-items: center;
				justify-content: center;
				background-color: #fff;
				width: 150px;
				height: 150px;
				border-radius: 50%;
				overflow: hidden;

				img {
					margin: 0;
					background-color: #fff;
					padding: 0;
					display: inline-block;
					max-height: 96px;
					max-width: 110px;
					height: auto;
				}

			}

			.details-container {
				color: #fff;
				margin-left: 15px;

				#listing-type {
					font-size: 17px;
					padding: 0 0 15px 0;
				}

				#listing-title {
					font-size: 26px;
					margin-bottom: 7px;
				}

				#listing-slogan {
					font-size: 18px;
				}

			}
		}
	}

	.jupload {
		.jupload-footer {
			display: flex;
			justify-content: space-between !important;
			margin-top: 0;
		}
	}

	#cover-picture-preview img {
		width: 100%;
	}

	#picture-preview img {
		margin: 0;
		padding: 0;
	}

	#ad-picture-preview img {
		margin: 0;
		padding: 0;
		width: 200px;
	}

	.services img {
		margin: 0;
		padding: 0;
	}

	.category-image-preview {
		float: right;
		margin-left: 15px;
	}

	.validation-error {
		border: 2px solid $red;
		background-color: $white;
		color: #333;
		padding: 20px 30px;
		display: flex;
		font-size: 16px;
		align-items: center;
		border-radius: 10px;
		margin: 20px 0;

		.la {
			color: $red;
			width: auto;
			margin-right: 10px;
			font-size: 22px;
		}
	}

	.iconpicker .la {
		color: #555 !important;
	}

	.iconpicker-popover {
		opacity: 1;
	}

	.input-group.iconpicker-container {
		width: auto;
	}

	/*---steps-----*/

	.process-steps {
		.process-step {
			float: left;
			line-height: 30px;
			margin-bottom: 10px;
		}

		.step-number {
			font-size: 17px;
			color: $white;
			text-shadow: 1px 1px $white, -1px -1px #444;
			padding: 0px 0 0 10px;
		}

		.active-step {
			margin-right: 0px;
		}

		.step-divider {
			float: left;
			font-size: 25px;
			margin: 0 3px;
		}

		.steps-info {
			float: right;
			line-height: 30px;
		}
	}

	.edit-container {
		clear: both;
	}

	.process-tabs {
		background-color: #fff;
		display: flex;
		margin-bottom: 20px;
		align-items: center;
		border-radius: 10px;
		padding: 6px;
		box-shadow: 0px 0px 30px rgba(222, 222, 222, 0.3);

		.process-tab {
			display: flex;
			align-items: center;
			justify-content: center;
			min-height: 45px;
			color: #5c5e61;
			background-color: $white;
			transition: all ease .3s;
			cursor: pointer;
			border-radius: 8px;
			padding: 13px 39px ;
			margin: 0 8px;
			gap: 8px;
			
		
			i {
				transition: all ease .3s;
			}

			span {
				font-size: 14px;
				margin-left: 5px;
			}

			&.completed {
				background-color: #31CF71;
				color: $white;
				cursor: default;

				i {
					color: #fff;
				}
			}

			&.not-completed {
				cursor: default;
				opacity: .7;
			}

			&.active {
				cursor: default;
				color: $white;
				background-color: #23B26B;

				.process-tab-content{
					i {
						color: #fff;
					}
				}
			}
		}
		
		.process-tab-content {
			display: flex;
			align-items: center;
		}
	}

	@media screen and (max-width: 767px) {
		.process-tabs{
			flex-wrap: wrap;
		
			.process-tab{
				padding: 12px;
				margin: 0;
			}
		}

	}

	.edit-tab-container{
		background: #FFFFFF;
		box-shadow: 0px 0px 30px rgba(222, 222, 222, 0.3);
		padding: 30px;
		border-radius: 10px;
		max-width: 800px;
		margin: 0 auto;

		.button-row{
			justify-content: right;

			.btn{
				padding: 10px 15px;
			}
		}
	}

	#jbd-sections{
		.section-header{
			min-height: 52px;
			padding: 20px 35px;

			display: flex;
			align-items: center;
			justify-content: space-between;
			line-height: 1.5;
			cursor: pointer;

			.section-title{
				font-size: 16px;
				color: #1a1a1a;
			}

			.section-title-description{
				font-size: 14px;
				color: #737373;
			}	
		}

		.section-footer{
			display: none;
		}

		.section-toolbar{
			display: none;
		}

		.edit-tab{
			display: none;
		}

		.process-tabs {
			background-color: transparent;
			flex-direction: column;
			align-items: flex-start;
			box-shadow: none;

			.process-tab {
				margin: 0 0 20px 0;
				border-radius: 10px;
				border: 1px solid #666a73;
				background-color: #fff;
				display:block;
				width: 100%;

				&.active {
					color: inherit;
					background-color: none;
					
					.section-header{
					}

					.edit-tab{
						display: block !important;
					}

					.section-footer{
						display: block !important;
					}

					.section-toolbar{
						display: block !important;
					}
				}
			}
		}

		.section-footer{
			padding: 20px 35px;

			.section-toolbar{
				text-align: right;
			}
		}

		.edit-section{
			padding: 30px 35px 20px;
			border-bottom: 1px solid #cfcfcf;	

			fieldset{
				margin-bottom: 10px;
			}
		}

		.edit-section-limit{
			max-width: 800px;
		}

		.additional-options{
			font-size: 16px;
			font-weight: 600;
			margin: 32px 0 12px;
		}

		.btn-action{
			font-weight: 500;
			line-height: 22px;
			min-height: 32px;
			padding: 8px 14px;
			background: #67727f;
			border: none;
			border-radius: 40px;
			position: relative;
			display: inline-flex;
			vertical-align: middle;
			justify-content: center;
			align-items: center;
			color: #fff;
		}

		.btn-link{
			border-radius: 40px;
		}
	}

	.simple-process-tabs{
		display: flex;
		justify-content: center;
		margin-bottom: 30px;
		flex-wrap: wrap;

		.process-tab {
			display: flex;
			align-items: center;
			justify-content: center;
			color: #222;
			transition: all ease .3s;
			cursor: default;
			padding: 12px 10px;
			position: relative;
			margin-right: 90px;
			border-radius: 5px;
			font-size: 16px;

			&.completed .tab-counter{
                background-color: #23B26B;
                color: #fff;
                cursor: default;
            }

			&.not-completed {
				cursor: default;
			}

			.tab-counter {
				background: #FFFFFF;
				border: 1px solid #D6D6D6;
				width: 28px;
				height: 28px;
				border-radius: 50%;
				color: #808080;
				margin-right: 8px;
				display: flex;
				align-items: center;
				justify-content: center;
				font-size: 14px; // Optional: adjust to fit well inside the circle
			}

			&.active {
				cursor: default;
				
				.tab-counter{
					background: #2e3640;
					color: #eee;
				}
			}

			&::after{
				content: " ";
				display: block;
				position: absolute;
				height: 1px;
				background: #99A1A5;
				width: 40px;
				right: -65px;
				top: calc(50% - 2px);
			}

			&:last-child{
				margin-right: 0px;

				&::after{
					width: 0px;
				}
			}

			.process-tab-content {
				display: flex;
				align-items: center;
			}
		}
	}

	@media screen and (max-width: 767px) {
		.simple-process-tabs{

			.process-tab{
				margin-right: 10px;
				margin-bottom: 10px;

				&::after{
					width: 10px;
					right: -9px;
				}
			}
		}
	}

	.simple-edit-form{

	}

	.form-divider{
		height: 1px;
		width: 100%;
		background-color:#E7E7E7;
		margin: 20px 0;
		display: inline-block;
	}

	.field-status{
		font-size: 13px;
		font-weight: 500;
	}

	.minicolors,
	.minicolors-focus {
		z-index: 1;
	}

	.toggle-dir-btn {
		--width: 85px;
		--height: calc(var(--width) / 4);

		position: relative;
		display: inline-block;
		width: var(--width);
		height: var(--height);
		box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3);
		border-radius: var(--height);
		cursor: pointer;
	}

	.toggle-dir-btn input {
		display: none;
	}

	.toggle-dir-btn .slider {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		border-radius: var(--height);
		background-color: #B3B3B3;
		transition: all 0.4s ease-in-out;
	}

	.toggle-dir-btn .slider::before {
		content: "";
		position: absolute;
		top: 4px;
		left: 3px;
		width: calc(var(--height) / 1.5);
		height: calc(var(--height) / 1.5);
		border-radius: calc(var(--height) / 2);
		background-color: #fff;
		box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3);
		transition: all 0.4s ease-in-out;
	}

	.toggle-dir-btn input:checked+.slider {
		background-color: #2196F3;
	}

	.toggle-dir-btn input:checked+.slider::before {
		transform: translateX(calc(var(--width) - var(--height)));
	}

	.toggle-dir-btn .labels {
		position: absolute;
		top: 8px;
		left: 0;
		width: 100%;
		height: 100%;
		font-size: 12px;
		transition: all 0.4s ease-in-out;
	}

	.toggle-dir-btn .labels::after {
		content: attr(data-off);
		position: absolute;
		right: 15px;
		color: #fff;
		opacity: 1;
		transition: all 0.4s ease-in-out;
		top: -6px;
	}

	.toggle-dir-btn .labels::before {
		content: attr(data-on);
		position: absolute;
		left: 15px;
		color: #ffffff;
		opacity: 0;
		text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.4);
		transition: all 0.4s ease-in-out;
		top: -6px;
	}

	.toggle-dir-btn input:checked~.labels::after {
		opacity: 0;
	}

	.toggle-dir-btn input:checked~.labels::before {
		opacity: 1;
	}

}

@media screen and (max-width: 767px) {
	#process-tabs .process-tab {
		min-width: auto;

		i {
			padding: 10px;
		}

		span {
			display: none;
		}
	}
}