html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.subwrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8rem 1rem 2rem;
    gap: 2rem;
}
.subwrapper h2 {font-weight: lighter;}
.subwrapper h1 {
  font-weight: bolder;
  color: var(--secondary);
}
.submission-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    width: 745px;
    padding: 2rem;
    background-color:  white;
    border-radius: 30px;
    overflow: hidden;
    form {
        display: inherit;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
}
/* FORM INPUT */
.form-control {
    font-size: 25px;
    background: var(--lgray);
    border-radius: 40px;
    border: none;
    padding: 1.1rem 1rem;
    width: 100%;
    height: 62px;
    box-sizing: border-box;
    field-sizing: content;
  }
  .form-control:focus {
    background: white;
    outline: 2px solid var(--primary);
  }
  ::placeholder {
    font-weight: lighter;
    color: var(--dgray);
  }
  .submit-btn {
    font-size: 20px;
    font-weight: bold;
    background: var(--primary);
    color: white;
    height: 62px;
    width: 200px;
    border-radius: 100px;
    border: none;
    transition: background 0.2s;
    cursor: pointer;
  }
  .submit-btn:hover {
    background-color: var(--secondary);
  }

/* 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(--primary);
    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 h2 { 
    margin-top: 0; 
    text-align: center;
    color: var(--deepForest);
  }
  .popup-details {
    p {
      font-size: 20px;
      color: var(--secondary);
      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(--primary); font-size: 20px;}
  #confirm-btn { background: var(--secondary); color: white; font-size: 20px;}
  #confirm-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
  }
  #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 var(--secondary);
    border-radius: 50%;
    width: 30px; height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
  }
@keyframes spin { 100% { transform: rotate(360deg); } }
  
.other-ways {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary);
  padding: 2rem 1rem;
  gap: 1rem;
}

@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;
  }
}