html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ===========================================
   Parent Portal - Validation Error Styles
   =========================================== */

/* Text inputs, textareas, and selects with validation errors */
input.input-validation-error,
textarea.input-validation-error,
select.input-validation-error {
  border-color: #dc2626 !important;
  border-width: 2px !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

input.input-validation-error:focus,
textarea.input-validation-error:focus,
select.input-validation-error:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2) !important;
  outline: none !important;
}

/* Checkbox and radio inputs with validation errors */
input[type="checkbox"].input-validation-error,
input[type="radio"].input-validation-error {
  border-color: #dc2626 !important;
  border-width: 2px !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2) !important;
}

/* Container for checkboxes/radios that have errors - highlight the label area */
.validation-error-highlight {
  background-color: #fef2f2 !important;
  border: 2px solid #dc2626 !important;
  border-radius: 0.5rem;
  padding: 0.75rem !important;
}

/* Validation error message styling */
.field-validation-error {
  color: #dc2626;
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  margin-top: 0.25rem;
}

/* Add icon before validation error messages */
.field-validation-error::before {
  content: "\f071";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 0.35rem;
}

/* Shake animation for error fields */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.validation-shake {
  animation: shake 0.5s ease-in-out;
}

/* Pulse animation for highlighting */
@keyframes error-pulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.validation-pulse {
  animation: error-pulse 1s ease-in-out;
}