:root {
  --primary-color: #6d28d9; /* Purple */
  --primary-dark: #5b21b6;
  --primary-light: #8b5cf6;
  --secondary-color: #10b981; /* Green */
  --accent-color: #f59e0b; /* Amber */
  --text-dark: #1f2937;
  --text-light: #f9fafb;
  --background-light: #f3f4f6;
  --background-white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --rounded: 0.5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #f9fafb;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
header {
  background-color: var(--background-white);
  padding: 1rem 0;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo img {
  height: 40px;
  margin-right: 0.75rem;
}

.contact-info {
  display: flex;
  align-items: center;
}

.phone-container {
  display: flex;
  align-items: center;
}

.phone-container i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 0.75rem;
  background-color: #f3f4f6;
  padding: 0.75rem;
  border-radius: 50%;
}

.phone-container p {
  font-size: 0.875rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.phone-container a {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.125rem;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.pexels.com/photos/730134/pexels-photo-730134.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4rem 0;
  color: var(--text-light);
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Booking Form */
.booking-form-container {
  max-width: 1000px;
  margin: 0 auto;
  transition: all 0.5s ease-in-out;
}

.booking-form {
  background-color: var(--background-white);
  border-radius: var(--rounded);
  padding: 0.1rem;
  box-shadow: var(--shadow);
}

.trip-type {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.radio-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.radio-group input[type="radio"] {
  accent-color: var(--primary-color);
  width: 1.25rem;
  height: 1.25rem;
}

.radio-group label {
  font-weight: 500;
  color: var(--text-dark);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.1rem;
  margin-bottom: 0.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group label {
  display: flex;
  align-items: center;
  margin-bottom: 0.1rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group label i {
  color: var(--primary-color);
  margin-right: 0.1rem;
}

.form-group input,
.form-group select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: var(--rounded);
  font-family: inherit;
  font-size: 1rem;
  transition: border 0.3s ease;
  color: var(--text-dark);  /* Ensure text is dark */
  background-color: white;  /* Ensure background is white */
}

.form-group input::placeholder,
.form-group select::placeholder {
  color: #9ca3af;  /* Medium gray color for placeholders */
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.2);
}

.form-hint {
  font-size: 0.5rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.btn-search {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem .75rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--rounded);
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  margin-top: 1.25rem;
}

.btn-search:hover {
  background-color: var(--primary-dark);
}

/* Autocomplete dropdown */
.station-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 0 0 var(--rounded) var(--rounded);
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  display: none;
  box-shadow: var(--shadow);
  margin-top: -8px;
}

.station-suggestions.show {
  display: block;
}

.station-suggestion {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  color: var(--text-dark);  /* Ensure text is dark */
}

.station-suggestion:hover {
  background-color: var(--background-light);
}

/* Thank You Section */
.thank-you-section {
  display: none;
  background-color: var(--background-white);
  border-radius: var(--rounded);
  padding: 1rem;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 450px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.thank-you-section.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.thank-you-header {
  margin-bottom: 1rem;
}

.thank-you-header i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.thank-you-header h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.booking-details {
  text-align: left;
  margin: 1rem 0 0.5rem;
  background-color: #f8f9fa;
  border-radius: var(--rounded);
  padding: 0.75rem;
}

.detail-group p {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.reference {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--accent-color);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
  display: inline-block;
  font-size: 0.9rem;
}

.cta-button {
  background-color: #004080;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--rounded);
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin: 0.5rem 0;
}

.cta-button:hover {
  background-color: #003366;
}

.phone-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: var(--background-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--background-white);
  border-radius: var(--rounded);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  background-color: var(--primary-light);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 1.5rem;
}

.feature-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.feature-content p {
  font-size: 0.95rem;
  color: var(--text-dark);  /* Darker text for better contrast */
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: var(--background-white);
}

.about h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.about h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.about p {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.8;
  color: var(--text-dark);  /* Ensure text is dark */
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
}

.cta {
  padding: 2rem 0;
  text-align: center;
}

.cta p {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;  /* Ensure text is white */
}

.phone-link {
  display: inline-block;
  background-color: var(--background-white);
  color: var(--primary-color);
  font-size: 1.75rem;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: var(--rounded);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phone-link:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Hide hero text on mobile */
  .hero-content {
    display: none;
  }
  
  /* Adjust hero section padding for mobile */
  .hero {
    padding: 2rem 0;
    min-height: auto;
  }
  
  .booking-form {
    padding: 0.1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
  
  .form-date-row {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .booking-details {
    grid-template-columns: 1fr;
  }

  .trip-type {
    gap: 1rem;
  }

  .feature-card {
    flex-direction: column;
  }

  .feature-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .cta p {
    font-size: 1.25rem;
  }

  .phone-link {
    font-size: 1.5rem;
  }
  
  /* Hide railway agent number in header on mobile */
  .contact-info {
    display: none;
  }
  
  /* Center the logo in header on mobile */
  .header-inner {
    justify-content: center;
  }
}