body {
  font-family: Arial, sans-serif;
  background: #f4f6f9;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 10px;
  box-sizing: border-box;
}

* {
  box-sizing: border-box;
}

.form-container {
  background: #fff;
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 500px;
  min-width: 280px;
}

.form-container h1,
.form-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
  font-size: 24px;
}

input, select, button {
  width: 100%;
  padding: 18px 15px;
  margin: 12px 0;
  border: 2px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 16px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Specific select styling for mobile */
select {
  background: white;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 50px;
}

button {
  background: #007bff;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  margin-top: 20px;
  padding: 20px;
  font-size: 18px;
  border: none;
  transition: background-color 0.3s ease;
}

button:hover {
  background: #0056b3;
}

.logo {
  text-align: center;
  margin-bottom: 20px;
}

.logo img {
  max-width: 100%;
  height: auto;
  max-height: 120px;
  width: auto;
}

/* Mobile-first approach */
@media (max-width: 768px) {
  body {
    padding: 15px;
    align-items: flex-start;
    padding-top: 30px;
  }
  
  .form-container {
    max-width: 100%;
    min-width: 280px;
    padding: 25px 20px;
    margin: 0;
    border-radius: 12px;
  }
  
  input, select, button {
    padding: 20px 15px;
    font-size: 16px;
    margin: 15px 0;
    border-radius: 8px;
  }
  
  button {
    padding: 22px;
    font-size: 18px;
    margin-top: 25px;
  }
  
  .logo img {
    max-height: 100px;
  }
  
  .form-container h1,
  .form-container h2 {
    font-size: 22px;
    margin-bottom: 25px;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  body {
    padding: 10px;
    padding-top: 20px;
  }
  
  .form-container {
    max-width: 100%;
    min-width: 260px;
    padding: 20px 15px;
    border-radius: 10px;
  }
  
  input, select, button {
    padding: 18px 12px;
    font-size: 16px;
    margin: 12px 0;
  }
  
  select {
    padding-right: 45px;
    background-size: 14px;
  }
  
  button {
    padding: 20px;
    font-size: 17px;
  }
  
  .logo img {
    max-height: 80px;
  }
  
  .form-container h1,
  .form-container h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .form-container {
    padding: 18px 12px;
  }
  
  input, select, button {
    padding: 16px 10px;
    font-size: 15px;
  }
  
  button {
    padding: 18px 10px;
    font-size: 16px;
  }
  
  .form-container h1,
  .form-container h2 {
    font-size: 18px;
  }
}

/* Landscape orientation on small screens */
@media (max-width: 768px) and (orientation: landscape) {
  body {
    align-items: center;
    padding-top: 15px;
  }
  
  .form-container {
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* Focus states for better accessibility */
input:focus, select:focus, button:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Fix for iOS zoom on input focus */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}