
/* ------------------------------- */


form {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input, textarea, select, button {
  width: auto; /* width: 100%; */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 10px;
}
form input, form textarea, form select, form button{
    width: 100%;
}

input[type="number"],input[type="color"],input[type="time"],input[type="date"]{
    width:auto;
}
.button-size-auto{
    width:auto;
}


progress, meter {
  width: 100%;
}

textarea {
  height: 120px;
}

input[type="checkbox"],
input[type="radio"] {
  display: inline-block;
  margin-right: 5px;
}



    /* Checkbox Label Styles */
    input[type="checkbox"] {
      display: none;
    }
    
    .checkbox-label {
      display: inline-block;
      position: relative;
      cursor: pointer;
      margin-right: 10px;
    }
    
    .checkbox-label::before {
      content: "";
      display: inline-block;
      width: 20px;
      height: 20px;
      background-image: url('../images/checkbox_unclicked.png');
      background-repeat: no-repeat;
      background-size: cover;
      transition: background-image 0.3s ease;
    }
    
    input[type="checkbox"]:checked + .checkbox-label::before {
      background-image: url('../images/checkbox_clicked.png');
    }
    
    /* Radio Button Label Styles */
    input[type="radio"] {
      display: none;
    }
    
    .radio-label {
      display: inline-block;
      position: relative;
      cursor: pointer;
      margin-right: 10px;
    }
    
    .radio-label::before {
      content: "";
      display: inline-block;
      width: 20px;
      height: 20px;
      background-image: url('../images/radio-btn-unselected.png');
      background-repeat: no-repeat;
      background-size: cover;
      transition: background-image 0.3s ease;
    }
    
    input[type="radio"]:checked + .radio-label::before {
      background-image: url('../images/radio-btn-selected.png');
    }

    /* Select Styles */
    select::-ms-expand {
      display: none;
    }


    .custom-dropdown {
      position: relative;
      display: inline-block;
      cursor: pointer;
      width: 100%;
    }

    .custom-dropdown select {
      display: none;
    }

    .custom-dropdown .dropdown-label {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px;
      background-color: #ffffff;
      border: 1px solid #ccc;
      border-radius: 4px;
    width: 96%;
    }

    .custom-dropdown .dropdown-label::after {
      content: "";
      display: inline-block;
      width: 16px;
      height: 16px;
      background-image: url('../images/dropdown_arrow2.png');
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
    }

    .custom-dropdown .dropdown-menu {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
    max-height: 200px;
      overflow-y: auto;
      display: none;
      background-color: #ffffff;
      border: 1px solid #ccc;
      border-top: none;
      border-radius: 4px;
      z-index: 9999;
    list-style-type: none;
    padding-left: 0;
    }

    .custom-dropdown .dropdown-menu.open {
      display: block;
    margin: 0;
    width: 100%;
    }

    .custom-dropdown .dropdown-menu li {
      padding: 10px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .custom-dropdown .dropdown-menu li:nth-child(even) {
      background-color: #f8f8f8; /* Off-white background color for even items */
    }

    .custom-dropdown .dropdown-menu li:nth-child(odd) {
      background-color: #ffffff; /* White background color for odd items */
    }

    .custom-dropdown .dropdown-menu li:hover {
      background-color: #f1f1f1; /* Hover background color */
    }


button, input[type="submit"], input[type="reset"] {
  display: inline-block;
  background-color: #ed4247;
  color: #ffffff;
  padding: 15px 30px;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}


button:hover, input[type="submit"]:hover, input[type="reset"]:hover {
  background-color: #c72126;
}

fieldset {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

legend {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}




/* FILE UPLOAD CUSTOM */

/* Hide the default file input button */
#upload-form-custom .file-upload-custom-wrap input[type="file"] {
    display: none;
}
form#upload-form-custom  .file-upload-custom-wrap button{
    width:auto;
}






/* UPLOAD IMAGE FORM - Custom - Upload & Then Crop - All In One */

.upload_form_and_crop_wrap form {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
}

.upload_form_and_crop_wrap .upload-btn {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
}

.upload_form_and_crop_wrap .upload-btn:hover {
    background-color: #2185d0;
}

.upload_form_and_crop_wrap #preview {
    max-width: 100%;
    max-height: 400px;
    margin-top: 20px;
    border: 1px solid #ccc;
}

.upload_form_and_crop_wrap #crop-modal {
    text-align: center;
    display: none;
    margin-top: 20px;
}

.upload_form_and_crop_wrap #crop-submit {
    background-color: #3498db;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
}

.upload_form_and_crop_wrap #crop-submit:hover {
    background-color: #2185d0;
}


.upload_form_and_crop_wrap .file-upload-custom-wrap{
    text-align:left;
}
.upload_form_and_crop_wrap form button, .upload_form_and_crop_wrap #crop-modal button{
    width: auto;
}

.hidden{
    display:none;
}

.upload_form_and_crop_wrap form{
    text-align:left;
}

.upload_form_and_crop_wrap #crop-modal{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:1vh;
    height: 100%;
    background: white;
}

.upload_form_and_crop_wrap #image-container{
    margin-top: 20px;
}
.upload_form_and_crop_wrap #image-container img{
    width:100%;
    height:auto;
}

.upload_form_and_crop_wrap .upload_button{
    display:none;
}

.upload_form_and_crop_wrap #upload-status{
    display:none;
}

.upload_form_and_crop_wrap .choose-file-btn{
    margin-bottom: 0;
}











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

    button, input[type="submit"], input[type="reset"] {
      margin-left:10px;
    }

}



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

    form {
      padding: 10px;
    }

    input,
    textarea,
    select {
      font-size: 14px;
    }



}


/* ------------------------------- */



  .file-upload-wrapper {
    position: relative;
    display: inline-block;
  }

  .file-upload-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ed4247;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
  }

  .file-input {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
  }

  .file-name {
    display: block;
    margin-top: 10px;
    font-size: 14px;
  }



.max_number_2_digits{
    width:65px !important;
}




  .range-container {
    display: flex;
    align-items: center;
  }
  #range-value {
    margin-left: 10px;
    width: 50px;
  }






    .ui-datepicker-trigger {
      cursor: pointer;
      display: inline-block;
      vertical-align: middle;
    }




    .line_with_2{
        height: 80px; /* changed to 80px (from 100px) for user_settings.php */
    }

    .time_of_birth_select{
        clear: both;
        display: block;
        float: left;
        margin-top: 20px;
    }

    .time-picker-container {
      position: relative;
      display: inline-block;
      width: 90px;
    }

    .time-picker-input {
      padding: 5px;
      border: 1px solid #ccc;
      border-radius: 3px;
      cursor: pointer;
      text-align: center;
    }

    .time-picker-popover {
      position: absolute;
      z-index: 9999;
      top: calc(100% + 5px);
      left: 0;
      display: none;
      background-color: #fff;
      border: 1px solid #ccc;
      border-radius: 3px;
      padding: 5px;
      max-height: 200px;
      overflow: hidden;
      width: 215px;
    }

    .time-picker-popover.show {
      display: block;
    }

    .time-picker-column {
      overflow-y: scroll;
      overflow-x: inherit;
      width: 65px;
      height:200px;
      padding-right: 20px;
      float:left;
    }

    .time-picker-column > div {
      margin: 5px;
      padding: 5px;
      border-radius: 3px;
      cursor: pointer;
      width: 40px;
    }

    .time-picker-column > div:hover {
      background-color: #f1f1f1;
    }

    .time-picker-column.selected > div {
      background-color: #3498db;
      color: #fff;
    }
    .time-picker-column > div.selected {
      background-color: #3498db;
      color: #fff;
    }







    .time-input-container {
      display: flex;
      align-items: center;
    }
    .time-input-container input[type="number"] {
      width: 60px;
      padding: 5px;
      text-align: center;
    }
    .time-input-container select {
      padding: 5px;
    }
    .time select{
        width:60px;
    }







    /* CUSTOM COLOR PICKER with Color Square */
    .color-container {
      display: flex;
      align-items: center;
    }
    #color-square {
      width: 50px;
      height: 40px;
      border: 1px solid #000;
      margin-right: 10px;
      margin-left: 10px;
      margin-top: -10px;
    }
    #color-value {
      margin-right: 10px;
    }





@media screen and (max-width: 480px) {
    .time-picker-popover.show {
        position:relative;
    }

}









