.first-section,
.second-section {
  background: radial-gradient(
    97.57% 210.75% at 0.9% 2.98%,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.2) 100%
  );
  border: 3px solid #efefef;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 1920px;
  backdrop-filter: blur(34px);
}

.circle-first-section {
  position: absolute;
  z-index: -1;

  &.circle1 {
    width: 700px;
    height: 700px;
    left: -50px;
    top: 200px;
    filter: blur(15px);
  }

  &.circle2 {
    width: 500px;
    height: 500px;
    right: 300px;
    top: 400px;
  }

  &.circle3 {
    width: 200px;
    height: 200px;
    right: 100px;
    top: 100px;
    filter: blur(15px);
  }
}

.show-offers {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  width: 350px;
  height: 65px;
  background-color: #e74d4d;
  border: 3px solid #e7e7e7;
  border-radius: 30px;
  color: #fff;
  font-size: 21px;
  font-weight: 600;
  z-index: 1;
  text-decoration: none;
  bottom: 10px;
  right: 10px;
}

.first-section {
  border-radius: 0px 0px 34px 34px;
  margin-top: 100px;
  padding: 70px 20px;
  min-height: 750px;

  @media (max-width: 768px) {
    padding: 70px 20px 100px 20px;
  }

  p {
    color: #000;
  }

  .text {
    font-weight: 400;
    font-size: 30px;
    line-height: 45px;
    max-width: 1150px;
    text-align: center;

    span {
      font-weight: 700;
    }
  }

  .heading {
    font-size: 65px;
    line-height: 90px;
    font-weight: 500;

    span {
      color: #52a7a4;
      font-weight: 600;
    }
  }

  .sub-heading {
    font-size: 30px;
    line-height: 45px;
    font-weight: 600;
  }

  .contact-us {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 10px;
    width: 100%;
    max-width: 930px;
    font-size: 16px;
    position: absolute;
    bottom: 30px;

    @media (max-width: 1024px) {
      /* top: 490px; */
    }

    @media (max-width: 768px) {
      margin: auto;
      top: unset;
      bottom: -70px;
      gap: 0px;
    }

    .heading {
      font-size: 16px;
      line-height: 21px;
      font-weight: 600;
      color: #000;
    }

    .contact {
      display: flex;
      gap: 5px;
      font-size: 16px;
      line-height: 21px;

      a {
        color: #000;
        text-decoration: underline;
      }

      span {
        color: #000;
      }
    }
  }

  .application-form {
    width: 100%;
    max-width: 930px;
    position: relative;

    @media (max-width: 1024px) {
      max-width: 730px;
    }

    .klauzula {
      font-size: 10px;
      margin-top: 20px;
      margin-bottom: 10px;
    }

    .komunikat {
      position: absolute;
      text-align: center;
      left: 50%;
      transform: translateX(-50%);
      font-size: 15px;
      color: red;
      display: none;
    }

    .wpcf7-form {
      .form_cv_col {
        display: flex;
        justify-content: center;
        gap: 30px;

        @media (max-width: 768px) {
          flex-wrap: wrap;
        }

        &:nth-child(2) {
          p:nth-child(2) {
            label {
              &::before {
                content: "*";
                color: rgba(231, 77, 77, 1);
                margin-right: 5px;
              }
            }
          }
        }

        p {
          @media (max-width: 767px) {
            margin: 5px auto;
          }
          label {
            font-weight: 700;
            font-size: 11px;
            line-height: 100%;
            letter-spacing: 0%;
            margin-left: 25px;

            span {
              input:not(.wpcf7-file) {
                width: 450px;
                height: 55px;
                border-radius: 30px;
                border: 1px solid rgba(172, 165, 165, 1);
                background: #fff;
                font-size: 16px;
                padding-left: 25px;
                backdrop-filter: blur(42px);
                box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.25);

                @media (max-width: 1024px) {
                  width: 400px;
                }

                &:focus {
                  outline: none;
                  &::placeholder {
                    opacity: 0;
                    transition: 0.3s;
                  }
                }

                &::placeholder {
                  color: rgba(128, 128, 128, 1);
                  font-weight: 400;
                  font-size: 16px;
                  transition: 0.3s;
                }
              }
            }
            span[data-name="file-436"] {
              width: 450px;
              height: 55px;
              border-radius: 30px;
              border: 1px solid rgba(172, 165, 165, 1);
              background: #fff;
              font-size: 16px;
              padding-left: 4px;
              position: relative;
              display: flex;
              align-items: center;
              justify-content: flex-start;
              cursor: pointer;
              backdrop-filter: blur(42px);
              box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.25);

              @media (max-width: 1024px) {
                width: 400px;
              }

              input {
                color: rgba(0, 0, 0, 0.5);
                font-size: 16px;
                overflow: hidden;

                &::file-selector-button,
                &::-webkit-file-upload-button {
                  background: rgba(82, 167, 164, 1);
                  color: #fff;
                  width: 157px;
                  height: 45px;
                  border: none;
                  padding: 6px 16px;
                  margin-right: 10px;
                  font-weight: 600;
                  border-radius: 30px;
                  cursor: pointer;
                  transition: 0.3s;
                  box-shadow: 3px 3px 5px 0px rgba(0, 0, 0, 0.15);
                  font-size: 16px;
                }
              }
            }
          }
        }

        @media (max-width: 767px) {
          gap: 0;
        }
      }

      .required-header {
        margin-top: 20px;
        font-weight: 600;
        font-size: 16px;
        margin-bottom: 10px;

        &::before {
          content: "*";
          color: rgba(231, 77, 77, 1);
          margin-right: 5px;
        }
      }

      .wpcf7-acceptance {
        .wpcf7-list-item {
          margin: 0px;
          margin-bottom: 10px;

          label {
            input {
              width: 25px;
              height: 25px;
              border-radius: 5px;
              border: 1px solid #000;
              transform: translateY(7px);
            }
            span {
              font-size: 16px;
              font-weight: 600;

              @media (max-width: 767px) {
                font-size: 13px;
                font-weight: 400;
              }
            }
          }
        }
      }
      p {
        @media (max-width: 767px) {
          .wpcf7-spinner {
            position: absolute;
            right: 20px;
          }
        }
        span[data-name="acceptance-970"] {
          .wpcf7-acceptance {
            .wpcf7-list-item {
              label {
                span {
                  &::before {
                    content: "*";
                    color: rgba(231, 77, 77, 1);
                    margin-right: 5px;
                  }
                }
              }
            }
          }
        }
      }

      p:has(.wpcf7-submit) {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-top: 30px;

        .wpcf7-submit {
          width: 250px;
          height: 55px;
          background-color: rgba(231, 77, 77, 1);
          border-radius: 30px;
          color: #fff;
          font-weight: 600;
          font-size: 18px;
          text-transform: uppercase;
          border: none;
          transition: 0.3s;
          cursor: pointer;
          z-index: 1;

          &:disabled {
            background-color: rgba(231, 77, 77, 0.5);
            cursor: not-allowed;
          }

          @media (hover: hover) {
            &:hover {
              background-color: rgba(231, 77, 77, 0.8);
              transition: 0.3s;
            }
          }
        }
      }
    }
  }
}

.circle-second-section {
  position: absolute;
  z-index: -1;

  &.circle1 {
    width: 600px;
    height: 600px;
    right: -50px;
    top: 1000px;
    filter: blur(15px);
  }

  &.circle2 {
    width: 450px;
    height: 450pz;
    right: 50px;
    bottom: 500px;
    filter: blur(15px);
  }

  &.circle3 {
    width: 200px;
    height: 200px;
    left: 50%;
    transform: translateX(-60%);
    bottom: 700px;
  }

  &.circle4 {
    width: 500px;
    height: 500px;
    left: -50px;
    bottom: 1100px;
  }
}

.second-section {
  border-radius: 34px;
  margin-top: 20px;
  padding: 40px 20px;
  min-height: 1150px;

  .heading {
    font-size: 65px;
    line-height: 90px;
    color: #000;
    font-weight: 500;
  }

  #oferty-search {
    position: relative;

    @media (max-width: 768px) {
      width: 100%;
    }

    input[type="text"] {
      border-radius: 30px;
      height: 55px;
      width: 450px;
      border: 1px solid rgba(172, 165, 165, 1);
      backdrop-filter: blur(42px);
      box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.25);
      background: url("/wp-content/themes/stellarsite/assets/images/svg/Search_alt.svg")
        no-repeat 10px center;
      padding-left: 40px;
      font-size: 16px;
      background-position-x: 13px;

      &:focus {
        outline: none;
        &::placeholder {
          opacity: 0;
          transition: 0.3s;
        }
      }

      @media (max-width: 768px) {
        width: 100%;
        background: #fff;
        padding-left: 20px;
      }
    }

    input[type="text"]::placeholder {
      color: rgba(128, 128, 128, 1);
      font-weight: 400;
      font-size: 16px;
      padding-left: 0px;
      transition: 0.3s;
    }

    button {
      width: 200px;
      height: 55px;
      background-color: rgba(231, 77, 77, 1);
      backdrop-filter: blur(42px);
      box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.25);
      border-radius: 30px;
      color: #fff;
      font-weight: 600;
      font-size: 18px;
      text-transform: uppercase;
      border: none;
      transition: 0.3s;
      cursor: pointer;

      @media (hover: hover) {
        &:hover {
          background-color: rgba(231, 77, 77, 0.8);
          transition: 0.3s;
        }
      }

      @media (max-width: 768px) {
        position: absolute;
        right: 2px;
        top: 2px;
        border-radius: 50%;
        width: 51px;
        height: 51px;
      }

      .search-label {
        display: block;

        @media (max-width: 768px) {
          display: none;
        }
      }

      .search-icon {
        display: none;
        width: 24px;
        height: 24px;
        margin: auto;

        @media (max-width: 768px) {
          display: block;
        }
      }
    }
  }

  #oferty-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 800px;
    width: 100%;

    .oferty-lista {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 20px;
      width: 100%;
      max-width: 1150px;
      margin: 20px auto;

      .oferta {
        border: 1px solid rgba(172, 165, 165, 1);
        backdrop-filter: blur(42px);
        box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.25);
        border-radius: 61.5px;
        height: 123px;
        display: flex;
        align-items: center;
        padding: 0 30px;
        justify-content: space-between;
        position: relative;
        transition: 0.3s;

        @media (max-width: 768px) {
          border-radius: 34px;
          padding: 12px 24px;
          flex-direction: column;
          height: auto;
          align-items: flex-start;
          gap: 20px;
        }

        @media (hover: hover) {
          &:hover {
            box-shadow: 0px 6px 16px 0px rgba(0, 0, 0, 0.35);
            transition: 0.3s;
          }
        }

        .oferta__content {
          margin-left: 50px;
          display: flex;
          flex-direction: column;
          justify-content: center;

          @media (max-width: 768px) {
            margin: 0;
            width: 100%;
          }

          .oferta__title {
            font-weight: 700;
            font-size: 21px;
          }

          .oferta__time {
            font-weight: 500;
            font-size: 13px;
            line-height: 21px;
            letter-spacing: 0%;
            color: rgba(124, 120, 120, 1);
          }

          .oferta__meta {
            display: flex;
            font-weight: 500;
            font-size: 13px;
            line-height: 34px;
            letter-spacing: 0%;
            color: rgba(124, 120, 120, 1);

            @media (max-width: 768px) {
              display: flex;
              justify-content: space-between;
              margin-top: 10px;
            }

            .oferta__lokalizacja {
              width: 170px;
              display: flex;
              align-items: center;

              @media (max-width: 768px) {
                width: auto;
              }
            }

            .oferta__typ-umowy {
              display: flex;
              align-items: center;
            }
          }
        }

        .oferta__cta {
          background: rgba(0, 80, 83, 1);
          border-radius: 30px;
          color: #fff;
          font-weight: 600;
          font-size: 18px;
          padding: 10px 20px;
          text-transform: uppercase;
          transition: 0.3s;
          min-width: 200px;
          display: flex;
          justify-content: center;
          align-items: center;
          text-decoration: none;

          @media (max-width: 768px) {
            margin: auto;
          }

          @media (hover: hover) {
            &:hover {
              background: rgba(0, 80, 83, 0.8);
              transition: 0.3s;
            }
          }
        }
      }
    }

    .page-numbers {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 1rem;

      li {
        list-style: none;
        font-size: 18px;
        .current {
          font-weight: 600;
          background: rgba(0, 80, 83, 1);
          color: #fff;
          width: 55px;
          height: 55px;
          border-radius: 50%;
          backdrop-filter: blur(42px);
          box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.25);
        }

        .next {
          svg {
            margin-right: -3px;
          }
        }

        a {
          color: rgba(0, 80, 83, 1);
          background: #fff;
          font-weight: 600;
          border-radius: 50%;
          transition: 0.3s;
          backdrop-filter: blur(42px);
          box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.25);
          border: 1px solid rgba(172, 165, 165, 1);
          width: 55px;
          height: 55px;
          text-decoration: none;

          svg {
            path {
              stroke: rgba(0, 80, 83, 1);
              transition: 0.3s;
            }
          }

          @media (hover: hover) {
            &:hover {
              background: rgba(0, 80, 83, 1);
              transition: 0.3s;
              color: #fff;

              svg {
                path {
                  stroke: #fff;
                  transition: 0.3s;
                }
              }
            }
          }
        }
      }
    }
  }
}

@media (max-width: 1366px) {
  .first-section {
    gap: 20px;
    margin-top: 80px;

    .text {
      font-size: 21px;
      line-height: 34px;
      max-width: 850px;
    }

    .heading {
      font-size: 55px;
    }

    .sub-heading {
      font-size: 21px;
      line-height: 34px;
    }

    .contact-us {
      max-width: 850px;

      .heading {
        font-size: 16px;
      }
      .contact {
        font-size: 16px;
      }
    }
  }
  .second-section {
    .heading {
      font-size: 55px;
    }
  }

  .circle-first-section {
    &.circle1 {
      width: 600px;
      height: 600px;
      left: -150px;
      top: 250px;
    }

    &.circle2 {
      width: 400px;
      height: 400px;
      top: 480px;
    }

    &.circle3 {
      width: 200px;
      height: 200px;
      right: 100px;
      top: 100px;
    }
  }

  .circle-second-section {
    &.circle1 {
      width: 500px;
      height: 500px;
      right: -50px;
      top: 900px;
    }

    &.circle2 {
      width: 350px;
      height: 350px;
      right: 50px;
      bottom: 400px;
    }

    &.circle3 {
      width: 200px;
      height: 200px;
      left: 50%;
      transform: translateX(-60%);
      bottom: 700px;
    }

    &.circle4 {
      width: 400px;
      height: 400px;
      left: -50px;
      bottom: 1100px;
    }
  }
}

@media (max-width: 1024px) {
  .first-section {
    margin-top: 65px;
  }
  .show-offers {
    bottom: 10px;
    right: unset;
    width: 250px;
    height: 55px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .first-section {
    .text {
      font-size: 13px;
      line-height: 21px;
    }
    .heading {
      font-size: 34px;
      line-height: 55px;
    }
    .sub-heading {
      font-size: 13px;
      line-height: 21px;
    }
    .contact-us {
      align-items: center;
      .heading {
        font-size: 16px;
        line-height: 30px;
      }
      .contact {
        font-size: 16px;
        line-height: 30px;
      }
    }
  }
  .second-section {
    background-color: none;

    .heading {
      font-size: 34px;
      line-height: 55px;
    }
  }
}
