html, body {
    margin: 0;
    padding: 0;
}

.subwrapper {
    display: flex;
    justify-content: center;
    align-items: end;
    height: 700px;
    width: auto;
    padding: 8rem 0 4rem;
}
&::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30%; 
  background: linear-gradient(to bottom, hsl(from var(--sunsetTerracotta) h s l / 1), transparent);
  pointer-events: none;
  z-index: 2; 
}
.submission-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    width: auto;
    padding: 2rem;
    background-image: url("../../images/container1.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;

    h1 {
        font-family: var(--font-title);
        font-size: 25px;
        color: var(--deepForest);
        margin: 0 0 2rem;
        word-wrap: break-word;
        text-align: center;
    }

    form {
        display: inherit;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        width: 730px;
    }
}

.form-control {
    font-family: var(--primary-font);
    background: var(--warmSand);
    border: none;
    border-radius: 10px;
    font-size: 25px;
    padding: 1.1rem 1rem;
    color: var(--deepForest);
    width: 100%;
    height: 65px;
    box-sizing: border-box;
  }
  .form-control:focus {
    font-family: var(--primary-font);
    background: #f0f0f0;
    outline: 2px solid var(--orange);
  }
  ::placeholder {
    font-size: 25px;
    font-family: var(--primary-font);
    color: var(--deepForest);
    opacity: 0.5;
    font-weight: bold;
  }
  .submit-btn {
    background: var(--sunsetTerracotta);
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 25px;
    font-weight: bold;
    height: 65px;
    width: 200px;
    border-radius: 10px;
    border: none;
    transition: background 0.2s;
    cursor: pointer;
  }
  .submit-btn:hover {
    color: white;
    background-color: var(--deepForest);
  }

  .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: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 600px;
    max-width: 90%;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  .popup h2 { 
    margin-top: 0; 
    font-family: var(--font-title);
    font-size: 25px;
    text-align: center;
    color: var(--deepForest);
  }
  .popup-details {
    p {
      font-family: var(--primary-font);
      font-size: 20px;
      color: var(--deepForest);
      word-break: break-word;
    }
  }
  .scrollable-message {
    display: inline-block;
    height: 150px;
    max-height: 200px;     
    width: 100%;        
    word-wrap: break-word;
    overflow-y: auto;     
    padding: 5px;
    margin-top: 0.5rem;
    border-radius: 6px;
    background-color: var(--warmSand);
  }
  .popup-buttons { 
    margin-top: 15px; 
    text-align: right; 
  }
  .popup-buttons button {
    font-family: var(--primary-font);
    font-size: 20px;
    margin-left: 10px;
    padding: 8px 14px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
  }
  #cancel-btn { background: #ccc; }
  #confirm-btn { background: var(--sunsetTerracotta); color: white; }
  #confirm-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
  }
  #popup-status {
    font-family: var(--primary-font);
    font-size: 20px;
    text-align: center;
  }
  .spinner {
    border: 10px solid #f3f3f3;
    border-top: 10px solid #28a745;
    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 {
    height: 650px;
    padding: 4rem 0;
  }
  &::before {
    height: 15%; 
  }
  .submit-btn {
    height: 45px;
    font-size: 20px;
    width: 140px;
  }
  .form-control {
    height: 50px;
    font-size: 16px;
  }
  ::placeholder {
    font-size: 16px;
  }
  .popup-details {
    p {
      font-size: 16px;
    }
  }
}

@media (max-width: 820px) {
  .submission-page {
    width: 100%;
    form {
      width: 100%;
    }
  }

  .form-control { 
    width: 100%;
  }
}