/* Base Styles */
:root {
  --primary: #0f172a;
  /* Slate 900 */
  --accent: #d4af37;
  /* Gold */
  --bg-light: #f8fafc;
  --text-main: #334155;
  --text-light: #64748b;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 1rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --bg-gradient-light: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --bg-gradient-mesh: radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%), radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%), radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  /* Sticky Footer Setup */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main,
.main-content {
  flex: 1;
  /* Pushes footer down */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  margin-top: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-icon {
  color: var(--accent);
  display: flex;
}

.logo-text .highlight {
  color: var(--accent);
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  color: var(--text-main);
}

.main-nav a:hover {
  color: var(--accent);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 90;
}

/* Search in Header */
.header-search {
  position: relative;
  width: 300px;
}

.search-form {
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  color: #94a3b8;
  z-index: 10;
}

.search-form input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  outline: none;
  font-size: 0.95rem;
}

.search-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Search Suggestions Dropdown */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #cbd5e1;
  border-top: none;
  border-radius: 0 0 12px 12px;
  z-index: 50;
  display: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  margin-top: 5px;
}

.suggestion-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
  transition: 0.2s;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: #f8fafc;
  color: var(--accent);
  padding-left: 1.5rem;
}

/* News Ticker */
.news-ticker-wrap {
  background: var(--primary);
  color: white;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  padding-left: 100%;
  /* Start off-screen */
  animation: ticker 40s linear infinite;
}

.ticker-item {
  margin-right: 3rem;
  display: inline-block;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Hero Section */
.hero-section {
  padding: 5rem 0;
  background: white;
}

.interior-hero {
  text-align: left;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

/* About Page Specifics */
.about-hero-text {
  color: var(--text-main);
}

.hero-search-wrapper input {
  border-radius: 8px;
  font-size: 1.1rem;
}

/* Cards & Grid */
.step-card,
.category-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.step-card:hover,
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

/* Home page category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* State page styles handled gracefully by layout above */

.step-number {
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  border: 1px solid #cbd5e1;
}

.cat-icon {
  width: 60px;
  height: 60px;
  background: #fffbeb;
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* FAQ */
.faq-item {
  background: white;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
  color: #475569;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

.faq-icon {
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Tables */
.rates-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  /* Removed min-width here to let container handle scroll, 
     but added whitespace nowrap below to force width */
}

.rates-table th,
.rates-table td {
  padding: 1.25rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.rates-table th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--primary);
}

.rates-table tr:last-child td {
  border-bottom: none;
}

.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
  /* Optional: adds definition to scroll area */
  border-radius: var(--radius-md);
}

/* Calculator */
.calc-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.calc-input-group {
  margin-bottom: 1.5rem;
}

.calc-input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-main);
}

.calc-input-group input,
.calc-input-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-family: inherit;
  box-sizing: border-box;
}

.calc-result {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #dcfce7;
  border-radius: var(--radius-md);
  text-align: center;
  color: #166534;
  display: none;
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: #94a3b8;
  padding: 4rem 0 2rem;
  margin-top: auto;
  /* Push to bottom if flex fails for some reason */
}

.footer-col h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .site-header {
    height: 70px;
  }

  /* Mobile Nav */
  .mobile-menu-btn {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    padding: 2rem;
    transition: 0.3s ease-in-out;
    box-sizing: border-box;
    gap: 1.5rem;
    align-items: flex-start;
    border-top: 1px solid #e2e8f0;
  }

  .main-nav.active {
    left: 0;
  }

  .main-nav.active a {
    font-size: 1.2rem;
    width: 100%;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .mobile-nav-overlay.active {
    display: block;
    top: 70px;
  }

  .desktop-only {
    display: none;
  }

  /* Typography */
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  /* Sections */
  .section {
    padding: 3rem 0 !important;
  }

  .hero-section {
    padding: 4rem 0 5rem !important;
  }

  /* Grid adjustments */
  .category-grid {
    grid-template-columns: 1fr !important;
  }

  /* Map */
  #india_map_div {
    height: 350px !important;
  }

  /* Table */
  .table-responsive {
    box-shadow: none;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
  }

  .rates-table th,
  .rates-table td {
    padding: 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
    /* Forces content to stay on one line, triggering scroll */
  }
}

/* 
   ------------------------------
   PREMIUM DESIGN SYSTEM ADDITIONS 
   ------------------------------
*/

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translate3d(-100px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translate3d(100px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.animate-up {
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
  /* JS or delay handler needed usually, but css forwards works if simple */
}

/* Stagger delays */
.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

.delay-400 {
  animation-delay: 400ms;
}

.delay-500 {
  animation-delay: 500ms;
}

/* Effects */
.glass-panel {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Premium Inputs */
.input-premium {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  background: #ffffff;
  transition: all 0.3s ease;
  font-size: 1rem;
  color: var(--primary);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.input-premium:focus {
  background: white;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
  outline: none;
}

/* ... existing button styles ... */

/* Modern Button */
.btn-premium {
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.btn-premium::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: 0.5s;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.3);
}

.btn-premium:hover::after {
  transform: translateX(100%);
}

.input-group {
  position: relative;
  margin-bottom: 2rem;
}

.input-group label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  pointer-events: none;
  color: var(--text-light);
  transition: 0.2s ease all;
}

/* Premium Card Design */
.premium-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border-top: 4px solid var(--accent);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 70%);
  pointer-events: none;
}

/* Floating Label Inputs */
.form-group-floating {
  position: relative;
  margin-bottom: 2rem;
}

.form-input-floating {
  width: 100%;
  padding: 1rem 1rem 0.5rem;
  font-size: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  background: #f8fafc;
  transition: all 0.3s ease;
  color: var(--primary);
}

.form-input-floating:focus {
  outline: none;
  background: white;
  border-color: var(--accent);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.form-label-floating {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: #94a3b8;
  font-size: 1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.form-input-floating:focus~.form-label-floating,
.form-input-floating:not(:placeholder-shown)~.form-label-floating {
  top: 0.25rem;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

/* Background Utilities */
.bg-mesh {
  background-color: #f1f5f9;
  /* Darker grey-blue base for better contrast */
  background-image:
    radial-gradient(at 40% 20%, hsla(28, 100%, 74%, 0.4) 0px, transparent 50%),
    radial-gradient(at 80% 0%, hsla(189, 100%, 56%, 0.4) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsla(340, 100%, 76%, 0.4) 0px, transparent 50%);
}