
:root {
  /* Colors */
  --bg-color: #ffffff; /* White */
  --bg-color-light: #ffffff;
  --page-bg: #f3f4f6; /* Light gray page background as in picture */
  --text-main: #0f172a; /* Dark text */
  --text-muted: #475569;
  --accent-primary: #059669; /* Emerald Green */
  --accent-primary-hover: #047857;
  --accent-secondary: #d97706; /* Amber/Orange */
  --border-color: rgba(0, 0, 0, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.85);
  
  /* Layout */
  --max-width: 900px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.3);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--page-bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-primary-hover);
}

/* Header */
header {
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Main Content */
main {
  flex: 1;
  width: 100%;
  padding: 2rem 1rem;
}

/* Wrapper for the white card */
.cvt-wrapper {
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 0 2rem 0; /* padding added inside sections */
  overflow: hidden;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 2rem;
  padding: 3rem 2rem 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Form Container */
.tool-container {
  background: var(--bg-color-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 0 2rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.tool-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-row {
  display: flex;
  gap: 1.5rem;
}

.form-row .form-group {
  flex: 1;
}

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

input[type="text"],
input[type="date"],
select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-color);
  border: 1px solid #d1d5db;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: none;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.btn {
  display: block;
  background: var(--accent-primary);
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
}

.btn:hover {
  background: var(--accent-primary-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* Result Section */
#result-container, 
#pnr-result-container, 
#fare-result-container {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.train-info h3 {
  font-size: 1.5rem;
  color: var(--text-main);
  margin: 0;
}

.train-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.status-badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-primary);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.coach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.coach-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.coach-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
}

.coach-card.full {
  opacity: 0.6;
}

.coach-name {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.coach-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.coach-status {
  font-weight: 600;
  font-size: 0.875rem;
}

.status-available { color: var(--accent-primary); }
.status-rac { color: var(--accent-secondary); }
.status-wl { color: #ef4444; }

/* Blog Article Styles */
.article-container {
  padding: 0 3rem 2rem;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--text-main);
}

.article-content p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.article-content ul, 
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: var(--bg-color);
  border-top: 1px solid var(--border-color);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .article-container {
    padding: 0 1.5rem 1.5rem;
  }
  .tool-container {
    margin: 0 1rem 2rem;
    padding: 1.5rem;
  }
  .nav-links {
    display: flex;
  }
}

/* FAQ Section */
.faq-section { margin: 3rem 0; padding: 2rem; background: var(--bg-color-light); border-radius: var(--radius-lg); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.section-header { text-align: center; margin-bottom: 2rem; }
.section-label { display: inline-block; background: rgba(16, 185, 129, 0.1); color: var(--accent-primary); padding: 0.25rem 0.75rem; border-radius: 999px; font-weight: 600; font-size: 0.875rem; margin-bottom: 1rem; }
.section-title { font-size: 2rem; font-weight: 800; color: var(--text-main); margin-bottom: 0.5rem; }
.section-desc { color: var(--text-muted); font-size: 1.1rem; }
.faq-container { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; transition: all 0.3s ease; }
.faq-item.active { border-color: var(--accent-primary); box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.1); }
.faq-question { width: 100%; text-align: left; background: var(--bg-color); padding: 1.25rem 1.5rem; border: none; display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; font-weight: 600; color: var(--text-main); cursor: pointer; transition: background 0.2s ease; }
.faq-question:hover { background: #f8fafc; }
.faq-question i { color: var(--text-muted); transition: transform 0.3s ease; }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--accent-primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: var(--bg-color); }
.faq-content { padding: 0 1.5rem 1.25rem; color: var(--text-muted); line-height: 1.6; }
.faq-content p { margin: 0; font-size: 1.05rem; }

/* Tools Grid Section */
.tools-grid-section {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.tools-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .tools-grid-container {
    grid-template-columns: 1fr;
  }
}

.tool-card {
  display: flex;
  align-items: center;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.15);
}

.tool-card:hover .tool-arrow {
  transform: translateX(4px);
}

.tool-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 1rem;
}

.tool-content {
  flex: 1;
}

.tool-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

.tool-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.3;
}

.tool-arrow {
  color: #94a3b8;
  font-size: 1rem;
  transition: transform 0.2s ease;
  margin-left: 0.5rem;
}
/* Newsletter & Footer Layout CSS */
.newsletter-section {
  background-color: #0c4a9d;
  padding: 3rem 1.5rem;
  color: white;
  margin-bottom: 0;
}
.newsletter-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .newsletter-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }
}
.newsletter-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}
.newsletter-text p {
  color: #e2e8f0;
  font-size: 0.95rem;
}
.newsletter-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 400px;
}
.newsletter-form {
  display: flex;
  background: white;
  border-radius: var(--radius-md);
  padding: 0.25rem;
}
.newsletter-form input {
  flex: 1;
  border: none;
  padding: 0.75rem 1rem;
  background: transparent;
  color: var(--text-main);
  outline: none;
  box-shadow: none;
  min-width: 0;
}
.newsletter-form button {
  background-color: #f59e0b;
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.newsletter-form button:hover {
  opacity: 0.9;
}
.newsletter-privacy {
  font-size: 0.75rem;
  color: #93c5fd;
  text-align: center;
}
@media (min-width: 768px) {
  .newsletter-privacy {
    text-align: left;
  }
}

.site-footer-main {
  background-color: #0f172a;
  padding: 3rem 2rem;
  text-align: center;
  color: #94a3b8;
  margin-top: 0;
  border-top: none;
}
.footer-links-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.footer-links-container a {
  color: #94a3b8;
  font-size: 0.9rem;
  text-decoration: none;
}
.footer-links-container a:hover {
  color: white;
}
.site-footer-main p {
  font-size: 0.85rem;
  color: #64748b;
}

/* Premium Hero Styling */
.premium-hero {
  text-align: center;
  padding: 4rem 2rem 2.5rem;
  position: relative;
  background: radial-gradient(circle at top center, rgba(16, 185, 129, 0.08), transparent 70%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-primary);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gradient-heading {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #0f172a; /* Fallback */
  letter-spacing: -1px;
}

.premium-hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .gradient-heading {
    font-size: 2.2rem;
  }
  .premium-hero {
    padding: 3rem 1.5rem 1.5rem;
  }
  .premium-hero p {
    font-size: 1rem;
  }
}

/* Mobile Responsive Header */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .nav-links {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 1.25rem;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: none; /* Firefox */
  }

  .nav-links::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .nav-links a {
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .logo img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 70px;
  }
}
