html,
body {
  overflow: initial !important;
  margin: 0;
}

.account-header {
}

#sig-canvas {
  border: 2px dotted #cccccc;
  border-radius: 15px;
  cursor: crosshair;
  touch-action: none;
}

.nav > li > a {
  font-size: 14px;
  color: #676055;
  text-decoration: none;
}

.isha-header {
  width: 100%;
  height: 120px;
  padding: 9px 72px 17px 54px;
  background-color: #faf7f0;
}

.isha-logo-black {
  width: 55px;
  height: 52px;
  object-fit: contain;
}

/*overriding form-row*/

@media (min-width: 579px) {
  .registration-form-title {
    font-size: 1.875rem;
    font-size: 3.1rem; /*change in style due to new requirement*/
  }
  .inquiry-form-title {
    font-size: 3.1rem; /*change in style due to new requirement*/
  }
  .sub-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 578px) {
  .registration-form-title,
  .inquiry-form-title {
    font-size: 2.5rem;
  }
  .sub-title {
    font-size: 1.2rem;
  }
}

.info {
  padding: 1.2rem 1.5rem;
  background-color: #fffbe7;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.36;
  letter-spacing: 0.2px;
  color: #000000;
}

/*.main-form .section-label {
    margin: 2.5rem 0rem;
    font-size: 1.4rem;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #28231e;
}


.main-form .form-row label {
    margin-bottom: 0.65rem;
    font-size: 1rem;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: 0.015rem;
    color: #000000;
}*/

/*overriding*/
.alert {
  font-size: 0.9rem;
}

.main-form .button-wrapper {
  margin: 3rem auto;
}

#program_fee {
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  color: #464038;
  line-height: 22.5px;
}

.footer-wrapper {
  width: 100%;
  height: auto;
  margin: 3rem 0;
}

.footer-wrapper img {
  width: 100%;
}

.footer-end {
  width: 100%;
  height: 3rem;
  background-color: #28231e;
  font-size: 12px;
  color: #676055;
  text-align: center;
}

.footer-end a {
  color: #676055;
  text-decoration: none;
}

.main-form-wrapper .header {
  position: relative;
  background-color: rgba(0, 0, 0, 0.8);
  height: 2.5rem;
}

.main-form-wrapper .header .header-left {
  position: absolute;
  top: 0.5rem;
  margin-left: 5%;
}

.main-form-wrapper .header .header-left a {
  opacity: 0.73;
  font-size: 0.825rem;
  text-decoration: none;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  letter-spacing: normal;
  color: #e4ded4;
}

.main-form-wrapper .header .header-right {
  position: absolute;
  right: 5%;
}

.dropdown-block {
  position: relative;
  top: -1rem;
}

.dropdown-block > div {
  display: inline-block;
}

.profile-image img {
  width: 2.5rem;
  height: 2.5rem;
}

.dropdown-block-wrapper,
.profile-image {
  display: inline-block;
}

.input-file {
  border: none !important;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
  padding-top: 60px;
}

/*.radio-button {
    padding: 0rem !important;
    height: 0.8rem !important;
    width: 0.8rem !important;
    font-size: 1em !important;
    position: relative !important;
    border-radius: 0rem !important;
    border: 0.08rem solid #202020 !important;
}*/

.more-details-section {
  display: inline-block;
}

@media screen and (max-width: 720px) {
  .more-details-section {
    position: static !important;
  }
}

.required:after {
  content: " *";
  color: red;
}

.fa {
  margin-left: 4px;
}
.error_msg {
  color: red;
}

.success-message {
  margin-top: 100px;
  margin-bottom: 10px;
  padding-left: 10px;
  text-align: center;
  font-size: 30px;
  font-weight: bold;
}

.mandatrory_field {
  outline-style: solid;
  outline-color: #e43b3b !important;
  outline: 2px soild red;
  outline-width: 2px;
}

.program_form_submit {
  text-align: center;
  width: 100%;
  height: 2.815rem;
  border-radius: 3px;
  background-color: #cf4520;
  color: #ffffff;
  border: 1px;
  font-size: 16.8px;
}

.test_cache_clear {
  text-align: center;
}
.test_cache_clear2 {
  text-align: center;
}

#sannidhi_form label {
  font-weight: 600;
  font-size: 18px;
  line-height: 21px;
}

.btn-outline-primary:not(:disabled):not(.o_wysiwyg_loader):not(
    .disabled
  ).active,
.show > .btn-outline-primary.dropdown-toggle {
  color: #ffffff;
  background-color: #35979c;
  border-color: #35979c;
}

#photo_camera,
#id_proof_camera,
#address_proof_camera {
  width: 100% !important;
  height: 50vh !important;
}
#photo_camera > video,
#id_proof_camera > video,
#address_proof_camera > video {
  height: 100% !important;
  width: 100% !important;
}

.crop-modal-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between !important;
}

.cropper-view-box > img {
  display: none;
}
#div_crop_profile_pic,
#div_crop_id_proof,
#div_crop_oco_proof,
#div_crop_address_proof {
  height: 50vh;
}

@media screen and (max-width: 575px) {
  #div_crop_profile_pic,
  #div_crop_id_proof,
  #div_crop_address_proof {
    height: 56vh;
  }

  .cropper-container {
    width: 100% !important;
    height: 100% !important;
  }

  /* -- Modal Dialog Fix for Cropper --*/
  #modal_cropper_profile_pic .modal-dialog,
  #modal_camera_profile_pic .modal-dialog,
  #modal_cropper_oco_proof .modal-dialog,
  #modal_camera_oco_proof .modal-dialog,
  #modal_cropper_address_proof .modal-dialog,
  #modal_camera_address_proof .modal-dialog {
    margin: auto;
    display: flex;
    align-items: self-end;
    min-height: calc(100% - 1rem);
    height: 100%;
  }

  .modal-footer.crop-modal-footer {
    display: flex;
    flex-direction: column;
  }
  .crop-modal-footer .btn-group .btn {
    padding: 0.35rem 1rem;
  }
  .crop-modal-footer .btn-group:last-child {
    margin-top: 10px;
  }
}

/* Base styling for the datepicker */
.ui-datepicker {
  font-family: "Fedra Sans Std Normal", sans-serif;
  padding: 0.5rem;
  border-radius: 0.375rem; /* Bootstrap 5 rounded corners */
  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.15); /* Bootstrap modal shadow */
  font-size: 1rem; /* Standard Bootstrap font size */
  color: #495057; /* Standard Bootstrap text color */
  animation: fadeIn 0.5s; /* Smooth fade-in effect */
}

/* Header styles with Bootstrap colors */
.ui-datepicker-header {
  background-color: #f9fafb;
  color: #212529;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
  font-weight: 550; /* Medium weight for header text */
}

/* Table styles */
.ui-datepicker table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0; /* Margin for inner spacing */
}

/* Date cells styles */
.ui-datepicker-calendar .ui-state-default {
  background-color: transparent;
  color: #212529;
  border: none; /* Remove the border */
}

/* Hover and active state for date cells */
.ui-datepicker-calendar tbody tr td:hover {
  background-color: #efe9ed; /* Bootstrap hover color */
  border-radius: 0.25rem;
  color: #ffffff;
  cursor: pointer;
}
/* Highlight the selected date with white text */
.ui-datepicker-calendar .ui-state-active {
  background-color: #414141; /* Bootstrap primary color */
  color: #ffff;
  border-radius: 0.25rem;
}

/* Custom icons for navigation buttons using Bootstrap's icon font */
.ui-datepicker-prev:before,
.ui-datepicker-next:before {
  font-family: "Bootstrap Icons";
  display: inline-block;
  text-align: center;
  color: #414141;
}

/* Ensure the header clearfix for floated elements */
.ui-datepicker-header::after {
  content: "";
  display: table;
  clear: both;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0.6;
  }
  to {
    opacity: 1;
  }
}

/* Add hover effect for the radio button labels */
.btn-group-toggle label.btn.btn-outline-secondary:hover {
  /* Set text color to your desired hover color */
  color: #ffff; /* Replace with your desired hover color code */
}

/* ===== Radio Button Validation Styles ===== */
/* Red circle around invalid radio buttons */
.form-row.is-invalid .form-check-input[type="radio"] {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
  border-radius: 50%;
  position: relative;
}

/* Red text for the label of invalid radio groups */
.form-row.is-invalid .form-check-label {
  color: #dc3545;
}

/* Completely remove the red border from the form-row for radio groups */
.form-row.is-invalid {
  padding-left: 10px;
  margin-bottom: 10px;
}

/* Style for illness checkboxes */
.illness-checkbox.is-invalid {
  border: 2px solid #dc3545 !important;
  border-radius: 4px;
  padding: 10px;
}

/* Style for illness checkbox container */
.illness-container.is-invalid {
  border: 2px solid #dc3545;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 15px;
}

/* ===== Form Validation Styles ===== */
/* For radio button groups */
.form-row.is-invalid {
  padding-left: 10px;
  margin-bottom: 10px;
}

/* For checkbox groups */
.form-group.is-invalid {
  padding-left: 10px;
  margin-bottom: 10px;
}

/* For other input fields */
.form-control.is-invalid,
.form-check-input.is-invalid {
  border-color: #dc3545;
}

/* For required field indicators */
label.required:after {
  content: " *";
  color: #dc3545;
}

/* For error messages */
.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #dc3545;
}

/* ===== Form Input Validation Styles ===== */
/* Style for invalid form inputs */
.form-control.is-invalid,
.was-validated .form-control:invalid,
.form-select.is-invalid,
.was-validated .form-select:invalid,
input[type="text"].is-invalid,
input[type="email"].is-invalid,
input[type="tel"].is-invalid,
input[type="number"].is-invalid,
textarea.is-invalid,
select.is-invalid {
  border-color: #dc3545 !important;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Style for invalid feedback message */
.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #dc3545;
}

/* Show invalid feedback when input is invalid */
.is-invalid ~ .invalid-feedback,
.was-validated :invalid ~ .invalid-feedback {
  display: block;
}

/* Focus state for invalid inputs */
.form-control.is-invalid:focus,
.was-validated .form-control:invalid:focus,
.form-select.is-invalid:focus,
.was-validated .form-select:invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Style for invalid checkboxes and radio buttons */
.form-check-input.is-invalid,
.was-validated .form-check-input:invalid {
  border-color: #dc3545;
}

.form-check-input.is-invalid:checked,
.was-validated .form-check-input:invalid:checked {
  background-color: #dc3545;
}

.form-check-input.is-invalid:focus,
.was-validated .form-check-input:invalid:focus {
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.form-check-input.is-invalid ~ .form-check-label,
.was-validated .form-check-input:invalid ~ .form-check-label {
  color: #dc3545;
}

/* Significant Illness Validation */
.significant-illness-container {
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.significant-illness-container.is-invalid {
  border: 1px solid #dc3545;
  padding: 10px;
  border-radius: 4px;
}

.significant-illness-container .form-check-input.is-invalid {
  border-color: #dc3545;
}

.significant-illness-container .form-check-input.is-invalid:checked {
  background-color: #dc3545;
  border-color: #dc3545;
}

.significant-illness-container .form-check-input.is-invalid:focus {
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.significant-illness-container .form-check-label.is-invalid {
  color: #dc3545;
}

.significant-illness-container .invalid-feedback {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875em;
  color: #dc3545;
}

/* Focus state for better accessibility */
.significant-illness-container.invalid .form-check-input:focus,
.significant-illness-container.is-invalid .form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
  border-color: #dc3545 !important;
}
