/* Aurigny Roblox Booking System - Redesigned */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Aurigny Official Colors */
  --aurigny-blue: #153152;
  --aurigny-yellow: #FFD100;
  --aurigny-red: #C8102E;
  
  /* UI Colors */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --bg-light: #F8FAFC;
  --white: #FFFFFF;
  
  /* Discord */
  --discord-blurple: #5865F2;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, var(--aurigny-blue) 0%, #0A1929 100%);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Navigation */
.navbar {
  background: var(--white);
  border-bottom: 3px solid var(--aurigny-yellow);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--aurigny-blue);
}

/* Hero Section */
.hero {
  position: relative;
  height: 400px;
  background: url('alderney-aerial.jpg') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(21, 49, 82, 0.9) 0%, rgba(10, 25, 41, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Progress Steps */
.steps-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.step-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

.step.active .step-number {
  background: var(--aurigny-yellow);
  border-color: var(--aurigny-yellow);
  color: var(--aurigny-blue);
}

.step.active .step-label {
  color: var(--white);
}

.step.complete .step-number {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Main Container */
.main-container {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.card-wide {
  max-width: 1000px;
}

.card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.card-header h2 {
  color: var(--aurigny-blue);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.card-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Discord Login Section */
.discord-prompt {
  background: var(--bg-light);
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.discord-icon {
  width: 64px;
  height: 64px;
  color: var(--discord-blurple);
  margin-bottom: 1rem;
}

.discord-prompt p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-discord {
  background: var(--discord-blurple);
  color: var(--white);
}

.btn-discord:hover {
  background: #4752C4;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--aurigny-yellow);
  color: var(--aurigny-blue);
  margin-top: 1.5rem;
}

.btn-primary:hover {
  background: #E6BC00;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
  background: var(--white);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--aurigny-yellow);
  box-shadow: 0 0 0 3px rgba(255, 209, 0, 0.1);
}

.form-hint {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Flight Selector */
.flight-selector {
  margin-bottom: 1.5rem;
}

.flight-details {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.detail-value {
  font-weight: 700;
  color: var(--aurigny-blue);
}

/* Seat Map */
.seatmap-container {
  margin: 2rem 0;
}

.aircraft-section {
  background: linear-gradient(180deg, #E8EDF2 0%, #F8FAFC 100%);
  border: 3px solid var(--aurigny-blue);
  border-radius: 80px 80px 30px 30px;
  padding: 2rem 1.5rem;
  max-width: 400px;
  margin: 0 auto;
}

.cockpit {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px dashed var(--border);
}

.cockpit-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.cabin {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seat-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.row-number {
  width: 30px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.seat-group {
  display: flex;
  gap: 8px;
}

.aisle {
  width: 40px;
}

.seat {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.seat.available {
  background: var(--white);
  border: 2px solid var(--aurigny-blue);
  color: var(--aurigny-blue);
}

.seat.available:hover {
  background: var(--aurigny-yellow);
  border-color: var(--aurigny-yellow);
  transform: scale(1.05);
}

.seat.selected {
  background: var(--aurigny-blue);
  border: 2px solid var(--aurigny-blue);
  color: var(--white);
  transform: scale(1.05);
}

.seat.taken {
  background: var(--aurigny-red);
  border: 2px solid var(--aurigny-red);
  color: var(--white);
  cursor: not-allowed;
  opacity: 0.7;
}

/* Seat Legend */
.seat-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.seat-sample {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 2px solid;
}

.seat-sample.available {
  background: var(--white);
  border-color: var(--aurigny-blue);
}

.seat-sample.selected {
  background: var(--aurigny-blue);
  border-color: var(--aurigny-blue);
}

.seat-sample.taken {
  background: var(--aurigny-red);
  border-color: var(--aurigny-red);
}

.selected-seat-display {
  text-align: center;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 10px;
  margin: 1.5rem 0;
  font-weight: 700;
  color: var(--aurigny-blue);
  font-size: 1.1rem;
}

/* Confirmation Page */
.confirmation-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.confirmation-header h2 {
  color: var(--aurigny-blue);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.booking-ref-badge {
  display: inline-block;
  background: var(--aurigny-blue);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 1px;
}

.booking-summary {
  margin-bottom: 2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row.highlight {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 0.5rem;
  border: none;
}

.summary-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.summary-value {
  font-weight: 700;
  color: var(--aurigny-blue);
}

/* Info Box */
.info-box {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
}

.info-icon {
  flex-shrink: 0;
  color: #3B82F6;
}

.info-box p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Footer Note */
.footer-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 1.5rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 2rem;
  font-size: 0.875rem;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(21, 49, 82, 0.3);
  border-top-color: var(--aurigny-blue);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .steps-container {
    gap: 0.5rem;
  }
  
  .step-label {
    font-size: 0.75rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .seat-legend {
    flex-direction: column;
    gap: 1rem;
  }
}
