/* ++++++++++++++++++++++++++++ */
/* +++ M O D A L  P O P U P +++ */
/* ++++++++++++++++++++++++++++ */
body.cig__modal-open {
  overflow: hidden;
  margin-right: 16px;
}
#modal_SearchWithin {
  display: none;
}
/* Modal Styles */
.cig--modal-wrapper {
  box-sizing: border-box;
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}
.cig__modal-body-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cig--modal-content-sml-wrapper,
.cig--modal-content-lrg-wrapper {
  background-color: var(--color-white);
  margin: 20px auto;
  border: 1px solid #888;
  border-radius: 10px;
  width: 100%;
  position: relative;
  animation: slideUp 0.3s ease;
}
.cig--modal-content-lrg-wrapper {
  max-width: 820px;
}
.cig--modal-content-sml-wrapper {
  max-width: 356px;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cig--modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 15px 15px 20px;
  border-bottom: 1px solid #e9e9e9;
}
.cig--modal-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--color-blue-dark);
}
.cig__modal-close {
  position: relative;
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: 0.2s ease;
}
.cig__modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 1.61143L14.3886 0L8 6.38857L1.61143 0L0 1.61143L6.38857 8L0 14.3886L1.61143 16L8 9.61143L14.3886 16L16 14.3886L9.61143 8L16 1.61143Z' fill='black'/%3E%3C/svg%3E%0A")
    center / contain no-repeat;
}
.cig__modal-close:hover {
  transform: scale(0.9);
}

.cig--modal-cta-wrapper {
  padding: 15px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #e9e9e9;
}
button.cig--navbar-link-rounded-modal {
  display: inline-block;
  text-decoration: none;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 50px;
  text-transform: uppercase;
  transition: 0.2s ease;
  cursor: pointer;
}
button.cig--navbar-link-rounded-modal:hover {
  filter: contrast(130%);
  transform: scale(0.95);
}

@media (max-width: 768px) {
  body.cig__modal-open {
    overflow: hidden;
    margin-right: 0px;
  }

  .cig__modal-body-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  .cig--modal-wrapper {
    overflow: auto;
    padding: 0;
  }
  .cig--modal-content-sml-wrapper,
  .cig--modal-content-lrg-wrapper {
    background-color: var(--color-white);
    margin: 0;
    border: none;
    border-radius: 10px 10px 0 0;
    max-width: 100%;
    height: fit-content;
  }
}
/* Job alert Modal & Apply Now Modal */
.cig--form-flex-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

/* -------------------- */
/* --- Modal Select --- */
/* -------------------- */
.cig--modal-select {
  max-height: 0;
  overflow: hidden;
  background-color: #fff;
  transition: max-height 0.4s ease-in-out;
  max-height: 600px;
}
/* Hide the multi-select toggle button */
.cig--modal-select-select-wrapper .ms-choice {
  display: none !important;
}
.cig--modal-select-select-wrapper .ms-drop {
  box-sizing: border-box;
  position: static !important;
  display: block !important;
  border: none !important;
  box-shadow: none !important;
  width: 100% !important;
}
.cig--modal-select-select-wrapper .ms-search {
  display: block !important;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  background-color: #ffffff;
}
.cig--modal-select-select-wrapper .ms-search input {
  box-sizing: border-box;
  width: 100% !important;
  padding: 0.5rem;
  font-size: 16px;
  padding: 15px 20px !important;
}
.cig--modal-select-select-wrapper .ms-drop ul {
  max-height: 420px !important;
  overflow-x: hidden !important;
  padding: 10px 0 !important;
}
.cig--modal-select-select-wrapper .ms-drop ul li {
  box-sizing: border-box;
  padding: 10px 20px !important;
}
.cig--modal-select-select-wrapper .ms-drop ul > li label {
  white-space: wrap;
}
.cig--modal-select-select-wrapper .ms-drop ul li input[type="checkbox"] {
  margin-right: 0.5rem;
}
.cig--modal-select-select-wrapper .ms-drop ul li:hover {
  background-color: #f9fafb;
}

.cig--modal-select-select-wrapper .ms-drop ul > li.hide-radio.selected {
  color: #fff;
  background-color: var(--color-blue-light);
  border-radius: 0;
}

.cig--list-double-col .ms-drop ul {
  display: flex;
  flex-wrap: wrap;
}

.cig--list-double-col .ms-drop ul li {
  width: 50%;
  box-sizing: border-box;
}

/* --- Mobile Modal Select --- */
@media (max-width: 768px) {
  .cig--search-filter-wrapper {
    gap: 10px;
    margin-left: 20px;
    padding: 0 20px 15px 0;
    overflow-x: scroll;
    min-height: 50px;
    scroll-snap-type: x mandatory;
    scroll-padding-right: 20px;
  }
  .cig--search-filter-wrapper > * {
    scroll-snap-align: end;
  }
  /*  */
  .cig--list-double-col .ms-drop ul li {
    width: 100%;
  }
}

/* +++++++++++++++++++++++++++++++++ */
/* +++ S U C C E S S   M O D A L +++ */
/* +++++++++++++++++++++++++++++++++ */
.cig--form-success-wrapper {
  padding: 30px;
}
.cig--success-animation {
  margin: 0px auto;
}
svg.cig--checkmark,
svg.cig--checkmark-light {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 2.5;
  stroke-miterlimit: 10;
  animation:
    fill 0.4s ease-in-out 1.4s forwards,
    scale 0.3s ease-in-out 1.7s both;
  position: relative;
  top: 5px;
  right: 5px;
  margin: 0 auto;
}
svg.cig--checkmark {
  stroke: #ffffff;
}
svg.cig--checkmark-light {
  stroke: var(--color-blue-light);
}
.cig_checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  animation: stroke 1.2s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.cig--checkmark-circle-dark {
  stroke: var(--color-white);
}
.cig--checkmark-circle-light {
  stroke: var(--color-blue-light);
}
.cig_checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) 1.2s forwards;
}
@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes scale {
  0%,
  100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

.cig--success-content-wrapper {
  margin: 30px 0;
  text-align: center;
}
.cig--form-success-wrapper .cig--form-heading-wrapper h2 {
  margin: 0;
  text-transform: uppercase;
  font-size: 24px;
  line-height: 1.3;
}
.cig--form-success-wrapper p.cig--success-msg {
  font-weight: 400;
  font-size: 16px;
  margin: 15px 0 0 0;
  line-height: 1.5;
}
p.cig--success-msg-light {
  color: var(--color-blue-dark);
}
p.cig--success-msg-dark {
  color: var(--color-white);
}
.cig--success-content-wrapper span {
  font-style: italic;
  text-decoration: underline;
  font-weight: 500;
}
.cig--success-cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cig--success-cta.cig__modal-close::after {
  display: none;
}
.cig--success-cta.cig__modal-close {
  display: block;
  border: none;
  box-sizing: border-box;
  text-decoration: none;
  padding: 12px 20px;
  background: var(--color-blue-light);
  color: var(--color-white);
  width: 100%;
  text-align: center;
  border-radius: 50px;
  height: auto;
  transition: 0.2s ease;
}
.cig--success-cta.cig__modal-close:hover {
  filter: contrast(130%);
  transform: scale(0.98);
}
.cig--success-cta.cig__modal-close.cig--success-cta span {
  position: relative;
  padding-right: 25px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
}
.cig--success-cta.cig__modal-close.cig--success-cta span::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 9.11614V10.8839H14.0526L11.132 13.7502L12.4063 15L17.5 10L12.4063 5L11.132 6.24978L14.0526 9.11614H2.5Z' fill='white'/%3E%3C/svg%3E%0A")
    center / contain no-repeat;
}
.cig--success-link {
  position: relative;
  box-sizing: border-box;
  color: var(--color-white);
  text-decoration: none;
  padding-right: 16px;
  font-size: 14px;
  transition: 0.2s ease;
}
.cig--success-link:hover {
  transform: scale(0.95);
}
.cig--success-link::after {
  content: "";
  position: absolute;
  top: calc(50% + 1px);
  transform: translateY(-50%);
  right: 0;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.12277 9.97179C4.99987 9.84875 4.93084 9.68195 4.93084 9.50804C4.93084 9.33414 4.99987 9.16734 5.12277 9.04429L7.50277 6.66429L5.12277 4.28429C5.00685 4.15989 4.94374 3.99535 4.94674 3.82534C4.94974 3.65532 5.01861 3.49311 5.13885 3.37288C5.25908 3.25264 5.42129 3.18377 5.59131 3.18077C5.76132 3.17777 5.92586 3.24087 6.05026 3.35679L8.89402 6.20054C9.01691 6.32359 9.08594 6.49039 9.08594 6.66429C9.08594 6.8382 9.01691 7.005 8.89402 7.12804L6.05026 9.97179C5.92722 10.0947 5.76042 10.1637 5.58652 10.1637C5.41261 10.1637 5.24581 10.0947 5.12277 9.97179Z' fill='white'/%3E%3C/svg%3E%0A")
    center / contain no-repeat;
}
