html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.navbar-bg {
  display: flex;
  position: fixed;
  justify-content: space-between;
  align-items: center;
  top: 0;
  width: 100vw;
  height: 140px;
  background-image: url("../assets/images/texture.png");
  background-size: 100%, 100%;
  background-position: center, center;
  mask-image: linear-gradient(to bottom,
  rgba(0,0,0,1) 70%,
  rgba(0,0,0,0));
  z-index: 8;
}

.subwrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8rem 1rem 2rem;
    gap: 2rem;
}
.submission-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 500px;
  width: 100%;
  padding: 1.5rem;
  border-radius: 20px;
  outline: 1px solid white;
  overflow: hidden;
  form {
      display: inherit;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 1rem;
      width: 100%;
  }
}
/* FORM INPUT */
.form-control {
  font-size: 16px;
  background: white;
  border-radius: 10px;
  border: none;
  padding: 1rem 1rem;
  width: 100%;
  color: gray;
  box-sizing: border-box;
  field-sizing: content;
}
.form-control:focus {
  background: white;
  color: black;
  outline: 2px solid var(--primary);
}
::placeholder {
  font-weight: lighter;
  color: var(--dgray);
}
.submit-btn {
  font-size: 20px;
  font-weight: bold;
  background: transparent;
  outline: 1px solid white;
  color: white;
  padding: 0.5rem 2rem;

  border-radius: 100px;
  border: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}
.submit-btn:hover {
  color: var(--blue);
  background-color: white;
}
/* 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;
    border-radius: 12px;
    max-width: 600px;
    max-height: 90vh;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    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: none;
    border-radius: 12px;
    cursor: pointer;
  }
  #cancel-btn { background: white; color: var(--blue); font-size: 20px;}
  #confirm-btn { background: white; color: var(--blue); font-size: 20px;}

  #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; }
  }
  .spinner {
    border: 10px solid transparent;
    border-top: 10px solid white;
    border-radius: 50%;
    width: 30px; height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
  }
@keyframes spin { 100% { transform: rotate(360deg); } }

@media (max-width: 1000px) {
  .subwrapper {
    padding: 6rem 1rem 2rem;
  }
  &::before {
    height: 15%; 
  }
  .submit-btn {
    height: 45px;
    width: 140px;
  }
  .form-control {
    height: 50px;
  }
  .other-ways {
    flex-direction: column;
    p {margin: 0;}
  }
}

@media (max-width: 968px) {
  .subwrapper {
    gap: 1rem;
 }
  .submission-form {
    padding: 1rem;
    width: 85%;
  }
  .form-control {
    font-size: 16px;
  }
}

@media (max-width: 968px) {
  .navbar-bg {
    height: 120px;
  }
}