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

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

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

.header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.header h1 {
  color: #333;
  font-size: 28px;
  margin-bottom: 15px;
}

.booking-info {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
}

.booking-info p {
  margin: 5px 0;
  color: #555;
}

/* Dropdown Searchable Styles */
.searchable-select {
  position: relative;
  width: 100%;
}

.searchable-select input[type="text"] {
  width: 100%;
  padding: 12px 40px 12px 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.searchable-select::after {
  content: '▼';
  position: absolute;
  right: 15px;
  top: 15px;
  pointer-events: none;
  color: #667eea;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.searchable-select.open::after {
  transform: rotate(180deg);
}

.searchable-select .dropdown-list {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #667eea;
  border-radius: 8px;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
}

.searchable-select.open .dropdown-list {
  display: block;
}

.dropdown-list .option {
  padding: 12px 15px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-list .option:last-child {
  border-bottom: none;
}

.dropdown-list .option:hover {
  background: #f5f7ff;
}

.dropdown-list .option.selected {
  background: #667eea;
  color: white;
  font-weight: 600;
}

.dropdown-list .option.hidden {
  display: none;
}

.dropdown-list .loading-message,
.dropdown-list .no-results {
  padding: 20px;
  text-align: center;
  color: #999;
  font-style: italic;
}

.dropdown-list::-webkit-scrollbar {
  width: 8px;
}

.dropdown-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 8px;
}

.dropdown-list::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 8px;
}

.dropdown-list::-webkit-scrollbar-thumb:hover {
  background: #5568d3;
}

.selected-indicator {
  margin-top: 8px;
  padding: 8px 12px;
  background: #e8f5e9;
  border-left: 3px solid #4caf50;
  border-radius: 4px;
  color: #2e7d32;
  font-size: 14px;
}

.summary {
  background: #e3f2fd;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.summary h3 {
  color: #1976d2;
  margin-bottom: 10px;
}

.summary ul {
  list-style: none;
}

.summary li {
  padding: 5px 0;
  font-size: 16px;
  color: #424242;
}

.passenger-card {
  background: #fafafa;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.passenger-card:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.passenger-card h3 {
  color: #667eea;
  margin-bottom: 20px;
  font-size: 20px;
}

/* Indicador de datos precargados */
.passenger-card.preloaded {
  border-left: 4px solid #4caf50;
}

.preload-indicator {
  display: inline-block;
  margin-left: 10px;
  font-size: 12px;
  color: #4caf50;
  font-weight: normal;
  background: rgba(76, 175, 80, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
  font-size: 14px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:invalid,
.form-group select:invalid {
  border-color: #e0e0e0;
}

.submit-section {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #f0f0f0;
}

button[type="submit"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px 50px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

button[type="submit"]:active {
  transform: translateY(0);
}

button[type="submit"]:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

.help-text {
  color: #666;
  font-size: 14px;
  margin-top: 15px;
}

.error-box,
.success-box,
.info-box {
  text-align: center;
  padding: 40px;
  border-radius: 10px;
  margin-top: 50px;
}

.error-box {
  background: #ffebee;
  border: 2px solid #ef5350;
}

.error-box h1 {
  color: #c62828;
  margin-bottom: 15px;
}

.success-box {
  background: #e8f5e9;
  border: 2px solid #66bb6a;
}

.success-box h1 {
  color: #2e7d32;
  margin-bottom: 15px;
}

.info-box {
  background: #e3f2fd;
  border: 2px solid #42a5f5;
}

.info-box h3 {
  color: #1565c0;
  margin-bottom: 15px;
}

/* Loading spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .passenger-card {
    padding: 20px;
  }
  
  button[type="submit"] {
    width: 100%;
    padding: 16px;
  }
}

/* Document Upload Styles */
.documents-section {
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #007bff;
}

.documents-section h4 {
  color: #007bff;
  margin-bottom: 8px;
  font-size: 16px;
}

.documents-info {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
  font-style: italic;
}

.documents-section .form-group {
  margin-bottom: 15px;
}

.documents-section input[type="file"] {
  width: 100%;
  padding: 8px;
  border: 2px dashed #007bff;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.documents-section input[type="file"]:hover {
  border-color: #0056b3;
  background: #f0f8ff;
}

.documents-section input[type="file"]:focus {
  outline: none;
  border-color: #0056b3;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.file-info {
  display: block;
  margin-top: 5px;
  color: #666;
  font-size: 12px;
}

/* File input styling for better UX */
input[type="file"]::file-selector-button {
  background: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 10px;
  transition: background-color 0.3s ease;
}

input[type="file"]::file-selector-button:hover {
  background: #0056b3;
}
