/* Modern CSS for Shopnfly Flight Booking Page */

/* CSS Variables for consistent theming */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --secondary-color: #f59e0b;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --error-color: #ef4444;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
#hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
  border-radius: 0 0 20px 20px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.hero-image {
  max-width: 100%;
  height: auto;
  margin: 0 auto 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
  display: block;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  opacity: 0.3;
}

#hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

#hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

#hero a {
  display: inline-block;
  margin: 10px;
  padding: 12px 30px;
  background: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

#hero a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--secondary-color);
  color: white;
}

/* Form Section */
#flight-enquiry {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease-out;
}

#flight-enquiry h2 {
  color: var(--primary-dark);
  margin-bottom: 15px;
  font-size: 2rem;
}

#flight-enquiry p {
  color: var(--text-light);
  margin-bottom: 30px;
}

#flight-enquiry form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

#flight-enquiry p {
  margin-bottom: 15px;
}

#flight-enquiry label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

#flight-enquiry input,
#flight-enquiry select,
#flight-enquiry textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

#flight-enquiry input:focus,
#flight-enquiry select:focus,
#flight-enquiry textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#flight-enquiry textarea {
  resize: vertical;
  min-height: 100px;
}

#flight-enquiry button {
  grid-column: 1 / -1;
  padding: 15px 30px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

#flight-enquiry button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

#flight-enquiry button:active {
  transform: translateY(0);
}

/* Content Sections */
section {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
  animation: fadeInUp 0.6s ease-out;
}

section h2 {
  color: var(--primary-dark);
  margin-bottom: 20px;
  font-size: 2rem;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 10px;
}

section h3 {
  color: var(--text-dark);
  margin: 25px 0 15px;
  font-size: 1.5rem;
}

section p {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.8;
}

section ul,
section ol {
  margin: 20px 0;
  padding-left: 30px;
  color: var(--text-light);
}

section li {
  margin-bottom: 10px;
  line-height: 1.6;
}

section a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

section a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Route Articles */
#london-to-australia-flight-routes article {
  background: var(--bg-light);
  padding: 25px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

#london-to-australia-flight-routes article:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

#london-to-australia-flight-routes article h3 {
  margin-top: 0;
  color: var(--primary-dark);
}

/* Contact Section */
address {
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--secondary-color);
  font-style: normal;
  margin-top: 20px;
}

address strong {
  color: var(--primary-dark);
  font-size: 1.2rem;
}

address a {
  color: var(--primary-color);
  text-decoration: none;
}

address a:hover {
  text-decoration: underline;
}

/* FAQ Section */
#faqs h3 {
  margin-top: 30px;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
}

/* Final CTA */
#contact {
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: white;
}

#contact h2 {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

#contact p {
  color: rgba(255, 255, 255, 0.9);
}

#contact a {
  display: inline-block;
  margin: 20px 10px;
  padding: 15px 40px;
  background: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

#contact a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  background: var(--secondary-color);
  color: white;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2rem;
  }
  
  #hero p {
    font-size: 1rem;
  }
  
  section {
    padding: 25px;
  }
  
  section h2 {
    font-size: 1.5rem;
  }
  
  #flight-enquiry form {
    grid-template-columns: 1fr;
  }
  
  #flight-enquiry {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  #hero {
    padding: 40px 15px;
  }
  
  #hero h1 {
    font-size: 1.5rem;
  }
  
  main {
    padding: 0 15px;
  }
  
  section {
    padding: 20px;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Image placeholders */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.city-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.city-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin: 20px 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

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

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

/* Success/Error messages */
.message {
  padding: 15px;
  border-radius: var(--border-radius);
  margin: 20px 0;
  font-weight: 600;
}

.message.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  border: 2px solid var(--success-color);
}

.message.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error-color);
  border: 2px solid var(--error-color);
}

/* Scroll to top button */
#scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 1000;
}

#scroll-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

#scroll-to-top.show {
  display: flex;
}