* {
  box-sizing: border-box;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  font-family: "Saira Semi Condensed", sans-serif;
}
body {
  width: 100%;
}
main {
  width: 100%;
  height: 100svh;
  background: blue;
  position: relative;
  display: flex;
  flex-direction: column;
}
#main-img {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  object-fit: cover;
}
#main-gradient {
  width: 100%;
  height: 50%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    #154267 5.85%,
    rgba(102, 102, 102, 0) 100%
  );
}
header {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding-inline: 50px;
  position: relative;
  z-index: 2;
  margin-top: 36px;
  height: fit-content;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
#header-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 40px;
}
#header-list li {
  font-size: 26px;
  font-weight: 500;
  color: white;
  cursor: pointer;
}
#inner-content {
  display: flex;
  width: 100%;
  position: relative;
  z-index: 2;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 50px;
  padding-top: 200px;
  align-items: center;
}
#inner-content-top-block img {
  height: 88px;
  width: fit-content;
}
#inner-content-top-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 35px;
  font-weight: 800;
  color: white;
}
#inner-content-bottom-block {
  display: flex;
  flex-direction: column;
  gap: 100px;
  align-items: center;
}
#inner-content-bottom-block button {
  width: 400px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: #00335c;
  font-size: 22px;
  font-weight: 700;
  font-family: "Orbitron", sans-serif;
  cursor: pointer;
}
#inner-content-bottom-block h2 {
  font-size: 42px;
  font-weight: 500;
  color: white;
  line-height: 100%;
  text-align: center;
}
#form {
  width: 100%;
  padding-block: 60px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}
h3 {
  font-size: 42px;
  font-weight: 800;
  color: #0e283d;
  font-family: "Orbitron", sans-serif;
  text-align: center;
}
#form > div {
  display: flex;
  max-width: 600px;
  width: 100%;
  flex-direction: column;
  gap: 20px;

  input {
    width: 100%;
    height: 55px;
    background: #e2e2e2;
    border: 1px solid #00335c;
    font-size: 18px;
    font-weight: 500;
    padding-inline: 30px;
    font-family: "Saira", sans-serif;
  }
  button {
    background: #0e283d;
    color: white;
    cursor: pointer;
    font-family: "Saira", sans-serif;
    width: 100%;
    height: 50px;
    font-size: 22px;
    font-weight: 500;
  }
}
footer {
  width: 100%;
  border-top: 4px solid #0e283d;
  ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
    padding-block: 40px;
    font-style: normal;

    li {
      font-size: 18px;
      font-weight: 500;
      font-family: "Saira", sans-serif;
      color: #0e283d;
      text-align: center;
      a {
        all: unset;
        text-decoration: none;
        color: #0e283d;
        font-style: normal;
        cursor: pointer;
      }
    }
  }
  div {
    background: #0e283d;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    span {
      font-size: 18px;
      font-weight: 400;
      color: white;
      a {
        color: white;
        font-style: normal;
        cursor: pointer;
      }
    }
  }
}

/* ===== MODAL ===== */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

#modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

#modal {
  background: white;
  width: 100%;
  max-width: 1260px;
  position: relative;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: all 0.35s ease;
  display: flex;
}

#modal-overlay.active #modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

#modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  cursor: pointer;
  display: none;
  align-items: center;
  img {
    height: 24px;
  }
}
#modal-left-side {
  width: 460px;
  background: #0e283d;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 100px;
  padding-inline: 20px;

  img {
    height: 88px;
    width: fit-content;
  }

  #modal-text-content {
    display: flex;
    position: relative;

    #content {
      display: flex;
      flex-direction: column;
      gap: 16px;
      transition: all 0.3s;
    }
    #success-content {
      position: absolute;
      left: 0;
      top: 0;
      color: white;
      font-family: "Orbitron", sans-serif;
      display: flex;
      flex-direction: column;
      gap: 16px;
      transition: all 0.3s;
      opacity: 0;

      > :first-child {
        font-size: 46px;
        font-weight: 800;
        line-height: 100%;
      }
      > :last-child {
        font-size: 35px;
        font-weight: 400;
        line-height: 100%;
      }
    }
  }
  div {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 100px;
    h3 {
      font-family: "Orbitron", sans-serif;
      font-size: 36px;
      font-weight: 700;
      color: white;
      text-align: start;
    }
    h4 {
      color: white;
      font-size: 16px;
      font-weight: 400;
    }
  }
  ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    list-style: none;
    margin-top: 70px;

    li {
      display: flex;
      align-items: center;
      gap: 10px;

      img {
        height: 24px;
      }
      span {
        font-size: 18px;
        font-weight: 500;
        color: white;
      }
    }
  }
}
#modal-right-side {
  width: calc(100% - 460px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 100px;
  position: relative;

  form {
    width: 100%;
    max-width: 640px;
    padding-inline: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s;

    button {
      height: 50px;
      width: 270px;
      background: #0e283d;
      font-size: 22px;
      font-weight: 800;
      font-family: "Orbitron", sans-serif;
      letter-spacing: 5px;
      color: white;
      cursor: pointer;
      margin: 0 auto;
      margin-top: 30px;
    }

    #input-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 30px;
    }

    .input-col {
      display: flex;
      flex-direction: column;
      gap: 2px;

      label {
        margin-left: 20px;
        font-size: 16px;
        font-weight: 600;
        color: #0e283d;
      }
      input {
        background: #f0f0f0;
        border: 1px solid #d5d5d5;
        width: 100%;
        padding-inline: 20px;
        font-weight: 300;
        height: 50px;
        font-size: 16px;
      }
      textarea {
        background: #f0f0f0;
        border: 1px solid #d5d5d5;
        width: 100%;
        padding-inline: 20px;
        font-weight: 300;
        font-size: 16px;
        resize: none;
        height: 230px;
        padding-block: 10px;
      }
    }
  }
}
.input-error {
  border: 1px solid red !important;
}

#form-success-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 100px;
  opacity: 0;
  visibility: hidden;

  #form-success-content-inner {
    height: 100%;
    width: calc(100% - 200px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    #form-success-content-head {
      width: 100%;
      display: flex;
      flex-direction: column;
      line-height: 100%;
      font-size: 46px;
      font-weight: 700;
      color: #0e283d;

      span {
        font-family: "Orbitron", sans-serif !important;
      }
      > :last-child {
        text-align: end;
      }
    }
    #form-success-content-main {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 25px;

      > :first-child {
        color: #0e283d;
        font-size: 35px;
        font-weight: 400;
        line-height: 100%;
        text-align: center;
      }
      > :last-child {
        color: #0e283d;
        font-size: 32px;
        font-weight: 500;
        line-height: 100%;
      }
    }
    > button {
      height: 50px;
      width: 272px;
      background-color: #0e283d;
      color: white;
      font-family: "Orbitron", sans-serif;
      font-size: 22px;
      font-weight: 400;
      letter-spacing: 5px;
      cursor: pointer;
    }
  }
}

#modal.success form {
  opacity: 0;
  visibility: hidden;
}
#modal.success #form-success-content {
  opacity: 1;
  visibility: visible;
}
#modal.success #modal-text-content #content {
  opacity: 0;
  visibility: hidden;
}
#modal.success #modal-text-content #success-content {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 900px) {
  #inner-content-top-block {
    zoom: 0.8;
    padding-inline: 20px;

    h1 {
      text-align: center;
    }
  }
  #modal-close {
    display: flex;
  }
  #inner-content-bottom-block {
    padding-inline: 20px;
    button {
      width: 100%;
    }
  }

  #input-grid {
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 20px !important;
  }
  #modal {
    height: 100svh;
    max-height: 100svh;
    min-height: 100svh;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;

    #modal-left-side {
      width: 100%;
      padding-block: 20px;
      align-items: start;

      > img {
        zoom: 0.8;
      }
      > div {
        margin-top: 20px;

        > ul {
          margin-top: 20px;
        }
      }
    }
  }
  #modal-right-side {
    padding-block: 20px;
    width: 100%;
    padding-bottom: 50px;
    > form {
      max-width: unset;
    }
  }
  #form {
    padding-inline: 20px;
  }
  footer ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-block: 10px;
  }
  footer div > span {
    padding-inline: 20px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  #inner-content {
    padding-top: 100px;
  }
  #inner-content-bottom-block h2 {
    zoom: 0.8;
  }
  header {
    padding-inline: 20px;
  }
  #header-list {
    gap: 20px;
  }
  #form h3 {
    zoom: 0.8;
  }
  #modal-left-side {
    zoom: 0.8;
  }
}
@media (max-width: 400px) {
  #modal-left-side {
    zoom: 0.7;
  }
}
#form-inner-content {
    position: relative;
}
#form-inner-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s;
    position: relative;
    z-index: 3;
}
#form-inner-success {
    display: flex;
    flex-direction: column;
    position: absolute;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-top: 20px;
    opacity: 0;
    transition: all 0.3s;
    span {
        line-height: 100%;
        font-size: 32px;
        font-weight: 500;
        text-align: center;
        color: #0e283d;
    }
}

button {
    &:disabled {
        opacity: 0.8;
        cursor: unset !important;
    }
}