body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 25%, #80deea 50%, #4dd0e1 75%, #26c6da 100%);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  color: #2d3748;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

header {
  background-color: #008080; /* Teal background */
  color: white;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

header a {
  color: white;
  text-decoration: none;
}

header nav a:hover {
  text-decoration: underline;
}

.hero {
  background: url('../assets/hero-bg.jpg') center center / cover no-repeat;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.drop-shadow-lg {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

section {
  padding: 2rem;
  margin: 1rem auto;
  max-width: 1200px;
  border-radius: 0.5rem;
}

.bg-white {
  background-color: white;
}

.bg-gray-50 {
  background-color: #f9fafb; /* Light gray */
}

.emi-calculator {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

footer {
  background-color: #2d3748; /* Dark gray */
  color: white;
  text-align: center;
  padding: 1.5rem;
}

button {
  cursor: pointer;
}

input, select, textarea {
  border: 1px solid #cbd5e0; /* Light gray border */
  border-radius: 0.375rem; /* Rounded corners */
  padding: 0.75rem;
  width: 100%;
  margin-bottom: 1rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #38b2ac; /* Teal focus border */
  box-shadow: 0 0 0 2px rgba(56, 189, 148, 0.5); /* Teal shadow */
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem; /* Smaller font size for mobile */
  }
}

/* Teal custom color */
.bg-teal-custom {
  background-color: #008080;
}

/* Flash animation for loading messages */
.flash {
  animation: flash 1.5s infinite;
}

@keyframes flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Chatbot styles */
#chat-box {
  transition: all 0.3s ease-in-out;
}

#chat-history::-webkit-scrollbar {
  width: 6px;
}

#chat-history::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#chat-history::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

#chat-history::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Collapsible section styles */
button[onclick^="toggleSection"] {
  transition: all 0.3s ease;
}

button[onclick^="toggleSection"]:hover {
  background-color: rgba(0, 128, 128, 0.05);
  border-radius: 8px;
  padding: 8px;
}

button[onclick^="toggleSection"] span {
  min-width: 30px;
  text-align: center;
}

/* Smooth transitions for collapsible content */
.hidden {
  display: none;
}

.overflow-hidden {
  overflow: hidden;
}

/* Equal height for EMI calculators */
#emi-section .grid > div {
  display: flex;
  flex-direction: column;
}

/* Minimum height for EMI result boxes */
.emi-result {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Ensure all sections have consistent styling */
section {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}