:root {
  --zia-red: #cf3339;
  --zia-blue: #243746;
  --zia-gray: rgba(36, 55, 70, 0.1);
}
footer,
header,
body {
  max-width: 1728px;
  margin: auto;
}
header {
  background-color: white;
  position: fixed;
}
strong {
  font-family: "museo_bold";
}
h2 {
  color: var(--zia-red);
  font-family: "museo_300";
  font-size: 4.5rem;
  text-transform: lowercase;
}
p {
  color: var(--zia-blue);
  font-family: "museo_300";
  font-size: 1rem;
  text-wrap: pretty;
}
label {
  color: var(--zia-blue);
}
.job-head span {
  color: var(--zia-blue);
}
.job-head .spread {
  display: flex;
  justify-content: space-between;
  width: 75%;
}
.job-head h2 {
  margin-top: 9rem;
  margin-bottom: 2rem;
}
.job-head .details {
  display: flex;
  flex-direction: row;
  width: 100%;
  margin-bottom: 2rem;
}
.job-head .details > .column p {
  margin: 0;
  line-height: 1.6em;
}
.job-head .details > .column:first-of-type {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1.5rem;
}
.job-head .details + p {
  margin-bottom: 4rem;
}
.job-nav a {
  position: relative;
  color: rgba(36, 55, 70, 0.4);
  text-decoration: none !important;
  margin-right: 4rem;
}
.job-nav a:hover,
.job-nav a.active {
  color: var(--zia-blue);
}
.job-nav a:hover::after,
.job-nav a.active::after {
  transform: scaleX(1);
}
.job-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--zia-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.disabled-span {
  display: none;
  position: absolute;
  color: white;
  background-color: var(--zia-red);
  top: 1rem;
  left: 1rem;
  width: max-content;
  padding-inline: 5px;
  pointer-events: none;
}
.job-nav a.disabled::after {
  display: none;
}
.job-nav a.disabled:hover {
  color: var(--zia-red);
}
.job-wrapper {
  overflow: hidden;
  position: relative;
}
.job-slider {
  display: flex;
  transition:
    transform 0.3s ease,
    max-height 0.3s ease;
}
.job-details {
  /* width: 100%; */
  height: fit-content;
  flex: 0 0 100%;
  max-width: 100%;
  margin-right: 30px;
  padding-bottom: 9rem;
}
.job-details h1 {
  color: var(--zia-red);
  font-family: "museo_300";
  font-size: 4.5rem;
  text-transform: lowercase;
  margin-top: 4rem;
}
.job-details h2 {
  font-size: 2.25rem;
  color: var(--zia-blue);
  font-family: "museo_300";
  text-transform: lowercase;
  margin-bottom: 2rem;
  margin-top: 4rem;
}
.job-details h3 {
  font-size: 1.75rem;
  color: var(--zia-blue);
  font-family: "museo_300";
  text-transform: lowercase;
  margin-bottom: 2rem;
  margin-top: 4rem;
}
.job-details p,
.job-details li,
.job-details span,
.job-details ul {
  color: var(--zia-blue);
  line-height: 25.6px;
}
.job-details ul {
  padding-left: 1rem;
}
.job-details a {
  color: var(--zia-red);
}
.form-group {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 0 !important;
}
.form-group.has-error .with-error-msg span {
  display: block;
}
.form-group .with-error-msg span,
.form-group.has-success .with-error-msg span {
  display: none;
}
.form-container {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
}
.form-group input {
  border-radius: 5px;
  min-height: 3rem;
}
.form-group input[type="number"] {
  -moz-appearance: textfield;
}
.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.form-group label:not(.btn) {
  position: relative;
  align-self: flex-start;
  margin-bottom: 0.5rem;
  font-family: "museo_bold";
}
.form-group.required label:not(.btn)::after {
  content: "*";
  position: relative;
  color: var(--zia-red);
  right: -0.75em;
}
.form-group .sublabel {
  align-self: start;
  font-size: 0.75rem;
  line-height: 0.75rem;
  margin-bottom: 0.5rem;
  color: var(--zia-blue);
}
.form-group.form-group.required .switch-field label::after,
.form-group.form-group.required .single-select label::after {
  content: "";
}
div.with-error-msg {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
}
div.with-error-msg span {
  color: var(--zia-red);
  font-size: 0.75rem;
}
.single-select {
  display: flex;
  justify-content: start;
  align-items: start;
  align-self: start;
  flex-wrap: wrap;
  row-gap: 1rem;
}
.single-select > div {
  display: flex;
}
.form-group .single-select input {
  aspect-ratio: 1/1;
  width: 1.6em;
  height: auto;
  margin-right: 0.75rem;
  display: none;
}
.single-select .custom-radio {
  aspect-ratio: 1/1;
  width: 1.6em;
  height: auto;
  border: 1px solid var(--zia-blue);
  border-radius: 50%;
  margin-right: 0.75rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.single-select input:checked + .custom-radio::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  background-color: var(--zia-blue);
  border-radius: 50%;
}
.form-group .single-select label {
  align-self: center;
  margin-bottom: 0;
  font-family: "museo_300";
  margin-right: 2rem;
}
.switch-field {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: start;
  border-radius: 5px;
  /* background-color: rgba(36, 55, 70, 0.10); */
  overflow: hidden;
  border: 2px solid rgba(36, 55, 70, 0.1);
}
.switch-field .switch-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-color: var(--zia-blue);
  /* border-radius: 5px; */
  transition: all 0.3s ease;
}
.switch-field label {
  color: rgba(36, 55, 70, 0.4);
  font-size: 1.25rem;
  padding: 5px 10px;
  margin: 0 10px;
  /* aspect-ratio: 1/1; */
  width: 51px;
  height: auto;
  text-align: center;
  /* background-color: white; */
  margin-bottom: 0 !important;
  z-index: 1;
  transition: color 0.3s ease;
}
/* .switch-field label:last-of-type{
  padding-right:calc(10px + 1em);
} */
.switch-field input:checked + label {
  color: white;
}
.switch-field .switch-yes:checked ~ .switch-slider {
  left: 0;
}
.switch-field .switch-no:checked ~ .switch-slider {
  left: 50%;
}
.switch-field input[type="radio"] {
  display: none;
}
.zia-pot {
  height: 0px;
  width: 0px;
  overflow: hidden;
  position: absolute;
}
.file-upload {
  display: flex;
  position: relative;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  border-radius: 5px;
  flex-wrap: wrap;
  padding-block: 2rem;
  transition: background-color 0.3s ease;
}
.file-upload.dragover {
  background-color: rgba(36, 55, 70, 0.1);
}
.file-upload svg {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 5px;
  pointer-events: none;
}
.file-upload p {
  margin: 0;
  color: rgba(36, 55, 70, 0.4);
}
.file-upload label {
  margin: 0;
}
.file-upload #text-to-change {
  width: 100%;
  text-align: center;
  /* margin-top: 0.75rem; */
  display: none;
  color: var(--zia-blue);
}

.sendingSuccess {
  background-color: var(--zia-blue);
  margin-top: 1rem;
}
.sendingError {
  background-color: var(--zia-red);
  margin-top: 1rem;
}
.sendingSuccess *,
.sendingError {
  color: white !important;
}

.job-details.application-form {
  padding-top: 4rem;
}
.agree-terms {
  display: flex;
  justify-content: start;
  align-items: start;
  align-self: start;
  row-gap: 1rem;
}
.agree-terms input {
  display: none;
}
.agree-terms .custom-radio {
  aspect-ratio: 1/1;
  width: 1em;
  vertical-align: middle;
  height: auto;
  border: 1px solid var(--zia-blue);
  /* border-radius: 50%; */
  margin-right: 0.75rem;
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.agree-terms input:checked + label .custom-radio::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  background-color: var(--zia-blue);
  /* border-radius: 50%; */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.agree-terms label {
  align-self: center;
  margin-bottom: 0;
  font-family: "museo_300";
  margin-right: 2rem;
  text-wrap: wrap;
}
.apply-now {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
  margin-bottom: 2rem;
}
.apply-now p {
  font-size: 1.25rem;
  color: var(--zia-blue);
  font-family: "museo_300";
  text-transform: lowercase;
  margin: 0;
}
.apply-now a,
#careerFormBtn {
  display: flex;
  font-size: 1.25rem;
  padding: 8px 32px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background-color: var(--zia-blue);
  color: white;
  text-decoration: none !important;
  transition: all 0.3s ease;
  border: none;
}
.apply-now a.disabled {
  background-color: var(--zia-gray);
  pointer-events: none;
}
.apply-now a:hover,
#careerFormBtn:hover {
  background-color: var(--zia-red);
}
#careerFormBtn:disabled {
  background-color: rgba(36, 55, 70, 0.4);
  cursor: not-allowed;
}
.spinner {
  width: 2rem;
  height: 2rem;
  border: 5px solid #f3f3f3; /* Light grey border */
  border-top: 5px solid var(--zia-blue); /* Blue top border for the "spinning" effect */
  border-radius: 50%; /* Makes it a circle */
  animation: spin 1s linear infinite; /* Applies the spin animation */
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.career-hero {
  position: relative;
  display: flex;
  justify-content: center;
}
.isolated-girl {
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: 2;
}
.career-hero .text-grid {
  display: grid;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  grid-template-columns: 1fr 1fr;
}
.text-grid h1 {
  font-size: 7.5rem;
  color: var(--zia-red);
  font-family: "museo_300";
  align-self: center;
  justify-self: end;
  margin-bottom: 20%;
  margin-right: 8%;
  transform: translateX(170px);
  opacity: 0;
  transition: transform 0.8s ease, opacity 1s ease;
}
.text-grid h1.is-visible {
  transform: translateX(0);
  opacity: 1;
}
.text-grid p {
  z-index: 3;
  font-size: 1rem;
  color: #ffffff;
  font-family: "museo_300";
  align-self: center;
  justify-self: start;
  text-transform: none;
  margin-top: 40%;
  opacity: 0;
  transform: translateY(170px);
  transition: transform 0.8s ease, opacity 1s ease;
}
.text-grid p.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.always-room {
  padding-block: 9.25rem;
}
.always-room h2 {
  margin-bottom: 2rem;
}
.always-room p {
  /* width: 50%; */
}
/* why join zia */
.why-join-slider {
  padding-top: 2rem;
  padding-bottom: 9.25rem;
}
.slide-cards-cont{
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap:wrap;
  row-gap: 3rem;
}
/* .swiper-slide {
  width: 360px !important;
  height: 512px !important;
} */
.slide-card {
  display: flex;
  position: relative;
  color: white;
  perspective: 1200px; /* big value -> subtle 3D */
  -webkit-perspective: 1200px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform, filter;
  transition:
    filter 0.3s ease,
    transform 0.3s ease,
    translate 0.3s ease;
  /* width: 360px !important; */
  /* height:512px !important; */
  flex: 0 0 50%;
  /* background-color: #e5e8e9; */
  translate: 0 -6px;
}
.slide-card.is-hover {
  -webkit-filter: drop-shadow(5px 5px 0.5rem rgba(23, 35, 72, 0.5));
  filter: drop-shadow(5px 5px 0.5rem rgba(23, 35, 72, 0.5));
  translate: 0 0;
}
.slide-card .img-wrap {
  position: relative;
}
.slide-card img {
  width: 100%;
  height: auto;
  display: block;
  margin-inline: auto;
}
.slide-card .text-block {
  position: relative;
  z-index: 1;
  padding: 0 40px 0px 40px;
}
.text-block h3 {
  font-size: 2.5rem;
  color: var(--zia-blue);
}
.text-block p {
  color: var(--zia-blue);
}

/* hiring process */
.hiring-process {
  background-color: var(--zia-red);
  padding-block: 8rem;
}
.hiring-process > div {
  display: grid;
  grid-template-columns: 0.3fr 1fr;
  gap: 1rem;
}
.hiring-process .row-custom > div {
  display: flex;
  align-items: center;
}
.hiring-process h3 {
  font-size: 3rem;
  color: white;
  font-family: "museo_300";
}
.hiring-process h4 {
  /* display: flex;
  align-items: center;
  gap: 2rem;
  */
  font-size: 1.5rem;
  color: white;
  font-family: "museo_300";
  width: 30%;
}
.hiring-process img {
  aspect-ratio: 1 / 1;
  height: 33px;
}
.hiring-process p {
  color: white;
  font-size: 1rem;
  font-family: "museo_300";
  text-transform: none;
  margin: 0;
  text-wrap: pretty;
  justify-self: end;
  flex: 0 0 70%;
}
.column-2 .row-custom {
  display: grid;
  grid-template-columns: 0fr 1fr;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.column-2 {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.alert-text {
  margin: 2rem;
}
.looking-for {
  padding-block: 9.25rem;
  padding-bottom: 7rem;
}
.looking-for .nav {
  display: flex;
  justify-content: space-between;
  margin-block: 2rem;
  font-size: 1.5rem;
}
.looking-for .nav a {
  color: var(--zia-blue);
  text-decoration: none !important;
}
.looking-for .nav a:hover,
.looking-for .nav a.active {
  color: var(--zia-red);
}
.looking-for .nav .locations {
  display: flex;
  gap: 50px;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  column-gap: 32px;
  row-gap: 35px;
  align-items: flex-start;
}

/* card (6 items: .card * 6) */
.cards {
  /* two columns: each card takes half the container minus gap */
  flex: 0 0 calc(50% - 16px); /* 12px compensates half the 24px gap */
  background-color: var(--zia-gray);
  color: var(--zia-blue);
  padding: 32px;
  display: flex;
  flex-direction: column; /* allow content to stack and grow */
  align-self: stretch;
  text-decoration: none !important;
  gap: 12px;
  transition: background-color 0.3s ease;
  justify-content: space-between;
}
.cards h3 {
  font-size: 1.5rem;
  font-family: "museo_bold";
  transition: color 0.3s ease;
}
.cards p {
  font-size: 0.75rem;
  font-family: "museo_300";
  transition: color 0.3s ease;
}
.cards p:last-of-type {
  margin: 0;
}
.cards-container .sub-info {
  display: flex;
}
.cards-container .sub-info .column {
  display: flex;
  flex-direction: column;
  width: 32.5%;
}
.cards-container .sub-info .column:last-of-type {
  flex-grow: 1;
}
.sub-info .column p {
  margin: 0;
}
.cards:hover {
  background-color: var(--zia-red);
}
.cards:hover h3,
.cards:hover p {
  color: white;
}

footer .middle {
  min-height: 8rem;
  margin: 4rem 0 3rem 0;
}
@media screen and (max-width: 1520px) {
  .slide-card {
    /* aspect-ratio: 9 / 5.5; */
  }
}
@media screen and (max-width: 1300px) {
  .text-grid h1 {
    margin-right: 11%;
  }
  .text-grid p {
    margin-top: 50%;
  }
  .slide-card {
    /* aspect-ratio: 9 / 6; */
  }
}
@media screen and (max-width: 1100px) {
  .text-grid h1 {
    margin-right: 12%;
  }
  .text-grid p {
    margin-top: 65%;
  }
}
@media (max-width: 1020px) {
  .slide-card {
    /* aspect-ratio: 9 / 8; */
  }
}

@media screen and (max-width: 991px) {
  .cards-container .sub-info .column {
    width: 50%;
  }
  .text-block p {
    /* aspect-ratio: 16 / 4; */
  }
  .job-head .spread {
    width: 100%;
  }
  .hiring-process > div {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    gap: 1rem;
  }
  .hiring-process > div h3 br:first-of-type {
    display: none;
  }
  .column-2 {
    gap: 2rem;
  }
  .column-2 .row-custom {
    grid-template-columns: 0.4fr 1fr;
    gap: unset;
  }
  .hiring-process img {
    height: 80%;
    width: auto;
    align-self: start;
  }
  .hiring-process .row-custom > div {
    align-items: start;
    flex-direction: column;
  }
  .hiring-process h4,
  .hiring-process p {
    width: 100%;
    flex: 0 0 100%;
  }
  .column-2,
  .column-1 {
    width: 80%;
    margin-inline: auto;
  }
  .job-head h2 {
    text-wrap: pretty;
    font-size: 3.5rem;
  }
  .always-room h2,
  h2.slider-basis,
  .looking-for h2 {
    text-wrap: pretty;
    font-size: 3rem;
  }
  .always-room p {
    width: 80%;
  }
}
@media screen and (max-width: 920px) {
  .text-grid h1 {
    position: absolute;
    margin-right: 0;
    margin-bottom: 0;
    justify-self: center;
    top: 15%;
    font-size: 8.5rem;
    z-index: 20;
  }
  .text-grid p {
    position: absolute;
    margin-top: 0;
    justify-self: center;
    text-align: center;
    bottom: 20%;
    font-size: 1.25rem;
  }
}
@media (max-width: 783px) {
  .slide-card {
    /* aspect-ratio: 9 / 7.25; */
  }
}
/* single-column on small screens */
@media (max-width: 767px) {
  .cards {
    flex: 0 0 100%;
  }
  .single-select {
    flex-direction: column;
  }
  .column-2 .row-custom {
    gap: 2rem;
  }
  .hiring-process img {
    height: auto;
    width: 100%;
    align-self: start;
  }
  .cards-container .sub-info .column {
    width: 40%;
  }
  .slide-card {
    /* aspect-ratio: 9 / 5; */
  }
}
@media (max-width: 720px) {
  .slide-card {
    /* aspect-ratio: 9 / 6.5; */
  }
}
@media (max-width: 620px) {
  .slide-card {
    /* aspect-ratio: 9 / 8; */
  }
}
@media (max-width: 573px) {
  .slide-card {
    /* aspect-ratio: 9 / 4; */
  }
}

@media screen and (max-width: 499px) {
  .slide-card {
    /* aspect-ratio: 9 / 6; */
  }
  .cards-container .sub-info .column {
    width: 50%;
  }
  .isolated-girl,
  .career-hero {
    height: 50vh;
  }
  .text-grid h1 {
    font-size: 6.5rem;
    z-index: 20;
  }
  .text-grid p {
    font-size: 1rem;
  }
  /* .swiper-slide,
  .slide-card {
    width: 300px !important;
    height: 480px !important;
  } */
  .slide-card h3 {
    font-size: 2rem;
  }
}

/* tweak for very large screens (keeps two columns but limits width) */
/* @media (min-width:1400px){
    .cards-container{ gap:28px }
    .card{ padding:22px }
  } */
