.subwrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8rem 1rem 4rem;
    gap: 2rem;
    h2 {
      color: var(--orange);
    }
    span {
      font-weight: bold;
    }
}
.submission-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 500px;
  width: 100%;
  padding: 2rem;
  outline: 1px solid var(--gray);
  border-radius: 20px;
  background-color: white;
  overflow: hidden;
  form {
      display: inherit;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 0.5rem;
      width: 100%;
      margin: 0;
  }
}
.form-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

.form-row .form-control {
  flex: 1 1 0;
}

/* FORM INPUT */
.form-control {
  font-size: 18px;
  font-family: 'Montserrat';
  background: #D9D9D9;
  border: none;
  padding: 1rem;
  width: 100%;
  color: #1E1E1E;
  box-sizing: border-box;
  field-sizing: content;
}
.form-control:focus {
  background: rgb(255, 255, 255);
  color: black;
  outline: 2px solid var(--orange);
}

textarea {
  height: 100px !important;
}

::placeholder {
  font-weight: 400;
  color: gray;
}

.submit-btn {
  font-size: 20px;
  font-weight: bold;
  color: var(--orange);
  padding: 0.5rem 2rem;
  border: none;
  outline: 1px solid var(--orange);
  background-color: white;
  border-radius: 100px;
  transition: all 0.2s ease-in-out;
  margin-top: 1rem;
  cursor: pointer;
}
.submit-btn:hover {
  color: white;
  background-color: var(--orange);
}
/* POPUP */
  .popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  .popup {
    background: var(--blue);
    outline: 1px solid white;
    padding: 20px;
    margin: 1rem;
    max-width: 600px;
    max-height: 90vh;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-radius: 10px;
    overflow-y: scroll;
  }
  .popup h3 { 
    margin-top: 0; 
    text-align: center;
    color: white;
  }
  .popup-details {
    p {
      font-size: 20px;
      color: white;
      word-break: break-word;
      span { color: white;}
    }
  }
  .scrollable-message {
    overflow: scroll;
  }
  .popup-buttons { 
    margin-top: 15px; 
    text-align: right; 
  }
  .popup-buttons button {
    margin-left: 10px;
    padding: 8px 14px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
  }
  #cancel-btn, #confirm-btn { background: white; color: var(--orange); font-size: 20px;}
  #confirm-btn:hover, #cancel-btn:hover {
    background: var(--orange); 
    color: white;
  }

  #confirm-btn:disabled,
  #cancel-btn:disabled {
    color: white;
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
  }
  #popup-status {
    text-align: center;
    p { font-size: 20px; font-weight: 400; color: white;}
  }
  .spinner {
    border: 10px solid transparent;
    border-top: 10px solid var(--orange);
    border-radius: 50%;
    width: 30px; height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
  }
@keyframes spin { 100% { transform: rotate(360deg); } }

.available-jobs {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1rem;
  background-color: var(--blue);
  gap: 2rem;
}

.job-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.job-sec {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  outline: 1px solid white;
  border-radius: 20px;
  padding: 2rem;
  width: clamp(90px, 80vw, 300px);
  p {
    color: white;
  }
  span {
    font-weight: bold;
  }
  a {
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    background-color: var(--orange);
    max-width: 200px;
    width: 100%;
    text-align: center;
    padding: 0.5rem 2rem;
    border-radius: 100px;
  }
}

@media (max-width: 940px) {
  .navbar-bg {
    height: 120px;
  }
  .subwrapper {
    padding: 4rem 1rem;
    gap: 1rem;
  }
  &::before {
    height: 15%; 
  }
  .submit-btn {
    font-size: 18px;
    height: 45px;
  }
  .submission-form {
    padding: 1rem;
    width: 85%;
  }
  .form-control {
    font-size: 16px;
    height: 50px;
  }
  .other-ways {
    flex-direction: column;
    p {margin: 0;}
  }
  .popup-details {
    p {
      font-size: 18px;
    }
  }
  .popup-buttons button {
    padding: 0.5rem;
  }
  #confirm-btn, #cancel-btn {
    font-size: 18px;
  }
}
@media (max-width: 546px) {
  .popup-details {
    p {
      font-size: 16px;
    }
  }
  .form-row{
    flex-direction: column;
  }
  .submit-btn {
    font-size: 16px;
  }
  #confirm-btn, #cancel-btn {
    font-size: 16px;
  }
}
