body {
  margin: 0;
  padding: 0;
  height: 100vh;
  background-image: url("../pic/wave.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow-y: hidden;
}

#card {
  width: 85%;
  height: 90vh;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 1);
  position: relative;
  background-image: url("../pic/i.png");
  background-size: cover;
  background-position: 27% 50%;
  background-repeat: no-repeat;
  z-index: 1;
  overflow-y: auto;
  scrollbar-width: none;
}

@media (max-width: 767.9px) {
  #card {
    width: 100%; /* Full width on mobile screens */
  }
}

/*---------------------------------------------------------------------*/
.progress-bar {
  background-color: #e92d30;
}

#progressbar {
  margin-bottom: 30px;
  overflow: hidden;
  color: gray;
  margin-left: -30px;
}

#progressbar .active {
  color: #e92d30;
}

#progressbar li {
  list-style-type: none;
  font-size: 15px;
  width: 25%;
  float: left;
  position: relative;
  font-weight: 400;
}

#progressbar #personal:before {
  font-family: FontAwesome;
  content: "\f007";
}

#progressbar #parents:before {
  font-family: FontAwesome;
  content: "\e302";
}

#progressbar #documents:before {
  font-family: FontAwesome;
  content: "\f15b";
}

#progressbar #additional_info:before {
  font-family: FontAwesome;
  content: "\f05a";
}

#progressbar li:before {
  width: 50px;
  height: 50px;
  line-height: 45px;
  display: block;
  font-size: 20px;
  color: #ffffff;
  background: gray;
  border-radius: 50%;
  margin: 0 auto 10px auto;
  padding: 2px;
  z-index: 1000;
}

#progressbar li:after {
  content: "";
  width: 100%;
  height: 2px;
  background: gray;
  position: absolute;
  left: 0;
  top: 25px;
  z-index: -1;
}

#progressbar li.active:before,
#progressbar li.active:after {
  background: #e92d30;
}

.floating-button {
  position: fixed;
  bottom: 20px; /* Distance from the bottom */
  right: 20px; /* Distance from the right */
  z-index: 1000; /* Ensures it stays on top */
}

.floating-button button {
  background-color: transparent;
  color: lightgray; /* Text color */
  border: none; /* Remove default border */
  border-radius: 50%; /* Circular button */
  width: 60px; /* Button width */
  height: 60px; /* Button height */
  font-size: 24px; /* Font size */
  cursor: pointer; /* Pointer cursor on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow effect */
  transition: background-color 0.3s; /* Transition effect */
}

#msform {
  text-align: center;
  position: relative;
  margin-top: 20px;
  min-height: calc(85vh - 20px);
  z-index: 2;
}

#container-btn {
  position: absolute;
  bottom: 0px;
}

fieldset {
  width: 100%;
  height: 40vh;
  padding: 0 50px;
  text-align: start;
}

.header-container {
  padding: 0 50px 20px 50px;
}

@keyframes jump {
  0%,
  100% {
    transform: translateY(0);
    /* Default position */
  }

  50% {
    transform: translate(-5px, -5px);

    /* Move up by 10px */
  }
}

.image-button {
  background: none;
  border: none;
  padding: 0;
  animation: jump 1.5s infinite ease-in-out;
}

.error-text {
  font-weight: 500;
  font-size: 10px;
  color: #e92d30;
}

.guide-text {
  font-weight: 500;
  font-size: 10px;
}

#startPage-logo {
  width: 150px;
  height: auto;
}

.quote {
  font-size: 20px;
  color: #000;
  font-weight: 500;
}

.highlight {
  font-weight: bold;
  font-size: 30px;
  color: #e92d30;
}

.no-copy {
  user-select: none;
}

/* HTML: <div class="loader"></div> */
.loader {
  width: 160px;
  height: 22px;
  border-radius: 20px;
  color: #e92d30;
  border: 2px solid;
  position: relative;
}

.loader::before {
  content: "";
  position: absolute;
  margin: 2px;
  inset: 0 100% 0 0;
  border-radius: inherit;
  background: currentColor;
  animation: l6 3s forwards;
}

@keyframes l6 {
  100% {
    inset: 0;
  }
}

.card {
  background-color: rgba(255, 255, 255, 0.7) !important;
}

.card-header {
  background-color: rgba(255, 230, 230, 0.7) !important;
}

.file-upload {
  border: 2px dashed #007bff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  background-color: #ffffff;
  width: 300px;
  position: relative;
}

#file-input {
  display: none;
  /* Hide the default file input */
}

#error-text {
  color: red;
  display: block ;
  margin-top: 10px;
}

input[type="radio"]:checked {
  background-color: #e92d30;
}

#text-back{
  font-size: 10px !important;
  margin-top: -12px;
  margin-right: 5px;
  font-weight: bold;
}

.thank-you-heading {
  font-family: 'Arial', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50; /* Dark blue-gray for sophistication */
  margin-top: 20px;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.confirmation-text {
  font-family: 'Arial', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #34495e; /* Slightly lighter shade for contrast */
  line-height: 1.6;
  max-width: 500px; /* Restrict width for readability */
  margin: 0 auto;
  padding: 0 15px; /* Small padding for mobile responsiveness */
}

/* Optional: Add a slight animation for the heading */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.thank-you-heading {
  animation: fadeInUp 0.6s ease-out forwards;
  margin-top: -40px;
}

.confirmation-text {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.2s; /* Slight delay for staggered effect */
  opacity: 0; /* Start hidden for animation */
}


/* From Uiverse.io by Nawsome */ 
.loadingspinner {
  --square: 26px;
  --offset: 30px;
  --duration: 2.4s;
  --delay: 0.2s;
  --timing-function: ease-in-out;
  --in-duration: 0.4s;
  --in-delay: 0.1s;
  --in-timing-function: ease-out;
  width: calc( 3 * var(--offset) + var(--square));
  height: calc( 2 * var(--offset) + var(--square));
  padding: 0px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  margin-bottom: 30px;
  position: relative;
}

.loadingspinner div {
  display: inline-block;
  background: darkorange;
    /*background: var(--text-color);*/
    /*box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);*/
  border: none;
  border-radius: 2px;
  width: var(--square);
  height: var(--square);
  position: absolute;
  padding: 0px;
  margin: 0px;
  font-size: 6pt;
  color: black;
}

.loadingspinner #square1 {
  left: calc( 0 * var(--offset) );
  top: calc( 0 * var(--offset) );
  animation: square1 var(--duration) var(--delay) var(--timing-function) infinite,
               squarefadein var(--in-duration) calc(1 * var(--in-delay)) var(--in-timing-function) both;
}

.loadingspinner #square2 {
  left: calc( 0 * var(--offset) );
  top: calc( 1 * var(--offset) );
  animation: square2 var(--duration) var(--delay) var(--timing-function) infinite,
              squarefadein var(--in-duration) calc(1 * var(--in-delay)) var(--in-timing-function) both;
}

.loadingspinner #square3 {
  left: calc( 1 * var(--offset) );
  top: calc( 1 * var(--offset) );
  animation: square3 var(--duration) var(--delay) var(--timing-function) infinite,
               squarefadein var(--in-duration) calc(2 * var(--in-delay)) var(--in-timing-function) both;
}

.loadingspinner #square4 {
  left: calc( 2 * var(--offset) );
  top: calc( 1 * var(--offset) );
  animation: square4 var(--duration) var(--delay) var(--timing-function) infinite,
               squarefadein var(--in-duration) calc(3 * var(--in-delay)) var(--in-timing-function) both;
}

.loadingspinner #square5 {
  left: calc( 3 * var(--offset) );
  top: calc( 1 * var(--offset) );
  animation: square5 var(--duration) var(--delay) var(--timing-function) infinite,
               squarefadein var(--in-duration) calc(4 * var(--in-delay)) var(--in-timing-function) both;
}

@keyframes square1 {
  0% {
    left: calc( 0 * var(--offset) );
    top: calc( 0 * var(--offset) );
  }

  8.333% {
    left: calc( 0 * var(--offset) );
    top: calc( 1 * var(--offset) );
  }

  100% {
    left: calc( 0 * var(--offset) );
    top: calc( 1 * var(--offset) );
  }
}

@keyframes square2 {
  0% {
    left: calc( 0 * var(--offset) );
    top: calc( 1 * var(--offset) );
  }

  8.333% {
    left: calc( 0 * var(--offset) );
    top: calc( 2 * var(--offset) );
  }

  16.67% {
    left: calc( 1 * var(--offset) );
    top: calc( 2 * var(--offset) );
  }

  25.00% {
    left: calc( 1 * var(--offset) );
    top: calc( 1 * var(--offset) );
  }

  83.33% {
    left: calc( 1 * var(--offset) );
    top: calc( 1 * var(--offset) );
  }

  91.67% {
    left: calc( 1 * var(--offset) );
    top: calc( 0 * var(--offset) );
  }

  100% {
    left: calc( 0 * var(--offset) );
    top: calc( 0 * var(--offset) );
  }
}

@keyframes square3 {
  0%,100% {
    left: calc( 1 * var(--offset) );
    top: calc( 1 * var(--offset) );
  }

  16.67% {
    left: calc( 1 * var(--offset) );
    top: calc( 1 * var(--offset) );
  }

  25.00% {
    left: calc( 1 * var(--offset) );
    top: calc( 0 * var(--offset) );
  }

  33.33% {
    left: calc( 2 * var(--offset) );
    top: calc( 0 * var(--offset) );
  }

  41.67% {
    left: calc( 2 * var(--offset) );
    top: calc( 1 * var(--offset) );
  }

  66.67% {
    left: calc( 2 * var(--offset) );
    top: calc( 1 * var(--offset) );
  }

  75.00% {
    left: calc( 2 * var(--offset) );
    top: calc( 2 * var(--offset) );
  }

  83.33% {
    left: calc( 1 * var(--offset) );
    top: calc( 2 * var(--offset) );
  }

  91.67% {
    left: calc( 1 * var(--offset) );
    top: calc( 1 * var(--offset) );
  }
}

@keyframes square4 {
  0% {
    left: calc( 2 * var(--offset) );
    top: calc( 1 * var(--offset) );
  }

  33.33% {
    left: calc( 2 * var(--offset) );
    top: calc( 1 * var(--offset) );
  }

  41.67% {
    left: calc( 2 * var(--offset) );
    top: calc( 2 * var(--offset) );
  }

  50.00% {
    left: calc( 3 * var(--offset) );
    top: calc( 2 * var(--offset) );
  }

  58.33% {
    left: calc( 3 * var(--offset) );
    top: calc( 1 * var(--offset) );
  }

  100% {
    left: calc( 3 * var(--offset) );
    top: calc( 1 * var(--offset) );
  }
}

@keyframes square5 {
  0% {
    left: calc( 3 * var(--offset) );
    top: calc( 1 * var(--offset) );
  }

  50.00% {
    left: calc( 3 * var(--offset) );
    top: calc( 1 * var(--offset) );
  }

  58.33% {
    left: calc( 3 * var(--offset) );
    top: calc( 0 * var(--offset) );
  }

  66.67% {
    left: calc( 2 * var(--offset) );
    top: calc( 0 * var(--offset) );
  }

  75.00% {
    left: calc( 2 * var(--offset) );
    top: calc( 1 * var(--offset) );
  }

  100% {
    left: calc( 2 * var(--offset) );
    top: calc( 1 * var(--offset) );
  }
}

@keyframes squarefadein {
  0% {
    transform: scale(0.75);
    opacity: 0.0;
  }

  100% {
    transform: scale(1.0);
    opacity: 1.0;
  }
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5); /* White with 0.5 opacity */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensure it’s on top of other content */
}


.swal2-content-scrollable {
  max-height: 400px; /* Adjust height as needed */
  overflow-y: auto; /* Enable vertical scrolling */
  padding: 0 15px; /* Match Bootstrap modal padding */
  text-align: left; /* Left-align text like Bootstrap modal */
}

/* Reset styles ONLY inside this section */
.form-section .form-check-label,
.form-section a {
  all: unset;
  display: revert;
  font-size: revert;
  font-family: revert;
  color: revert;
  text-decoration: revert;
}

.form-section input:not([type="radio"]), .button {
  height: 15px;
  margin-top: 6.5px;
  width: 15px !important;
  font-family: inherit;
  font-size: 100%;
  color: inherit;
  padding: 0;
}

/* reapply Bootstrap look if needed */
.form-section .form-check-label {
  color: #212529;
  cursor: pointer;
}
.form-section a {
  color: #0d6efd; /* bootstrap primary blue */
  text-decoration: underline;
  cursor: pointer;
}


/* From Uiverse.io by Nawsome */ 
.boxes {
  --size: 32px;
  --duration: 800ms;
  height: calc(var(--size) * 2);
  width: calc(var(--size) * 3);
  position: relative;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  margin-top: calc(var(--size) * 1.5 * -1);
  transform: rotateX(60deg) rotateZ(45deg) rotateY(0deg) translateZ(0px);
}

.boxes .box {
  width: var(--size);
  height: var(--size);
  top: 0;
  left: 0;
  position: absolute;
  transform-style: preserve-3d;
}

.boxes .box:nth-child(1) {
  transform: translate(100%, 0);
  -webkit-animation: box1 var(--duration) linear infinite;
  animation: box1 var(--duration) linear infinite;
}

.boxes .box:nth-child(2) {
  transform: translate(0, 100%);
  -webkit-animation: box2 var(--duration) linear infinite;
  animation: box2 var(--duration) linear infinite;
}

.boxes .box:nth-child(3) {
  transform: translate(100%, 100%);
  -webkit-animation: box3 var(--duration) linear infinite;
  animation: box3 var(--duration) linear infinite;
}

.boxes .box:nth-child(4) {
  transform: translate(200%, 0);
  -webkit-animation: box4 var(--duration) linear infinite;
  animation: box4 var(--duration) linear infinite;
}

.boxes .box > div {
  /* --- REPLACED WITH THEME RED SHADE --- */
  --background: #E92D30; 
  --top: auto;
  --right: auto;
  --bottom: auto;
  --left: auto;
  --translateZ: calc(var(--size) / 2);
  --rotateY: 0deg;
  --rotateX: 0deg;
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--background);
  top: var(--top);
  right: var(--right);
  bottom: var(--bottom);
  left: var(--left);
  transform: rotateY(var(--rotateY)) rotateX(var(--rotateX)) translateZ(var(--translateZ));
}

.boxes .box > div:nth-child(1) {
  --top: 0;
  --left: 0;
}

.boxes .box > div:nth-child(2) {
  /* --- REPLACED WITH DARKER RED SHADE --- */
  --background: #B82427; 
  --right: 0;
  --rotateY: 90deg;
}

.boxes .box > div:nth-child(3) {
  /* --- REPLACED WITH MEDIUM RED SHADE --- */
  --background: #CD282B; 
  --rotateX: -90deg;
}

.boxes .box > div:nth-child(4) {
  /* --- REPLACED WITH VERY LIGHT RED SHADE --- */
  --background: #FADADA; 
  --top: 0;
  --left: 0;
  --translateZ: calc(var(--size) * 3 * -1);
}

/* * NOTE: You must also include the @keyframes box1, box2, box3, and box4 
* definitions for the animation to run, but no color changes are needed there. 
*/

@-webkit-keyframes box1 {
  0%, 50% {
    transform: translate(100%, 0);
  }

  100% {
    transform: translate(200%, 0);
  }
}

@keyframes box1 {
  0%, 50% {
    transform: translate(100%, 0);
  }

  100% {
    transform: translate(200%, 0);
  }
}

@-webkit-keyframes box2 {
  0% {
    transform: translate(0, 100%);
  }

  50% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(100%, 0);
  }
}

@keyframes box2 {
  0% {
    transform: translate(0, 100%);
  }

  50% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(100%, 0);
  }
}

@-webkit-keyframes box3 {
  0%, 50% {
    transform: translate(100%, 100%);
  }

  100% {
    transform: translate(0, 100%);
  }
}

@keyframes box3 {
  0%, 50% {
    transform: translate(100%, 100%);
  }

  100% {
    transform: translate(0, 100%);
  }
}

@-webkit-keyframes box4 {
  0% {
    transform: translate(200%, 0);
  }

  50% {
    transform: translate(200%, 100%);
  }

  100% {
    transform: translate(100%, 100%);
  }
}

@keyframes box4 {
  0% {
    transform: translate(200%, 0);
  }

  50% {
    transform: translate(200%, 100%);
  }

  100% {
    transform: translate(100%, 100%);
  }
}

#bg-container {
  position: fixed; /* Ensures it stays on top of everything */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* White background with 0.6 opacity */
  background-color: rgba(255, 255, 255, 0.7); 
  z-index: 9999; /* Always keep it on top of other content/modals */
  display: flex; /* Use flexbox to easily center the 3D animation */
  justify-content: center;
  align-items: center;
}
