* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

h1 {
  color: #333;
  margin-bottom: 25px;
  text-align: center;
  font-size: 1.8em;
}

h2 {
  color: #555;
  margin-top: 20px;
  margin-bottom: 15px;
  font-size: 1.2em;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 0.95em;
}

select,
input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.95em;
  transition: border-color 0.3s ease;
}

select:focus,
input[type="text"]:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Autocomplete container */
.autocomplete-container {
  position: relative;
}

#hotelInput {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  padding-left: 38px;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #667eea;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.autocomplete-dropdown.hidden {
  display: none;
}

.autocomplete-item {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.95em;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.15s ease;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background-color: #f0f4ff;
}

.autocomplete-item.no-results {
  color: #999;
  cursor: default;
  font-style: italic;
}

.autocomplete-item.no-results:hover {
  background-color: transparent;
}

fieldset {
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
}

legend {
  font-weight: 600;
  color: #333;
  padding: 0 8px;
  margin-left: -8px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
  margin-bottom: 0;
}

.radio-label input[type="radio"] {
  width: auto;
  margin-right: 10px;
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.resultado {
  margin-top: 20px;
  padding: 12px 15px;
  border-radius: 6px;
  min-height: 20px;
  font-size: 0.95em;
}

.resultado.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.resultado.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.resultado.empty {
  display: none;
}

.preview {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px solid #e0e0e0;
}

.preview.hidden {
  display: none;
}

#previewText {
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  font-size: 0.9em;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: #333;
  max-height: 400px;
  overflow-y: auto;
}

.footer {
  max-width: 500px;
  margin: 20px auto 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85em;
  line-height: 1.6;
}

.footer a {
  color: white;
  font-weight: 600;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.footer a:hover {
  opacity: 0.8;
}

.footer {
  position: relative;
}

.email-toast {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 100%;
  margin-bottom: 10px;
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 0.95);
  color: #155724;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.email-toast.show {
  opacity: 1;
}

.email-toast.hidden {
  display: none;
}

@media (max-width: 480px) {
  .container {
    padding: 20px;
  }

  h1 {
    font-size: 1.4em;
  }
}
