/* Webkit modifications to prevent inconsistent rendering */
/* input, select {
    -webkit-appearance: none;
    -webkit-border-radius:0; 
    border-radius:0; 
} */

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

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

.input-field label {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    transition: 0.3s;
    padding: 1.5em 0 0 1.0em;
    font-size: 1em;
    color: #999;
    cursor: pointer;
    /* user-select: none; */
}


.input-field:focus-within label {
    color: #23a6d5;
    font-size: 0.75em;
    transform: translate(0, -33%);
    padding: 1.5em 0 0 1.33em;
}
.input-field:focus-within label {
    color: #23a6d5;
    font-size: 0.75em;
    transform: translate(0, -33%);
    padding: 1.5em 0 0 1.33em;
}

.input-field input:disabled ~ label,
.input-field select ~ label,
.input-field input:valid ~ label,
.input-field input:invalid:not(:placeholder-shown) ~ label
{
    color: gray;
    font-size: 0.75em;
    transform: translate(0, -33%);
    padding: 1.5em 0 0 1.33em;
}

.input-field label {
    z-index: 0
}
.input-field input {
    z-index: 1
}

.input-field input:invalid {
    border-bottom: 1px solid red;
}
.input-field input:valid {
    border-bottom: 1px solid green;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    /* transition-delay: 999s; */
    transition: background-color 5000s ease-in-out 0s;
}


select,
textarea,  
.input-field input, 
.input-field input:placeholder-shown
{
    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;
}
.input-field input:invalid:placeholder-shown
{
    border-bottom: 1px solid red;
}
.input-field input[type=date],
.input-field input[type=time] {
  width: auto;
}

textarea {
    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;
}

  
/* select ~ label {
z-index: 0;
}
select {
z-index: 1;
} */
  
/* input:valid ~ label,
input.invalid ~ label,
input[type="date"] ~ label,
select.valid ~ label,
select.invalid ~ label,
.select-label */
textarea:valid ~ 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-icon{
position: absolute;
top: 1.5em;
right: 1em;
text-align: center;
width: 2em;
height: 2em;
pointer-events: none;
padding-left: 5px;
} */
  
/* textarea ~ label {
font-size: 0.75em;
transform: translate(0, -33%);
padding: 1.5em 0 0 1.33em;
} */
  
















  /* SWITCH */
  
  .switch {
    position: relative;
    display: inline-block;
    margin-top: 20px;
    width: 60px;
    height: 28px;
    text-align: left;
  }
  .switch-label {
    position: relative;
    top: -20px;
  }
  
  /* 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: 3rem;
    font-size: 2rem;
    color: gray;
  }
  .input-field .prefix ~ input,
  .input-field .prefix ~ textarea,
  .input-field .prefix ~ label,
  .input-field .prefix ~ .validate ~ label,
  .input-field .prefix ~ .helper-text {
    margin-left: 3rem;
    width: 92%;
    width: calc(100% - 3rem);
  }
  
  .suffix{
    position: absolute;
    width: 3rem;
    right: 0px;
    font-size: 2rem;
    color: gray;
  }
  
  .input-field .suffix ~ input,
  .input-field .suffix ~ textarea,
  .input-field .suffix ~ label,
  .input-field .suffix ~ .validate ~ label,
  .input-field .suffix ~ .helper-text {
    margin-right: 3rem;
    width: 92%;
    width: calc(100% - 3rem);
  }
  
  .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% - 6rem);
  }
  
  .clickable{
    cursor: pointer;
  } */
  
  

  
  
/* 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 */
}