
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #c471ed, #f64f59);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: black;
  font-size: 30px;
  background-size: 200% 200%;
  animation: bgMove 8s ease infinite;
}

@keyframes bgMove {
    0% { background-position: left top; }
    50% { background-position: right bottom; }
    100% { background-position: left top; }
}
.container {
  width: 600px;
  background: rgba(255, 255, 255, 0.25);
  padding: 50px;
  border-radius: 40px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border:4px solid black ;
  border-top: 4px;
  border-bottom: 4px;
  animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.container:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #fbc2eb, #a6c1ee);
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 40px;
  animation: typing 3s steps(20) 1;
  white-space: nowrap;
  overflow: hidden;
}

@keyframes typing {
    from { width: 0; }
    to   { width: 100%; }
}


label {
  display: block;
  margin: 10px 0 5px;
}

input, select, textarea {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  outline: none;
  margin-bottom: 18px;
  font-size: 20px;
  transition: 0.3s ease;
}
input:focus, select:focus, textarea:focus {
  background: rgba(255,255,255,0.8);
  transform: scale(1.02);
}

textarea {
  resize: none;
}

.btn {
  display: inline-block;
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 30px;
  text-decoration: none;
  color:black;
  transition: 0.3s ease;
  flex: 1;
  border: 3px solid black;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  background-size: 200% 200%;
}
.btn:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-position: right center;
  animation: glow 1.5s ease infinite alternate;
} 
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.next { background: linear-gradient(135deg, #ff758c, #ff7eb3);}
.back { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.submit { background: linear-gradient(135deg, #4facfe, #00f2fe); width: 100%; }

.btn:hover {
  opacity: 0.85;
  
}

.btn-group {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.check-label input[type="checkbox"] {
    width: 18px;  
    height: 18px;
    accent-color: #0077b6;
    cursor: pointer
}

@media (max-width: 768px) {
  body {
    font-size: 18px;
    flex-direction: column;
    padding: 10px;
  }

  .container {
    width: 90%;
    padding: 20px;
    border-radius: 20px;
  }

  h2 {
    font-size: 24px;
    white-space: normal;
  }

  input, select, textarea {
    font-size: 16px;
    padding: 10px;
  }

  .btn {
    font-size: 18px;
    padding: 8px;
  }

  .btn-group {
    flex-direction: column;
  }
}
