/* CSS Variables for theming */
:root {
  --primary: #2563eb;
  --primary-foreground: #ffffff;
  --secondary: #f97316;
  --background: #ffffff;
  --foreground: #0f172a;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --popover: #ffffff;
  --popover-foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #f1f5f9;
  --accent-foreground: #0f172a;
  --destructive: #dc2626;
  --destructive-foreground: #ffffff;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #2563eb;
  --radius: 0.5rem;
  /* Added green color variables for header and footer */
  --header-bg: #16a34a;
  --footer-bg: #15803d;
}

.dark {
  --primary: #3b82f6;
  --primary-foreground: #ffffff;
  --secondary: #fb923c;
  --background: #0f172a;
  --foreground: #f8fafc;
  --card: #1e293b;
  --card-foreground: #f8fafc;
  --popover: #1e293b;
  --popover-foreground: #f8fafc;
  --muted: #334155;
  --muted-foreground: #94a3b8;
  --accent: #334155;
  --accent-foreground: #f8fafc;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #334155;
  --input: #334155;
  --ring: #3b82f6;
  /* Added green color variables for dark mode */
  --header-bg: #16a34a;
  --footer-bg: #15803d;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  /* Changed header background to green */
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 0.3s ease;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
}

.logo-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  /* Changed header text to white for contrast */
  color: white;
}

.logo-text p {
  font-size: 0.875rem;
  /* Changed header subtitle to light gray for contrast */
  color: rgba(255, 255, 255, 0.8);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.desktop-nav a {
  /* Changed navigation links to white */
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.desktop-nav a:hover {
  /* Changed hover color to light green */
  color: rgba(255, 255, 255, 0.8);
}

.theme-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  /* Changed theme toggle color to white */
  color: white;
  transition: background-color 0.3s ease;
}

.theme-toggle:hover {
  /* Changed theme toggle hover to semi-transparent white */
  background-color: rgba(255, 255, 255, 0.1);
}

.dark .sun-icon {
  display: none;
}

.moon-icon {
  display: none;
}

.dark .moon-icon {
  display: block;
}

.dark .sun-icon {
  display: block;
}

.mobile-controls {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  /* Changed mobile menu toggle to white */
  color: white;
}

.close-icon {
  display: none;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.mobile-nav a {
  /* Changed mobile nav links to white */
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-nav a:hover {
  /* Changed mobile nav hover to light color */
  color: rgba(255, 255, 255, 0.8);
}

/* Hero Section */
.hero {
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(249, 115, 22, 0.05) 100%);
}

.hero-content {
  text-align: center;
}

.hero-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.hero-content > p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}

.hero-info {
  background-color: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius);
  padding: 1rem;
  max-width: 28rem;
  margin: 0 auto;
}

.hero-info p {
  color: var(--primary);
  font-weight: 600;
  margin: 0;
}

/* Calculator Section */
.calculator-section {
  padding: 0.5rem 0;
}

.booking-highlight {
  max-width: 48rem;
  margin: 0 auto 1rem auto;
  text-align: center;
  padding: 1rem 1rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.booking-highlight h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

.booking-highlight .subtitle {
  font-size: 1rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.booking-highlight .subtitle a {
  color: var(--primary);
  text-decoration: none;
}

.booking-highlight .subtitle a:hover {
  text-decoration: underline;
}

.current-booking-info {
  background-color: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.booking-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  text-wrap: balance;
  padding: 0rem 0rem
}

.highlight-date {
  color: #dc2626;
  font-weight: 700;
  font-size: 1.375rem;
}

.booking-note {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-style: italic;
  margin: 0;
}

.description {
  text-align: left;
}

.description p {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.journey-note {
  font-weight: 500;
  color: var(--foreground) !important;
}

.calculator-card {
  max-width: 48rem;
  margin: 0 auto;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.card-header {
  padding: 1.5rem 1.5rem 0;
}

.card-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--card-foreground);
  margin-bottom: 0.5rem;
}

.card-header h3 svg {
  color: var(--primary);
}

.card-header p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.card-content {
  padding: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-group input,
.form-group select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background-color: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  transition: border-color 0.3s ease;
  /* Added full width and proper box sizing for mobile */
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.calculate-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 0.5rem;
}

.calculate-btn:hover:not(:disabled) {
  background-color: rgba(37, 99, 235, 0.9);
}

.calculate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Result Card */
.result-card {
  background-color: var(--card);
  border: 2px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: slideIn 0.5s ease-out;
}

.result-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.result-content {
  padding: 1.5rem;
  text-align: center;
}

.result-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.booking-date {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--destructive);
  margin-bottom: 1rem;
}

.calendar-dropdown-container {
  position: relative;
}

.calendar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 0 auto;
}

.calendar-btn:hover {
  background-color: var(--muted);
}

.calendar-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.5rem;
  width: 12rem;
  background-color: var(--popover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
  display: none;
  animation: dropdownEnter 0.2s ease-out;
}

.calendar-dropdown.show {
  display: block;
}

.calendar-dropdown button {
  width: 100%;
  padding: 0.5rem 1rem;
  text-align: left;
  background: none;
  border: none;
  color: var(--popover-foreground);
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 0.875rem;
}

.calendar-dropdown button:hover {
  background-color: var(--muted);
}

.calendar-dropdown button:first-child {
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.calendar-dropdown button:last-child {
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

/* SEO Section */
.seo-section {
  padding: 1.5rem 0;
  background-color: rgba(241, 245, 249, 0.3);
}

.dark .seo-section {
  background-color: rgba(51, 65, 85, 0.3);
}

.seo-content {
  max-width: 64rem;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 0rem;
}

.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.info-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.info-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--card-foreground);
  margin-bottom: 0.75rem;
}

.info-card p,
.info-card ul {
  color: var(--muted-foreground);
  line-height: 1.6;
}

.info-card ul {
  list-style: none;
  padding: 0;
}

.info-card li {
  margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-section {
  padding: 1rem 0;
}

.faq-content {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  color: var(--foreground);
  margin-bottom: 2rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.faq-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--card-foreground);
  margin-bottom: 0.75rem;
}

.faq-card p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Footer */
.footer {
  /* Changed footer background to green */
  background-color: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.footer-content {
  max-width: 64rem;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-weight: 600;
  /* Changed footer headings to white */
  color: white;
  margin-bottom: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 2rem;
  height: 2rem;
  background-color: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
}

.footer-logo span {
  font-weight: 700;
  /* Changed footer logo text to white */
  color: white;
}

.footer-section p {
  /* Changed footer text to light gray */
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  /* Changed footer links to light gray */
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  /* Changed footer link hover to white */
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  /* Changed footer bottom text to light gray */
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropdownEnter {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Responsive Design */
@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-controls {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .hero-content h2 {
    font-size: 3rem;
  }
}

@media (max-width: 767px) {
  .desktop-nav {
    display: none;
  }

  .mobile-controls {
    display: flex;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content > p {
    font-size: 1.125rem;
  }

  .container {
    padding: 0 0.75rem;
  }

  /* Enhanced mobile form styling for better width and touch targets */
  .form-group input,
  .form-group select {
    padding: 0.75rem 1rem;
    min-height: 48px;
    font-size: 16px; /* Prevents zoom on iOS */
    width: 100%;
    box-sizing: border-box;
  }

  .form-grid {
    gap: 1.25rem;
  }

  .calculate-btn {
    padding: 1rem;
    min-height: 48px;
    font-size: 1rem;
    margin-top: 0.5rem; /* 👈 ye line add karein */
    margin-bottom: 0.5rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
