/* ############################################################ */
/* EVERYTHING BELOW THIS LINE IS TO BE IDENTICAL BETWEEN CLIENT AND WEB_DEV CODE: */
/* ############################################################ */

div.input-field {
    position: relative;
    padding: 1em 1em;
  }
div.input-field-inline {
  display: inline-block;
  position: relative;
  padding: 1em 1em;
}

.input-section .input-field {
  display: inline-block
}

.input-section {
  padding: 8px 8px;
}


  
  form label {
    position: absolute;
    top: 0;
    left: 0;
    /* width: 100%; */
    width: auto;
    transition: 0.3s;
    padding: 1.5em 0 0 1.0em;
    font-size: 1em;
    color: #999;
    cursor: pointer;
    /* user-select: none; */
    
  }
  
  input, 
  select, 
  textarea {
    width: 100%;
    border-bottom: 1px solid #999;
    border-top-style: hidden;
    border-right-style: hidden;
    border-left-style: hidden;
    background: none;
    position: relative;
    top: 0;
    left: 0;
    padding: 8px 0px;
    outline: none;
    cursor: pointer;
  }

  fieldset {
    border: 0;
  }

  textarea {
    /* background-color: #eee; */
    cursor: text;
  }

  
  label, select:disabled {
    cursor: default;
  }
  
  input:focus, 
  select:focus,
  textarea:focus {
    border-bottom: 1px solid #23a6d5;
    border-top-style: hidden;
    border-right-style: hidden;
    border-left-style: hidden;
  }

  /* textarea ~ label {
    font-size: 0.75em;
    transform: translate(0, -33%);
    padding: 1.5em 0 0 1.33em;
  } */
  .input-field:hover label,
  input:hover ~ label,
  input:focus ~ label,
  textarea:focus ~ label{
    color: #23a6d5;
    font-size: 0.75em;
    transform: translate(0, -33%);
    padding: 1.5em 0 0 1.33em;
  }
  
  select ~ label {
    z-index: 0;
  }
  select {
    z-index: 1;
  }
  
  input:valid ~ label,
  input.valid ~ label,
  input.invalid ~ label,
  input[type="date"] ~ label,
  select ~ label,
  select.valid ~ label,
  select.invalid ~ label,
  textarea:valid ~ label,
  textarea ~ label,
  input:disabled ~ label,
  .select-label {
    color: gray;
    font-size: 0.75em;
    transform: translate(0, -33%);
    padding: 1.5em 0 0 1.33em;
  }
  
  span.helper-text {
    font-size: 0.75em;
    color: gray;
    /* user-select: none; */
  }
  
  input.valid, 
  select.valid,
  textarea.valid {
    border-bottom: 1px solid #6aa84f;
    border-top-style: hidden;
    border-right-style: hidden;
    border-left-style: hidden;
  }
  input.valid ~ span.helper-text,
  select.valid ~ span.helper-text {
    color: #6aa84f;
  }
  input.invalid, 
  select.invalid {
    border-bottom: 1px solid #e73c7e ;
    border-top-style: hidden;
    border-right-style: hidden;
    border-left-style: hidden;
  }
  input.invalid ~ span.helper-text,
  select.invalid ~ span.helper-text {
    color: #e73c7e ;
  }
  select.includearrow {
    background: url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat;
    background-position: calc(100% - 0.75rem) center !important;
    -moz-appearance:none !important;
    -webkit-appearance: none !important; 
    appearance: none !important;
    padding-right: 2rem !important;
  }
  .w3-modal {
    padding-bottom: 50px;
  }

  .select-icon{
    position: absolute;
    top: 1.5em;
    right: 1em;
    text-align: center;
    width: 2em;
    height: 2em;
    pointer-events: none;
    /* border: 2px solid #962d22; */
    padding-left: 5px;
  }
  
  
  
  /* SWITCH */
  
  .switch {
    position: relative;
    display: inline-block;
    margin-top: 20px;
    width: 60px;
    height: 28px;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 100px;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: #23a6d5;
  }
  
  input:disabled + .slider {
    opacity: 0.5;
    cursor: default;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #23a6d5;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(32px);
    -ms-transform: translateX(32px);
    transform: translateX(32px);
  }
  
  /* small */
  .switch.switch-small {
    margin-top: 0px;
    width: 34px;
    height: 14px;
  }
  .slider.switch-small:before {
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
  }
  input:checked + .slider.switch-small:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
  }
  
  
  /* PREFIX AND SUFFIX ICONS */
  .prefix{
    position: absolute;
    width: 2rem;
    font-size: 1rem;
    color: gray;
    line-height: 40px;
    text-align: center;
  }
  .input-field .prefix ~ input,
  .input-field .prefix ~ textarea,
  .input-field .prefix ~ label,
  .input-field .prefix ~ .validate ~ label,
  .input-field .prefix ~ .helper-text {
    margin-left: 2rem;
    /* width: 92%; */
    width: calc(100% - 2rem);
  }
  
  .suffix{
    position: absolute;
    width: 2rem;
    right: 0px;
    font-size: 1rem;
    color: gray;
    line-height: 40px;
    text-align: center;
  }
  
  .input-field .suffix ~ input,
  .input-field .suffix ~ textarea,
  .input-field .suffix ~ label,
  .input-field .suffix ~ .validate ~ label,
  .input-field .suffix ~ .helper-text {
    margin-right: 2rem;
    width: 92%;
    width: calc(100% - 2rem);
  }
  
  .input-field .prefix+.suffix ~ input,
  .input-field .prefix+.suffix ~ textarea,
  .input-field .prefix+.suffix ~ label,
  .input-field .prefix+.suffix ~ .validate ~ label,
  .input-field .prefix+.suffix ~ .helper-text{
    width: 84%;
    width: calc(100% - 4rem);
  }
  
  .clickable{
    cursor: pointer;
    /* z-index: 1; */
  }
  
  
  /* Webkit modifications to prevent inconsistent rendering */
  input, select {
    -webkit-appearance: none;
    -webkit-border-radius:0; 
    border-radius:0; 
  }
  
  
  /* Centering Forms in page */
  .formCentrePage{
    display: flex;
    min-height:100vh;
  }
  .formCentreContainer{
    max-width: 700px;
    margin: auto; 
    flex-grow: 1;
  }



  /* RANGE SLIDER FORMATTING
  /* https://www.cssportal.com/style-input-range/ */

  /* RANGE */

input[type="range"] {
  border-bottom: hidden;
  padding: 0px;
  margin: 8px 0px;
}

.rangeSlideContainer {
  width: 100%; /* Width of the outside container */
}

/* The range slider itself */
.rangeSlideContainer input {
  -webkit-appearance: none;  /* Override default CSS styles */
  appearance: none;
  width: 100%; /* Full-width */
  height: 5px;
  /* border-radius: 5px;  */
  background: #d3d3d3; /* Grey background */
  outline: none; /* Remove outline */
  opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */
  -webkit-transition: .2s; /* 0.2 seconds transition on hover */
  transition: opacity .2s;
}

/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
.rangeSlideContainer input::-webkit-slider-thumb {
  -webkit-appearance: none; /* Override default look */
  appearance: none;
  width: 20px; /* Set a specific slider handle width */
  height: 20px;
  border-radius: 50%; 
  background: #23a6d5; /* Green background */
  cursor: pointer; /* Cursor on hover */
}

.rangeSlideContainer input::-moz-range-thumb {
  width: 20px; /* Set a specific slider handle width */
  height: 20px;
  border-radius: 50%; 
  background: #23a6d5; 
  cursor: pointer; /* Cursor on hover */
}
.rangeSlideValue {
  color: gray;
  width: 100%;
  text-align: left;
  font-size: 2em;
  font-weight: bolder;
}

/* Mouse-over effects */
.rangeSlideContainer input:hover {
  opacity: 1; /* Fully shown on mouse-over */
}