/* General styles for the form */
#tooted-multistep-form {
    font-family: Arial, sans-serif;
    max-width: 600px;
    margin: 0 auto;
}

/* Category tabs container */
#tooted-form .categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two equal columns */
    gap: 10px; /* Space between items */
    padding-top: 16px;
    padding-bottom: 16px;
}
@media (max-width: 768px) { /* Adjust the breakpoint as needed */
    #tooted-form .categories {
        grid-template-columns: 1fr;
    }
}

#tooted-form  .category-tab{
    margin-bottom: 0px;

}
/* Individual tab styles */
#tooted-form  .category-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    width: calc(95% - 5px); /* Two columns with a gap */
    box-shadow: rgba(216, 216, 216, 0.5) 2px 2px 12px 2px;
    background-color: rgb(255, 255, 255);
    border:1px solid rgb(218, 218, 218);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#tooted-form  .category-tab:hover {
        box-shadow: rgba(216, 216, 216, 0.7) -3px -3px 12px 2px;
}


#tooted-form  .checked{
  border:1px solid #ff8d52 !important ;
}



/* Thumbnail styles */
#tooted-form  .categories .thumbnail {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 3px;
    overflow: hidden;
}

#dynamic-steps-container img {
    width: 100% !important;
    height: 150px !important;
    object-fit: cover;
}

.category-tab .thumbnail img {
    width: 100% !important;            /* Make the image take up the full width of its container */
    height: 100% !important;           /* Ensure the image takes up the full height */
    object-fit: cover !important;      /* Ensure the image covers the container without distortion */
}

/* Category name styles */
#tooted-form  .categories span {
    flex-grow: 1;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    width: 90%;
}


/*PROGRESS LINE*/
#progress-line-container {
    width: 100%;
    height: 4px;
    background-color: rgba(203, 107, 39, 0.1);
    margin: 16px 0px;
    border-radius: 0px;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    -ms-border-radius: 0px;
    -o-border-radius: 0px;
}

#progress-line {
    width: 0%;
    /*Initially,noprogress*/height: 100%;
    background-color: rgb(203, 107, 39);
    border-radius: 0px;
    transition: width 0.3s ease;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    -ms-border-radius: 0px;
    -o-border-radius: 0px;
    -webkit-transition: width 0.3s ease;
    -moz-transition: width 0.3s ease;
    -ms-transition: width 0.3s ease;
    -o-transition: width 0.3s ease;
}

/* nupp */
#tooted-form  .next-step{
    border:none;
    text-transform: uppercase;
    color: white;
    border-radius: 4px;
    width: 100%;
    display: block;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 16px;
    margin-top: 20px;

    margin-left: auto;
    margin-right: auto;
    background-color: rgb(203, 107, 39);
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
}
#tooted-form  .next-step:hover{
        background-color: rgb(142, 74, 27);
}

#tooted-form  .span_1{
    font-size: 16px;
display: block;
font-weight: bold;
color: inherit;
text-align: center;
line-height: normal;
letter-spacing: normal;
}


#tooted-form  .form-row {
    margin-right: 0px; 
    margin-left: 0px;
    margin-top:30px;
    display: flex;
    justify-content: space-between; /* Ensures even spacing between items */
    gap: 10px; /* Adds spacing between the labels */
}
#tooted-form label.name,#tooted-form label.last_name{
    width: 49%;
}

#tooted-form label.tingimused
{
    display: inline-flex;
    align-items: center; /* Aligns the checkbox and text vertically */
    gap: 10px; /* Adds spacing between the checkbox and text */
    font-size: 14px; /* Adjusts font size if needed */
    cursor: pointer; /* Makes the label clickable */
}

#tooted-form label.tingimused input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0; /* Removes default margin for consistency */
}

#tooted-form  .custom-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* Checkbox style element */
#tooted-form  .checkbox-style {
    max-width: 17.5px;
    height:  17.5px;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

/* Add a white checkmark when checked */
#tooted-form  .checkbox-style::before {
    content: '';
    width: 7px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Change background-color and show checkmark when checked */
#tooted-form  input[type="checkbox"]:checked + .checkbox-style {
    background-color: rgb(203, 107, 39);
    border-color: rgb(203, 107, 39);
}

#tooted-form  input[type="checkbox"]:checked + .checkbox-style::before {
    opacity: 1;
}




label.tingimused {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

label.tingimused input[type="checkbox"] {
 padding:8px !important;
    margin: 0;
    appearance: none; /* Remove default browser styling */
    border: 2px solid rgb(203, 107, 39); /* Border color */
    border-radius: 3px; /* Optional: Adds slight rounding to the checkbox */
    background: transparent;
    cursor: pointer;
    outline: none;
    position: relative;
    display: inline-block;
}

label.tingimused input[type="checkbox"]:checked {
    background: rgb(203, 107, 39); /* Background color when checked */
    border-color: rgb(203, 107, 39); /* Keep border consistent */
}

label.tingimused input[type="checkbox"]:checked::after {
    content: ''; /* Add checkmark */
    position: absolute;
    top: 0px;
    left: 3px;
    width: 7px;
    height: 11px;
    border: solid white; /* White checkmark */
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}




#tooted-form .products {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap onto the next row */
    gap: 10px;       /* Space between products */
    justify-content: space-between; /* Distribute items evenly */
}

#tooted-form .products .product-tab {
    flex: 1 1 calc(50% - 10px); /* Each product takes 50% width minus the gap */
    box-sizing: border-box;    /* Include padding/borders in the width calculation */
}

#tooted-form  .product-tab:hover{
    box-shadow: rgba(216, 216, 216, 0.6) -3px -3px 12px 2px;
}
#tooted-form  .product-tab span{
    display: block;
    color: rgb(52, 52, 52);
    line-height: 16px;
    width: 100%;
    text-align: center;
    font-weight: 500;
    padding-top: 0px;
}
#tooted-form  .product-tab{
    display: block;
    max-width: 50%;
    position: relative;
    cursor: pointer;
    padding: 13px;
    box-shadow: rgba(216, 216, 216, 0.6) -3px -3px 12px 2px;
    height: 210px !important;
    background-color: rgb(255, 255, 255);
    margin-bottom: 10px;
    border:1px solid rgb(218, 218, 218);
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
}
#tooted-form  .product-tab .checkbox-style{
    position: absolute;
    right: 10px;
    top: 10px;
}

#atleastone{
    color: #ff4e4e;
    margin: 0;
font-size: 0.75rem;
margin-top: -15px;
text-align: left;
font-weight: 400;
line-height: 1.66;
}



.step-user-details ,.step {
    max-width: 500px;
    margin: 0 auto;
}

.step-user-details label:not(.tingimused),.step label:not(.category-tab,.product-tab){
    position: relative;
    display: block;
    margin-bottom: 20px;
    border-top-left-radius: 4px;
border-top-right-radius: 4px;
background: #ffffff !important;
box-shadow: 2px 2px 12px 2px rgba(216, 216, 216, 0.5);

}

.step-user-details label input,
.step-user-details label textarea ,
.step label:not(.category-tab,.product-tab) input,
.step label:not(.category-tab,.product-tab) textarea
{
    width: 100%;
    border: none;
    border-bottom: 1px solid #000;
    padding: 15px 10px;
    font-size: 16px;
    outline: none;
    transition: border-bottom-color 0.3s, padding 0.3s;
}

.step-user-details label textarea ,
.step label:not(.category-tab,.product-tab) textarea {
    resize: vertical;
}

.step-user-details label input:focus,
.step-user-details label textarea:focus ,
.step label:not(.category-tab,.product-tab) input:focus,
.step label:not(.category-tab,.product-tab) textarea:focus {
    border-bottom-color: #cb6b27;
    border-bottom: 2px solid #cb6b27;
}

.step-user-details label span,
.step label:not(.category-tab,.product-tab) span {
    position: absolute;
    top: 8px;
    left: 10px;
    font-size: 16px;
    color: #666;
    pointer-events: none;
    transition: all 0.3s ease;
}

.step-user-details label input:focus + span,
.step-user-details label input:not(:placeholder-shown) + span,
.step-user-details label textarea:focus + span,
.step-user-details label textarea:not(:placeholder-shown) + span ,
.product-inputs label input:focus + span,
.product-inputslabel input:not(:placeholder-shown) + span,
.product-inputs label textarea:focus + span,
.product-inputs label textarea:not(:placeholder-shown) + span {
    top: 0px;
    font-size: 12px;
    color: #666;
}
.previous-step{
    cursor: pointer;
}

.product-inputs{
    width: 100%;
}

