* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #000000 0%, #ffd8a8 50%, #ffcc80 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  color: #fff;
}

.container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

.subtitle {
  text-align: center;
  margin-bottom: 2rem;
  opacity: 0.9;
  font-size: 1.1rem;
}

.form-group {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #fff;
  transition: all 0.3s ease;
}

.form-group:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

label {
  font-weight: 500;
  min-width: 140px;
}

input[type="text"],
input[type="number"],
select,
textarea {
  flex: 1;
  padding: 10px 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #ff7f50;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 60px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #ff9f1c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.2);
}

select {
  cursor: pointer;
}

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

button {
  flex: 1;
  background: linear-gradient(135deg, #ff9f1c 0%, #ffb347 100%);
  border: none;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(255, 159, 28, 0.4);
  padding: 15px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

button:hover {
  background: linear-gradient(135deg, #ffb347 0%, #ffd27f 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 159, 28, 0.5);
}

button:active {
  transform: translateY(-1px);
}

.resultado {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 25px;
  margin-top: 25px;
  color: #ff7f50;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: none;
  animation: fadeIn 0.5s ease;
}

.resultado.show {
  display: block;
}

.resultado p {
  margin-bottom: 10px;
  line-height: 1.6;
  font-size: 1rem;
}

.resultado strong {
  color: #ff9f1c;
}

.feliz {
  color: #6bd879;
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
  margin-top: 15px;
  padding: 10px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 8px;
}

.triste {
  color: #dc2626;
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
  padding: 15px;
  background: rgba(220, 38, 38, 0.1);
  border-radius: 8px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.8rem;
  }

  .form-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  label {
    min-width: auto;
  }

  input,
  select,
  textarea {
    width: 100%;
  }

  .button-group {
    flex-direction: column;
  }
}
