.jb-hero,
.jb-single {
  padding: 3em 0 10em;
}

.jb-hero__wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 3.75em;
}

.jb-hero__text {
  width: calc(50% - 3.75em / 2);
}

.jb-hero__text-sticky {
  position: sticky;
  top: 180px;
}

.jb-hero__text :where(h1, h2, h3, h4, h5, h6) {
  margin-bottom: 14px;
}

.jb-hero__text :where(h1, h2, h3, h4, h5, h6, p) {
  max-width: 27em;
}

.jb-hero-slider {
  height: calc(50vw - 1.875293014533521em - (3.75em / 2));
}
.jb-hero__slider {
  width: calc(50% - 3.75em / 2);
}

.jb-hero-slide {
  /* background-color: var(--color-warm-dark); */
  padding: 3em;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: calc(50vw - 1.875293014533521em - (3.75em / 2));
  border-radius: 1.0315em;
  overflow: hidden;
  gap: 1em;
}

.swiper-slide {
  height: auto;
}

.jb-hero-slide img {
  height: 60%;
  transform: scale(0.5);
  opacity: 0;
}

.jb-hero-slide-text {
  padding: 0.8em 3em;
  border-radius: 0.5em;
  transform: rotate(0deg) translateY(-200%);
  opacity: 0;
}

.jb-hero-slide-text h5 {
  color: var(--color-warm-white);
}

.jb-hero-slide.swiper-slide-active img {
  transform: scale(1);
  transition: all 0.3s ease-out;
  opacity: 1;
}

.jb-hero-slide.swiper-slide-active .jb-hero-slide-text {
  transform: rotate(10deg) translateY(-10%);
  transition: all 0.5s ease-out 0.2s;
  opacity: 1;
}

.jb-hero__buttons {
  margin-top: 2em;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 0.75em;
}

.jb-hero__buttons .m-btn {
  max-width: 23.91em;
}

.jb-single__cta a {
  max-width: 23.91em;
  margin-top: 3em;
}

.jb-hero__buttons.visible-991 {
  display: none;
}

.jb-hero__buttons .m-btn--icon img {
  max-width: 2.4em;
  width: 100%;
}

@media only screen and (max-width: 991px) {
  .jb-hero__wrap {
    -webkit-box-orient: vertical;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 3em;
  }

  .jb-hero__text,
  .jb-hero__slider {
    width: 100%;
  }

  .jb-hero-slide {
    height: calc(100vw - (1.875293014533521em * 2));
  }
  .jb-hero-slider {
    height: calc(100vw - (1.875293014533521em * 2));
  }

  .jb-hero__text {
    text-align: center;
    padding-bottom: 0;
  }

  .jb-hero__text :where(h1, h2, h3, h4, h5, h6, p) {
    max-width: 27em;
    margin-left: auto;
    margin-right: auto;
  }

  .jb-hero__buttons.visible-991 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    max-width: 100%;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  .jb-single__cta a,
  .jb-hero__buttons .m-btn {
    width: 100%;
    max-width: 100%;
  }

  .jb-hero__buttons.hidden-991 {
    display: none;
  }

  .jb-hero__buttons {
    margin-top: 1.8em;
  }
}

@media only screen and (max-width: 767px) {
  .jb-hero-slide {
    height: calc(100vw - 24px);
  }
  .jb-hero-slider {
    height: calc(100vw - 24px);
  }

  .jb-hero__text :where(h1, h2, h3, h4, h5, h6, p) {
    max-width: 30em;
  }

  .jb-hero-slide {
    padding: 1em;
  }
}

@media only screen and (max-width: 575px) {
  .jb-hero__buttons.visible-991 {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 0.3em;
  }
  .jb-hero__buttons .m-btn {
    max-width: 100%;
  }
}

@media only screen and (max-width: 479px) {
  .jb-hero__text :where(h1, h2, h3, h4, h5, h6, p) {
    max-width: 100%;
  }

  .jb-hero-slide-text h5 {
    font-size: 1.4em;
  }
  .jb-hero-slide img {
    height: 70%;
  }
  .jb-hero-slide-text {
    padding: 0.7em 2.5em;
  }
}

/*Positions*/

.jb-position {
  padding: 0 0 10em;
}

.jb-position__text {
  text-align: center;
  margin-bottom: 3em;
}

.jb-position__wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5em;
}

.jb-position__box {
  width: 100%;
  background-color: var(--color-warm-dark);
  border-radius: 1.0315em;
  padding: 2em 1.5em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5em;
}

.jb-position__box-icon {
  margin-bottom: 25px;
}

.jb-position__box-text h6 {
  margin-bottom: 12px;
}

.jb-position__box-text p {
  font-weight: 600;
}

.jb-position__box-text a {
  transition: all 0.3s ease-out;
}

.jb-position__box-text a:hover {
  color: var(--color-red);
}

.jb-icon {
  background-color: var(--color-red);
  border-radius: 0.5em;
  padding: 0.5em;
  display: inline-block;
  width: 3.3em;
  height: 3.3em;
}

@media only screen and (max-width: 991px) {
  .jb-position__wrap {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media only screen and (max-width: 767px) {
  .jb-position__wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (max-width: 575px) {
  .jb-position__wrap {
    grid-template-columns: repeat(1, 1fr);
  }
}

/*Form*/

.jb-form {
  padding-bottom: 10em;
}

.jb-form__wrap {
  background-color: var(--color-red);
  border-radius: 1.0315em;
  padding: 5em 10em;
}

.jb-form__text {
  text-align: center;
  margin-bottom: 3em;
}

.jb-form__text :where(h1, h2, h3, h4, h5, h6) {
  color: var(--color-warm-white);
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  width: 100%;
  padding: 0.1875293014533521em 1em;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: var(--color-dark);
  border: 0;
  background-color: var(--color-warm-white);
  font-size: 0.9376465072667605em;
  line-height: 1.1251758087201127em;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.46883em;
  height: 3.1879981247069855em;
  position: relative;
  -webkit-transition: all 0.4s ease-in;
  -o-transition: all 0.4s ease-in;
  transition: all 0.4s ease-in;
  outline: none;
  color: var(--color-dark);
  font-family: "Ranchers", sans-serif;
}

.input-wrap select,
.input-wrap input {
  width: 100%;
}

.input-wrap select {
  color: rgba(18, 18, 15, 0.5) !important;
}
.input-wrap select.active {
  color: var(--color-dark) !important;
}

select.wpcf7-select {
  appearance: none; /* Remove native arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center; /* Move icon 10px left from the right edge */
  padding-right: 30px; /* Make space for the arrow */
}

.dnd-upload-status .dnd-upload-details .remove-file span:after,
.dnd-upload-status .dnd-upload-image span.file {
  filter: invert(1) brightness(999);
}

.dnd-upload-status .dnd-upload-details .dnd-progress-bar {
  background: var(--color-warm-dark) !important;
}

.dnd-upload-status .dnd-upload-image {
  border-color: var(--color-warm-white) !important;
}

.dnd-upload-status .dnd-upload-details .name em,
.dnd-upload-status .dnd-upload-details .name,
.wpcf7-response-output,
.wpcf7-not-valid-tip {
  color: var(--color-warm-white) !important;
}

.input-wrap input::-webkit-input-placeholder,
.input-wrap textarea::-webkit-input-placeholder {
  color: rgba(18, 18, 15, 0.5);
}

.input-wrap input::-moz-placeholder,
.input-wrap textarea::-moz-placeholder {
  color: rgba(18, 18, 15, 0.5);
}

.input-wrap input:-ms-input-placeholder,
.input-wrap textarea:-ms-input-placeholder {
  color: rgba(18, 18, 15, 0.5);
}

.input-wrap input::-ms-input-placeholder,
.input-wrap textarea::-ms-input-placeholder {
  color: rgba(18, 18, 15, 0.5);
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
  color: rgba(18, 18, 15, 0.5);
}

.input-wrap textarea {
  height: auto;
  resize: none;
  padding: 0.8em 1em;
  height: 10em;
}

.input-box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 0.5em;
  margin-bottom: 1.5em;
  width: 100%;
}

label {
  font-size: 1.2em;
  line-height: 1;
  color: var(--color-black);
  font-weight: 600;
}

.input-btn {
  position: relative;
}

.input-btn button {
  width: 100%;
  outline: none;
  border: 0;
}

.input-btn button .m-btn-text {
  padding: 0;
}

.wpcf7-spinner {
  position: absolute;
  right: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.input-btn .s-btn {
  width: 100%;
  outline: none;
  border: 0;
}

.wpcf7-response-output {
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-radius: 0.46883em;
  padding: 1.2em 1em !important;
  text-align: center;
}

.input-wrapper {
  display: flex;
  gap: 1.5em;
}

.input-btn button {
  max-width: 23.91em;
  margin: 0 auto;
}

.codedropz-upload-handler {
  border: 1px solid var(--color-warm-white);
  width: 100%;
  padding: 0.1875293014533521em 1em;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: var(--color-dark);
  border: 0;
  background-color: var(--color-warm-white);
  font-size: 0.9376465072667605em;
  line-height: 1.1251758087201127em;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.46883em;
  height: 3.1879981247069855em;
  position: relative;
  -webkit-transition: all 0.4s ease-in;
  -o-transition: all 0.4s ease-in;
  transition: all 0.4s ease-in;
  outline: none;
  color: var(--color-dark);
  font-family: "Ranchers", sans-serif;
  height: 10em;
  position: relative;
}

.codedropz-upload-inner h3,
.codedropz-upload-inner span {
  display: none;
}

.dnd-upload-counter,
.codedropz-upload-inner .codedropz-btn-wrap a.cd-upload-btn {
  color: rgba(18, 18, 15, 0.5);
}

.cd-upload-btn {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.6em;
}

.pdf-icon::before {
  content: "";
  display: flex;
  width: 2.2em;
  height: 2.2em;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("https://chaptly.app/wp-content/uploads/2025/05/file.png");
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--color-warm-white) inset;
}

@media only screen and (max-width: 991px) {
  .jb-form__wrap {
    padding: 5em 7em;
  }

  .input-btn button {
    max-width: 100%;
  }
}

@media only screen and (max-width: 767px) {
  .jb-form__wrap {
    padding: 5em 3em;
  }
}

@media only screen and (max-width: 575px) {
  .input-wrap input {
    width: 100%;
  }

  .jb-form__wrap {
    padding: 5em 12px;
  }

  .input-wrapper {
    flex-direction: column;
    gap: 0;
  }

  .input-box {
    margin-bottom: 1.2em;
  }
}

.jb-single__title {
  margin-bottom: 3em;
  text-align: center;
}

.jb-single__text :where(h1, h2, h3, h4, h5, h6) {
  margin-top: 0.8em;
}
