#waiver-form input.error, #waiver-form canvas.error {
    border: 2px solid red;
  }
  #waiver-form .main-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 80px;
  }
    #waiver-form h2 {
      text-align: center;
      text-decoration: underline;
      margin-bottom: 50px!important;
    }
    #waiver-step-1 input {
      border: 1px solid #cbd5e0;
      width: 100%;
      font-family: 'Dosis';
      font-size: 18px;
      line-height: 28px;
      color: #000000;
    }
    #waiver-step-1 .form-field label {
      width: 100%;
      display: block;
      margin-bottom: 8px;
    }
    #waiver-form .form-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 30px;
    }
    #waiver-form button {margin-top: 50px;}
   /* #waiver-form .step1-error-msg {
      margin-top: 30px!important;
    border: 2px solid red;
    padding: 10px 20px;
    border-radius: 3px;
  }*/
  #waiver-form .step1-error-msg {
      color: red;
      font-weight: 700;
      margin-top: 30px!important;
  }
  #waiver-form .waiver-container {
    padding-top: 50px;
  }
  #waiver-form .waiver-container p input {
    margin-top: 10px;
    margin-bottom: 10px;
    width: 200px;
  }
  #waiver-form .signature-controls-and-date button {
    margin-top: 30px;
  }
  #waiver-form .signature-line div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #waiver-step-2 .signature-date-field {
    margin-top: 20px;
  }
    #waiver-step-1 p {
      text-align: center;
    }
    #waiver-form .signature-section {
      margin-top: 30px;
    }
    #waiver-form .signature-line {
      display: flex;
      justify-content: space-between;
      margin-bottom: 20px;
    }
    #waiver-step-2 .waiver-container ol {
      padding-left: 17px;
    }
    #waiver-step-2 .waiver-container ol li {
      padding-bottom: 15px;
    }
    #waiver-step-2 .img-wrapper {
      display: flex;
      justify-content: center;
      margin-bottom: 50px;
    }
    #waiver-form .signature-line div {
      width: 45%;
      text-align: center;
      padding-top: 5px;
    }
    #waiver-form .waiver-step {
      display: none;
    }
    #waiver-form .active-step {
      display: block;
    }
    #waiver-form .error {
      border: 1px solid red;
    }


    #waiver-step-2 input {
      border: none;
      border-bottom: 1px solid #cbd5e0;
      width: 100%;
      font-family: 'Dosis';
      font-size: 18px;
      line-height: 28px;
      color: #000000;
    }
    #waiver-step-2 .form-field label {
      width: 100%;
      display: block;
      margin-bottom: 8px;
    }

    #top-img img {height: 100px; object-fit: contain;}
    
    @media (max-width: 600px) {
      #waiver-form input {
        width: 100%;
      }
      #waiver-form .signature-line {
        flex-direction: column;
        gap: 50px;
      }
      #waiver-form.signature-line div {
        width: 100%;
        margin-bottom: 10px;
      }
    }

    #waiver-form .signature-box {
  width: 100%;
}
/* #waiver-form canvas {
  border: 1px solid #000;
  width: 100%;
  height: 150px;
  cursor: crosshair;
} */
#waiver-form canvas {
  max-width: 100%;
  height: auto;
  border: 1px solid #000;
  cursor: crosshair;
  display: block;
  margin: 0 auto;
}

#waiver-form .signature-controls {
  margin-top: 5px;
  text-align: right;
}


@media (min-width: 768px) and (max-width: 1025px) {
 #waiver-form h2 {
  font-size: 40px;
  line-height: 50px;
 }
}

@media (max-width: 767px) {
 #waiver-form h2 {
  font-size: 30px;
  line-height: 40px;
 }
 #waiver-form .form-grid {
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
 }
 #waiver-form .signature-line div {
  width: 100%;
 }
}

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

.popup-box {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  text-align: center;
}

.popup-message {
  font-size: 16px;
  margin-bottom: 20px;
}