* { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  background: linear-gradient(135deg, #f97316, #fb923c, #facc15);
  background-size: 300% 300%;
  animation: gradientMove 10s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  width: 90%;
  max-width: 950px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  padding: 40px 45px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  color: #fff;
  animation: fadeIn 1.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

h2 {
  text-align: center;
  margin-bottom: 25px;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 1px;
  color: #fff8f0;
}

form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 25px;
}

.form-group {
  position: relative;
}

.form-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffd7a0;
  font-size: 14px;
}

input, select, textarea {
  width: 100%;
  padding: 12px 15px 12px 40px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.25);
  color: #333;
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 10px rgba(255, 235, 200, 0.6);
}

/* Dropdown fix */
select {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.3);
  appearance: none;
  padding-right: 35px;
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="14" viewBox="0 0 24 24" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  cursor: pointer;
}

select option {
  background-color: #222;
  color: #fff;
  padding: 10px;
}

select option:hover {
  background-color: #444;
}

textarea {
  resize: none;
  grid-column: span 2;
}

button {
  grid-column: span 2;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #facc15, #f97316);
  border: none;
  border-radius: 10px;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
}

::placeholder { color: rgba(255,255,255,0.8); }

small {
  color: #ffebd1;
  display: block;
  margin-top: 3px;
  font-size: 13px;
}

.error {
  border: 1px solid #ff6b6b !important;
  background: rgba(255, 0, 0, 0.15) !important;
}

@media (max-width: 768px) {
  form {
    grid-template-columns: 1fr;
  }
  textarea, button {
    grid-column: 1;
  }
}