/* JOIN_STYLE.CSS new */

:root {
    --primary-color: #0c3327; /* Dark green matching your submit button */
    --border-color: #767676;
    --text-color: #2b2b2b;
    --subtext-color: #666666;
    --background-color: #ffffff;
    --form-bg: #fafafa;
}

.form-container {
      background-color: var(--background-color);
      padding: 40px;
      border-radius: 4px;
      /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); */
      box-shadow: 2px 2px 3px #999;
      max-width: 650px;
      width: 100%;
      box-sizing: border-box;
    }

    .required-notice {
      font-size: 14px;
      color: var(--subtext-color);
      margin-bottom: 25px;
    }

    .form-row {
      display: flex;
      gap: 20px;
      margin-bottom: 25px;
    }

    .form-group {
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .form-group.full-width {
      margin-bottom: 25px;
    }

    label {
      font-weight: bold;
      font-size: 16px;
      margin-bottom: 8px;
    }

    input[type="text"],
    input[type="email"],
    textarea {
      padding: 12px;
      border: 1px solid var(--border-color);
      border-radius: 4px;
      font-size: 16px;
      width: 100%;
      box-sizing: border-box;
      outline: none;
    }

    input[type="text"]:focus,
    input[type="email"]:focus,
    textarea:focus {
      border-color: var(--primary-color);
      box-shadow: 0 0 0 1px var(--primary-color);
    }

    textarea {
      resize: vertical;
      min-height: 200px;
    }

    .field-hint {
      font-size: 13px;
      color: var(--subtext-color);
      margin-top: 6px;
    }

    .submission-notice {
      font-size: 13px;
      color: var(--subtext-color);
      line-height: 1.5;
      margin: 25px 0;
    }

    .button-group {
      display: flex;
      gap: 15px;
    }

    button {
      padding: 14px 28px;
      font-size: 16px;
      font-weight: bold;
      border-radius: 4px;
      cursor: pointer;
      transition: background-color 0.2s, color 0.2s;
      box-sizing: border-box;
      box-shadow: 6px 6px 6px #8f8f8f;
      border-radius: 5px; /* Rounds the corners of the button */
    }

    .btn-submit {
      /* background-color: var(--primary-color); */
      background-color: #007bff;
      color: #ffffff;
      border: 1px solid var(--primary-color);
    }

    .btn-submit:hover {
      /* background-color: #061d16; */
      background-color: #0056b3; /* Darker background on hover */
    }

    .btn-reset {
      background-color: #ffffff;
      color: var(--text-color);
      border: 1px solid var(--text-color);
    }

    .btn-reset:hover {
      background-color: #f0f0f0;
    }

    .join_h1 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 2rem;
  color: #123b63;
  text-align: center;
}

.instructions-box {
  background: #eef5fb;
  /* border-left: 5px solid var(--primary); */
  border: 1px solid #102a40;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 2px 2px 3px #999;
  margin-bottom: 24px;
}

.instructions-box p {
  margin: 0 0 10px 0;
}

.instructions-box p:last-child {
  margin-bottom: 0;
}


    /* Modal Backdrop Overlay */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    /* Modal Box */
    .modal-box {
      background-color: #ffffff;
      padding: 40px;
      border-radius: 4px;
      max-width: 450px;
      width: 90%;
      text-align: center;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
      transform: translateY(-20px);
      transition: transform 0.3s ease;
    }

    /* Active states for modal display */
    .modal-overlay.active {
      opacity: 1;
      visibility: visible;
    }
    .modal-overlay.active .modal-box {
      transform: translateY(0);
    }

    .modal-title {
      font-size: 22px;
      font-weight: bold;
      margin-top: 0;
      margin-bottom: 15px;
    }

    .modal-text {
      font-size: 15px;
      line-height: 1.6;
      color: var(--text-color);
      margin-bottom: 25px;
    }

    /* Responsive adjustments */
    @media (max-width: 500px) {
      .form-row {
        flex-direction: column;
        gap: 25px;
      }
      .button-group {
        flex-direction: column;
      }
      button {
        width: 100%;
      }
    }