  body, html {
      margin: 0;
      padding: 0;
      height: 100%;
      width: 100%;
      font-family: 'Arial', sans-serif;
      padding-top: 40px;
    }
    
    .preload-overlay {
      position: fixed; 
      top: 0; 
      left: 0; 
      width: 100%; 
      height: 100%;
      background-image: url('/assets/imgs/gate1.webp');
      background-size: cover;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      transition: opacity 0.1s ease-out, visibility 0.1s ease-out;
    }
    
    .box-wrap {
      padding: 2rem;
      border-radius: 10px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
    
    .box {
      width: 15px;
      height: 15px;
      margin: 0 10px;
      border-radius: 50%;
      animation: bounce 0.5s infinite alternate;
    }
    
    .box:nth-child(1) { background-color: rgb(7, 185, 49); animation-delay: 0s; }
    .box:nth-child(2) { background-color: rgb(255, 255, 255); animation-delay: 0.3s; }
    .box:nth-child(3) { background-color: rgb(19, 241, 71); animation-delay: 0.8s; }
    .box:nth-child(4) { background-color: rgb(255, 255, 255); animation-delay: 1s; }
    
    @keyframes bounce {
      0% { transform: translateY(0); }
      100% { transform: translateY(-20px); }
    }
    
    /* Error shake animation */
    @keyframes errorShake {
      0%, 100% { transform: translateX(0); }
      10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
      20%, 40%, 60%, 80% { transform: translateX(5px); }
    }
    
    .error-shake {
      animation: errorShake 0.6s ease-in-out;
      border-left: 5px solid #e53e3e !important; /* Red border for errors */
    }
    
    .loaded .preload-overlay {
      opacity: 0;
      visibility: hidden;
    }
    
    .navbar {
      background-color: rgb(0, 22, 44);
      margin-bottom: 10px;
    }
    
    .navbar-brand {
      font-weight: bold;
    }
    
    .required-field label:after {
      content: " *";
      color: red;
    }
    
    .shaded-section {
      background-color: #f8fafc;
    }
    
    .section-border {
      border-left: 6px solid #02114c;
      padding-left: 1rem;
      transition: border-color 0.3s ease;
    }
    .section-border2 {
  border-left: 6px solid #970422 ; /* or desired color */
  padding-left: 1rem;
  transition: border-color 0.3s ease;
}
    #sticky-dock {
      position: fixed;
      bottom: -30px;
      right: 10px;
      z-index: 1000;
      padding:0px;
      transition: transform 0.3s ease, opacity 0.3s ease;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      max-width: 120px;
      height: auto;
    }
    
    #sticky-dock:hover {
      transform: scale(1.05);
    }
    
    /* Optional: Add animation for when the page loads */
    @keyframes dockEntrance {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    #sticky-dock {
      animation: dockEntrance 0.6s ease-out forwards;
    }
    
    /* Optional: Hide dock when user is at the very bottom of the page */
    body.at-bottom #sticky-dock {
      opacity: 0.5;
    }
    
    /* Load More Animation */
    .loading-spinner {
      display: inline-block;
      width: 20px;
      height: 20px;
      border: 3px solid rgba(0, 0, 0, 0.1);
      border-radius: 50%;
      border-top-color: #3498db;
      animation: spin 1s ease-in-out infinite;
      margin-right: 8px;
      vertical-align: middle;
    }
    
    @keyframes spin {
      to { transform: rotate(360deg); }
    }
    
    /* Hidden sections for load more functionality */
    .loadable-section {
      display: none;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.5s ease, transform 0.5s ease;
    }
    
    .loadable-section.visible {
      display: block;
      opacity: 1;
      transform: translateY(0);
    }
    
    /* N/A button styles */
    .na-button {
      padding: 2px 8px;
      font-size: 0.75rem;
      background-color: #f3f4f6;
      border: 1px solid #d1d5db;
      border-radius: 4px;
      color: #4b5563;
      cursor: pointer;
      transition: all 0.2s;
      margin-left: 8px;
    }
    
    .na-button:hover {
      background-color: #e5e7eb;
      color: #1f2937;
    }
    
    .na-button.active {
      background-color: #d1fae5;
      border-color: #10b981;
      color: #047857;
    }
    
    .field-with-na {
      display: flex;
      align-items: center;
    }
    
    .field-with-na input {
      flex: 1;
    }
    
    /* Additional CSS for Digital Signature */
.signature-container {
  overflow: hidden;
  border-radius: 0.375rem;
}

#signatureCanvas {
  touch-action: none; /* Prevent scrolling while drawing on touch devices */
}

/* Styling for agreement status */
#parentAgreementStatus {
  transition: all 0.3s ease;
}

#parentAgreementStatus.bg-green-50 {
  border-color: #a7f3d0 !important;
}

/* Animation for when signature is completed */
@keyframes signatureComplete {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.signature-complete {
  animation: signatureComplete 0.5s ease-in-out;
}

/* Ensure the modal displays properly on mobile */
@media (max-width: 640px) {
  #agreementModal .max-w-2xl {
    width: 100%;
    max-height: 85vh;
  }
  
  #signatureCanvas {
    height: 150px; /* Smaller canvas for mobile */
  }
}

/* Improve button visibility */
#openAgreementBtn {
  white-space: nowrap;
}

/* Style for the parents agreement section to make it more prominent */
.parents-agreement-section {
  border-left-color: #1e40af !important;
}

/* Custom checkbox styling */
#confirmSignature {
  cursor: pointer;
}

/* Disable the "I Agree" checkbox directly (it'll be controlled by the popup) */
#agree[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
    
    /* Additional CSS for Digital Signature */
.signature-container {
  overflow: hidden;
  border-radius: 0.375rem;
}

#signatureCanvas {
  touch-action: none; /* Prevent scrolling while drawing on touch devices */
}

/* Styling for agreement status */
#parentAgreementStatus {
  transition: all 0.3s ease;
}

#parentAgreementStatus.bg-green-50 {
  border-color: #a7f3d0 !important;
}

/* Animation for when signature is completed */
@keyframes signatureComplete {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.signature-complete {
  animation: signatureComplete 0.5s ease-in-out;
}

/* Modal positioning and scrolling fixes */
#agreementModal {
  align-items: flex-start !important;
  padding-top: 20px !important;
  padding-bottom: 20px !important;
 z-index: 9999;
}

/* Ensure the modal displays properly on all devices */
@media (max-width: 768px) {
  #agreementModal .max-w-2xl {
    width: 100%;
    margin: 5px auto;
    max-height: 80vh;
  }
  
  #signatureCanvas {
    height: 150px; /* Smaller canvas for mobile */
  }
  
  /* Smaller text on mobile */
  #agreementModal .prose {
    font-size: 0.9rem;
  }
  
  /* Adjust modal padding on mobile */
  #agreementModal .px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
#sticky-dock {
      position: fixed;
      bottom: -10px;
      right: 10px;
      z-index: 1000;
      padding:0px;
      transition: transform 0.3s ease, opacity 0.3s ease;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      max-width: 80px;
      height: auto;
    }
}

/* Improve button visibility */
#openAgreementBtn {
  white-space: nowrap;
}

/* Style for the parents agreement section to make it more prominent */
.parents-agreement-section {
  border-left-color: #1e40af !important;
}

/* Custom checkbox styling */
#confirmSignature {
  cursor: pointer;
}

/* Disable the "I Agree" checkbox directly (it'll be controlled by the popup) */
#agree[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
    
    
    