@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  background-color: #f4f4f4;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.form-fields {
  background-color: #a1a4a7;
  border-radius: 18px;
  justify-content: center;
  align-items: center;
  padding: 18px;
  width: 90%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

h2, h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #fff;
}

.form-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.required-label::after {
  content: '*';
  color: rgb(160, 17, 17);
  margin-left: 0.2rem;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 0px;
  border-bottom: 2px solid #ddd;
  transition: border-color 0.3s;
  min-width: 0;
}

select {
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='5' viewBox='0 0 10 5'%3E%3Cpath fill='%23333' d='M0 0l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

input:focus,
select:focus {
  border-color: #007bff;
  outline: none;
}

.consent-text {
  grid-column: 1 / -1;
  margin-bottom: 0.3rem;
  color: #fff;
}

.consent-text::after {
  content:'*';
  color: rgb(160, 17, 17);
  margin-left: 0.2rem;
}

.checkbox-container {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  margin-bottom: 0.3rem;
}

.checkbox-container input {
  margin-right: 0.5rem;
}

.terms-notice {
  grid-column: 1 / -1;
  border: 1px solid white;
  padding: 8px;
  margin-bottom: 1rem;
  color: #333;
  font-size: 0.8rem;
  color:#fff;
}

#submit{
  grid-column: 1 / -1;
  padding: 0.8rem;
  background-color: #ffa500;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  width: 100%;
}

#submit:hover {
  background-color: #fff;
  color: #ffa500;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#spinner {
  margin: auto; 
  width: 40px; 
  height: 40px; 
  border: 4px solid rgba(0, 0, 0, 0.1); 
  border-top: 4px solid #3498db; 
  border-radius: 50%; 
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 600px) {
  .form-body {
    grid-template-columns: 1fr;
  }
}