/* Import Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
:root {
  --pad: 10px;
  --field-radius: 12pt;
  --cc-green: #159129;
  --cc-blue: #0081c7;
  --bg-lightgreen: #ccffcc;
  --bg-skyblue: #75cefd;
  --transition: 0.35s;
  --blur-effect: 20px;
  --skyblue-glow: rgba(146, 229, 250, 0.9);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

.logo-img {
  height: 12em;
  object-fit: contain; /* or cover, if you want full fill */
}

.rounded-container {
  border-radius: 20pt; /* Rounded corners */
  background: linear-gradient(rgb(220, 241, 255), white);
  padding-top: 20px;
  padding-left: 50px;
  padding-right: 50px;
  padding-bottom: 20px;
  margin-bottom: 50px;
  border: 1px solid #ccc;
}

.inner-shadow {
  box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.25); /* Inner shadow */
}

*:focus {
  outline: none;
}

h1 {
  color: var(--cc-blue);
  font-size: 50px;
  font-weight: bold;
  text-align: center;
  padding-top: 0;
  padding-bottom: 20px;
  margin-top: -67px;
}

h2 {
  color: var(--cc-blue);
  font-size: 30px;
  font-weight: bold;
  text-align: center;
  padding-top: 15px;
  padding-bottom: 10px;
}

h1 span,
h2 span {
  color: var(--cc-green);
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: linear-gradient(var(--cc-green), var(--cc-blue));
}

p {
  color: black;
  text-align: justify;
}

.btn-correction {
  background-color: #dc3545; /* Bootstrap danger red */
  color: white;
  border: none;
}

.input-field {
  position: relative;
  box-sizing: border-box;
}

.input-field input,
.input-field textarea {
  width: 100%;
  height: 80px;
  border-radius: var(--field-radius);
  font-size: 24px;
  padding: 0 15px;
  margin-top: 20px;
  border: 2px solid gray;
  background: white;
  color: black;
  outline: none;
}

.input-field i {
  position: absolute;
  right: 30px;
  top: 60%;
  transform: translateY(-50%);
  pointer-events: none; /* Allows clicks to pass through */
  cursor: pointer;
  transition: color var(--transition) ease;
}

.input-field i:hover {
  color: orange;
}

.input-field label {
  position: absolute;
  top: 45px;
  left: 30px;
  transform: translateY(-20%);
  color: black;
  font-size: 26px;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.99, 0.15, 0.71, 1.33);
  z-index: 3;
}

textarea {
  resize: vertical;
  padding-top: 24px;
}

input:focus, textarea:focus {
  border: 2px solid #353535;
  box-shadow: 0px 5px 15px rgba(101, 190, 250, 0.803);
  transition: all 0.3s ease-in-out;
}

textarea:focus ~ label,
textarea:valid ~ label,
input:focus ~ label,
input:valid ~ label,
input:invalid ~ label {
  top: 10px;
  left: 30px;
  font-size: 15pt;
  padding: 0 10px;
  background: white;
  z-index: 3;
}

.input-highlight-warning {
  background-color: #f0f000;
  transition: background-color 0.8s ease;
  position: relative;
}

.drop-shadow {
  box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.5);
}

/* LOCK ICON */

.lock-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
  font-size: 20px;
  z-index: 2;
  cursor: default;
}

/* Browser-safe bellSwing animation (3 swings with zoom) */

/* Webkit-prefixed version for older Safari */
@-webkit-keyframes bellSwing {
  0%   { -webkit-transform: translateY(-50%) rotate(0deg) scale(0.9); }
  5%   { -webkit-transform: translateY(-50%) rotate(-18deg) scale(1.0); }
  10%  { -webkit-transform: translateY(-50%) rotate(15deg) scale(1.1); }
  15%  { -webkit-transform: translateY(-50%) rotate(-12deg) scale(1.2); }
  20%  { -webkit-transform: translateY(-50%) rotate(9deg) scale(1.1); }
  25%  { -webkit-transform: translateY(-50%) rotate(-6deg) scale(1.0); }
  30%  { -webkit-transform: translateY(-50%) rotate(0deg) scale(0.95); }
  35%  { -webkit-transform: translateY(-50%) rotate(-15deg) scale(1.0); }
  40%  { -webkit-transform: translateY(-50%) rotate(12deg) scale(1.1); }
  45%  { -webkit-transform: translateY(-50%) rotate(-9deg) scale(1.2); }
  50%  { -webkit-transform: translateY(-50%) rotate(6deg) scale(1.1); }
  55%  { -webkit-transform: translateY(-50%) rotate(-3deg) scale(1.0); }
  60%  { -webkit-transform: translateY(-50%) rotate(0deg) scale(0.95); }
  65%  { -webkit-transform: translateY(-50%) rotate(-10deg) scale(1.0); }
  70%  { -webkit-transform: translateY(-50%) rotate(8deg) scale(1.1); }
  75%  { -webkit-transform: translateY(-50%) rotate(-5deg) scale(1.2); }
  80%  { -webkit-transform: translateY(-50%) rotate(3deg) scale(1.1); }
  85%  { -webkit-transform: translateY(-50%) rotate(-1deg) scale(1.0); }
  90%  { -webkit-transform: translateY(-50%) rotate(0.5deg) scale(0.95); }
  100% { -webkit-transform: translateY(-50%) rotate(0deg) scale(1); }
}

/* Standard version */
@keyframes bellSwing {
  0%   { transform: translateY(-50%) rotate(0deg) scale(0.9); }
  5%   { transform: translateY(-50%) rotate(-18deg) scale(1.0); }
  10%  { transform: translateY(-50%) rotate(15deg) scale(1.1); }
  15%  { transform: translateY(-50%) rotate(-12deg) scale(1.2); }
  20%  { transform: translateY(-50%) rotate(9deg) scale(1.1); }
  25%  { transform: translateY(-50%) rotate(-6deg) scale(1.0); }
  30%  { transform: translateY(-50%) rotate(0deg) scale(0.95); }
  35%  { transform: translateY(-50%) rotate(-15deg) scale(1.0); }
  40%  { transform: translateY(-50%) rotate(12deg) scale(1.1); }
  45%  { transform: translateY(-50%) rotate(-9deg) scale(1.2); }
  50%  { transform: translateY(-50%) rotate(6deg) scale(1.1); }
  55%  { transform: translateY(-50%) rotate(-3deg) scale(1.0); }
  60%  { transform: translateY(-50%) rotate(0deg) scale(0.95); }
  65%  { transform: translateY(-50%) rotate(-10deg) scale(1.0); }
  70%  { transform: translateY(-50%) rotate(8deg) scale(1.1); }
  75%  { transform: translateY(-50%) rotate(-5deg) scale(1.2); }
  80%  { transform: translateY(-50%) rotate(3deg) scale(1.1); }
  85%  { transform: translateY(-50%) rotate(-1deg) scale(1.0); }
  90%  { transform: translateY(-50%) rotate(0.5deg) scale(0.95); }
  100% { transform: translateY(-50%) rotate(0deg) scale(1); }
}

/* Usage */
.animate-lock {
  -webkit-animation: bellSwing 2s ease-in-out forwards;
  animation: bellSwing 2s ease-in-out forwards;
  -webkit-transform-origin: top center;
  transform-origin: top center;
}

.input-field:hover .lock-icon {
  animation: bellSwing 0.6s ease;
}

/* AUTO-COMPLETE INPUT */

.autocomplete-input {
  width: 100%;
  height: 80px;
  border-radius: var(--field-radius);
  font-size: 24px;
  padding: 0 15px;
  margin-top: 20px;
  border: 2px solid gray;
  background: transparent;
  color: black;
}

.ui-autocomplete {
  font-family: Arial, Helvetica, sans-serif; /* Match your inputs */
  font-size: 24px; /* Same as your input */
  border-radius: var(--field-radius);
  border: 2px solid gray;
  padding: 0;
  background-color: white;
  z-index: 1000; /* Make sure it's above other elements */
}

/* Style each item in the list */
.ui-menu-item-wrapper {
  padding: 12px 20px;
  cursor: pointer;
  color: black;
}

/* Hover effect for items */
.ui-menu-item-wrapper:hover {
  background-color: var(--bg-lightgreen);
  color: black;
}

/* UPLOAD BUTTON WRAPPER */

.upload-button-wrapper {
  margin-top: 10px;
  position: relative;
}

.upload-button-wrapper input[type="file"] {
  display: none;
}

.upload-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  background-color: var(--cc-blue);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: background-color 0.2s;
}

.upload-button:hover {
  background-color: #0056b3;
}

.upload-button i {
  pointer-events: none;
}

.input-field label.active {
  top: 10px;
  left: 30px;
  font-size: 15pt;
  padding: 0 10px;
  background: white;
  z-index: 3;
}

input:invalid {
  border: 3px dashed red;
}

.input-field .valid-icon {
  position: absolute;
  right: 40px;
  top: 60%;
  transform: translateY(-50%);
  font-size: 26px;
  color: var(--cc-green);
  display: none;
  pointer-events: none;
  z-index: 2;
}

.input-field.valid .valid-icon {
  display: inline;
}

#summaryModal .fb-modal-body {
  max-height: 40vh; /* adjust as needed */
  overflow-y: auto;
}

#finalConfirmationModal .fb-modal-body {
  max-height: 60vh;
  overflow-y: auto;
}

/* INPUT CHECKMARK BUTTON */

.input-with-button {
  position: relative;
  width: 100%;
}

.input-with-button input {
  width: 100%;
  margin-top: 0px;
  padding-right: 80px; /* make space for button */
  box-sizing: border-box;
}

.check-button {
  position: absolute;
  right: 0;
  top: 0;
  height: 78px;
  width: 78px;
  border: none;
  background-color: #28a745; /* green */
  color: white;
  border-radius: 0 var(--field-radius) var(--field-radius) 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.check-button i {
  font-size: 32px;
  color: white !important;
  pointer-events: none;
}


.welcome-paragraph {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 18pt;
  color: black;
}

/* SPINNER */

.geo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.geo-modal-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.geo-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 15px;
  border: 5px solid #ccc;
  border-top: 5px solid #e91e63;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.geo-cancel-button {
  margin-top: 10px;
  padding: 6px 16px;
  background-color: #e91e63;
  border: none;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.geo-cancel-button:hover {
  background-color: #c2185b;
}

/* File preview */

.file-preview img,
.file-preview embed {
  max-width: 150px;
  max-height: 150px;
  margin-top: 10px;
  display: block;
}

/* Support file drag-n-dropping */

.file-drop-zone {
  border: 2px dashed gray;
  padding: 30px;
  text-align: center;
  border-radius: 10px;
  background-color: #f9f9f9;
  margin: 25px 25px 25px 25px;
  cursor: pointer;
  position: relative;
  background-image: url('../images/cloud-upload-grey.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 150px;
  transition: background-color 0.3s ease;
}

.file-drop-zone.dragover {
  border: 2px dashed black;
  background-image: url('../images/cloud-upload-grey-50.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 150px;
  background-color: #e6f7ff;
}

.file-drop-zone.dragover-valid {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.file-drop-zone.dragover-valid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4); /* dim overlay */
  z-index: 1;
}



@media (max-width: 576px) {
  .logo-img {
    height: 9em;
  }

  .text-carousel {
    height: 500px;
    border-radius: 10px;
  }
  
  .welcome-paragraph {
    font-size: 13pt;
    padding: 1em;
  }

  input:invalid {
    border: 2px dashed red;
  }
  
  .rounded-container {
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: 0px;
    margin-right: 0px;
    border-radius: 10px;
    padding: 5px;
  }

  .input-field label.active {
    font-size: 14pt;  
  }

  h1 {
    font-size: 26pt;
    margin-top: -36px;
  }

  h2 {
    font-size: 20px;
    padding-bottom: 10px;
  }

  .input-field input,
  .input-field textarea {
    width: 100%;
    height: 50px;
    font-size: 16pt;
    border-radius: 7px;
    padding: 10px;
  }

  .input-field label,
  .select-container label,
  .toggle-agreement label {
    font-size: 13pt;
    top: 38px;
  }

  .input-field label,
  .select-container label:active,
  .toggle-agreement label:active {
    font-size: 13pt;
  }

  .check-button,
  .upload-button,
  .clip-btn {
    width: 60px;
    height: 60px;
    font-size: 16px;
  }
}
