body {
  background-image: url('bg.jpg'); /* Replace with your own image path */
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-color: #f8f8f8;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  margin: 2% auto; /* Adjust the margin-top to move the container higher */
  padding: 5%;
  max-width: 800px;
  width: 90%;
  height: auto;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  margin-bottom: 40px;
  color: #333;
  font-size: 50px;
}
h3 {
  text-align: left;
  margin-bottom: 30px;
  color: #333;
  font-size: 50px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

label {
  display: block;
  font-size: 40px;
  color: #555;
  margin-bottom: 5px;
}

.form-control {
  padding: 10px;
  font-size: 40px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

.error-message {
  font-size: 40px;
  color: red;
}

select.form-control,
input.form-control {
  width: 100%;
  font-size: 40px;
  max-width: 100%;
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 30px;
  font-size: 40px;
  text-align: center;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #0056b3;
}

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

.loading::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #000;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

/* Media query for screens with maximum width of 600px (typical smartphones) */
@media screen and (max-width: 600px) {
  .container {
    margin: 30px; /* Reduce the margin for smaller screens */
  }
  h1 {
    font-size: 22px; /* Slightly reduce the font size for smaller screens */
  }
  .form-control {
    font-size: 14px; /* Reduce font size for smaller input fields */
  }
  .btn-primary {
    padding: 10px; /* Reduce padding for better use of space */
    font-size: 14px; /* Reduce font size for smaller buttons */
  }
}
