@font-face {
  font-family: 'Ivy Presto Headline';
  src: url('https://storage.googleapis.com/nexus-cloud-storage/fonts/ivy-presto-headline-light.otf') format('opentype');
}

@font-face {
  font-family: 'SF Pro';
  src: url('https://storage.googleapis.com/nexus-cloud-storage/fonts/sf-pro.ttf') format('truetype');
}

.main-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: 'Ivy Presto Headline', 'SF Pro', sans-serif;
  font-size: 16px;
  margin: 50px;
}

.form-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: clamp(400px, 30%, 30%);
}

h1 {
  margin: 0;
  padding: 20px 0px 5px 0px;
  font-weight: 600;
}

.form-header {
  font-size: clamp(10px, 14px, 16px);
  text-align: left;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #657F60;
  width: 100%;
}

.form-body {
  width: 100%;
}

.form-group {
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  margin-bottom: 1.5rem;
}

.form-group label {
  display: flex;
  justify-content: start;
  align-items: center;
  margin-bottom: 0.75rem;
  font-weight: 500;
  font-size: 1.25rem;
}

.form-group label.required::after {
  content: ' *';
  color: red;
  margin-left: 0.2rem;
}

.form-group input {
  width: 100%;
  padding: 1rem 0.75rem;
  box-sizing: border-box;
  border: 1px solid lightgray;
  border-radius: 5px;
  font-family: 'SF Pro', sans-serif;
  transition: 50ms ease-in-out;
}

.form-group input::placeholder {
  font-family: 'SF Pro', sans-serif;
}

.form-group input:focus {
  outline: none;
  border: 1px solid #657F60;
}

input[type='checkbox']::checked {
  background-color: #657F60;
}

#calendar:hover {
  cursor: pointer;
}

.air-datepicker {
  font-family: 'SF Pro', sans-serif !important;
  z-index: 1000 !important;
}

.air-datepicker-body--day-name {
  color: #657F60 !important;
  font-weight: bold !important;
}

#logo {
  position: fixed;
  bottom: 0;
  right: 0;
  height: 1rem;
  width: auto;
  padding: 1rem;
}

.subtitle {
  font-family: 'SF Pro', sans-serif;
  font-size: 0.75rem;
  color: #000000;
  margin-top: 0.5rem;
  margin: 0;
  padding: 0;
  margin-bottom: 0.3rem;
  font-weight: 400;
}

a {
  color: #657F60;
  text-decoration: underline;
  font-weight: bold;
}

.submit-button {
  background-color: #657F60;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  font-family: 'SF Pro', sans-serif;
  font-size: 1.25rem;
  cursor: pointer;
  transition: 100ms ease-in-out all;
  width: 100%;
  font-weight: bold;
}

.submit-button:hover {
  cursor: pointer;
  scale: 1.01;
}

/* Address Suggestions */
.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid #ccc;
  background-color: #fff;
  max-height: 200px;
  overflow-y: auto;
  z-index: 2;
}

.suggestions:empty {
  border: none;
}

.suggestions div {
  padding: 8px;
  cursor: pointer;
}

.suggestions div:hover {
  background-color: #f0f0f0;
}

/* Loader spinning circle */
.loader {
  border: 12px solid #f3f3f3; /* Light grey background */
  border-top: 12px solid #657F60; /* Blue border for the spinner */
  border-radius: 50%; /* Circle shape */
  width: 10rem;
  height: 10rem;
  animation: spin 1s linear infinite; /* Spinning animation */
}

/* Keyframes for the spinning animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Loader container covering the entire screen */
.loader-container {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Show loader when the 'active' class is added */
.active {
  display: flex; /* Activate flexbox layout */
}
