/* Hide the input checkboxes witch control the modal display */
.jobs-modal .modal-switch {
  display: none;
}

/* Prevent window scroll when modal is open */
body.open-modal {
  overflow: hidden;
}

/* Grey-out the window */
.jobs-modal__overlay{
    opacity: 0;
    -webkit-transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -100;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
    display: flex;
    background-color: rgba(0,0,0,0.7);
}

/* The modal box */
.jobs-modal__wrap{
    background-color: #fff;
    padding: 20px;
    width: 96%;
    margin: 20px auto;
    align-self: flex-start;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}


/* Modal close button */
.jobs-modal__close{
  background-image: url('../png/modal-close-blue.png');
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 30px 30px;
  cursor: pointer;
  height: 30px;
  position: absolute;
  top: 20px;
  right: 20px;
  text-indent: -9999em;
  width: 30px;
  z-index: 9999;
}
/* Modal close on hover */
.jobs-modal__close:hover{
  cursor: pointer;
  color: #fff;
}

/* Label that covers the page, behind the modal box, that will close the modal on click */
.jobs-modal .o-close {
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  z-index: -100;
}

/* Open the modal */
.jobs-modal input:checked ~ .o-close {
    position: fixed;
    z-index: 9998;
}
.jobs-modal input:checked ~ .jobs-modal__overlay {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
    opacity:1;
    position: fixed;
    z-index: 9997;
    overflow: auto;
}
.jobs-modal input:checked ~ .jobs-modal__overlay .jobs-modal__wrap {
-webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
    z-index: 9999;
}

/* Modal title */
.jobs-modal__title {
  border-bottom: 1px solid #ccc;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-style: italic;
  font-weight: bold;
  margin-bottom: 25px;
  padding-bottom: 25px;
  width: 100%;
}
/* Modal section titles */
.jobs-modal__section-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Override inline styles */
.jobs-modal__wrap p, .jobs-modal__wrap li, .jobs-modal__wrap div, .jobs-modal__wrap font, .jobs-modal__wrap a {
    font-family: 'helvetica neue', helvetica, arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.8em !important;
}
.jobs-modal__wrap ul {
  margin-left: 1.4em !important;
}
.jobs-modal__wrap li {
  list-style-type: disc !important;
}
.jobs-modal__wrap a, .jobs-modal__wrap a font {
  color: #383838 !important;
}

/* Apply button */
.jobs-modal__wrap .apply-here {
  border: 1px solid #0099d5;
  color: #000;
  display: block;
  font-size: 14px;
  margin: 50px auto 0;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  width: 120px;
}


@media (min-width: 768px) {
  .jobs-modal__wrap {
    padding: 40px 50px;
    max-width: 80%;
  }
}
@media (min-width: 1024px) {
  .jobs-modal__wrap {
    padding: 100px 100px 50px;
    max-width: 70%;
  }
}
/* Responsive Design */
/* Tablet size */
