:root {
  --primary-color: #28a745; /* Green */
  --accent-color: #ff9800;  /* Orange */
  --bg-color: #f9f9f9;
  --text-color: #333;
  --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  margin: 0;
  font-family: var(--font);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Navigation */
.navbar {
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  flex-wrap: wrap;
}

.navbar a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  padding: 10px;
  transition: color 0.3s, border-bottom 0.3s;
  font-size: clamp(0.9rem, 1vw, 1.1rem);
}

.navbar a.active,
.navbar a:hover {
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent-color);
}

/* Services Section */
.services {
  max-width: 900px;
  margin: clamp(40px, 8vw, 80px) auto;
  padding: 0 20px;
  text-align: center;
}

.services h1 {
  color: var(--primary-color);
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 20px;
}

.services p {
  font-size: clamp(1rem, 2vw, 1.1rem);
  margin-bottom: 30px;
}

.services ul {
  list-style: none;
  padding: 0;
}

.services li {
  font-size: clamp(1rem, 2vw, 1.1rem);
  margin: 15px 0;
  text-align: left;
}

.services li strong {
  color: var(--primary-color);
}

/* Chatbot Section */
iframe {
  margin-top: 40px;
  border: 1px solid var(--accent-color);
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  width: 100%;
  height: 70vh; /* fluid height */
  max-width: 1000px;
}

/* Chat Window */
#chat-window {
  display: flex;
  flex-direction: column;
  height: 70vh;
  max-width: 100%;
  margin: auto;
  border-radius: 8px;
}

#chat-output {
  flex: 1;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  padding: 10px;
  min-height: 150px;
  overflow-y: auto;
  background-color: #fefefe;
  border-radius: 6px;
}

/* Input container */
#chat-input-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

#user-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

#send-button {
  padding: 10px 16px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

#send-button:hover {
  background-color: var(--primary-color);
}

/* Message styling */
.message {
  margin-bottom: 8px;
  line-height: 1.4;
}

.message.user {
  text-align: right;
  color: #333;
}

.message.bot {
  text-align: left;
  color: var(--primary-color);
  font-weight: 500;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background-color: #fff;
  margin-top: 60px;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  color: #555;
}

/* Responsive */
@media (max-width: 992px) {
  iframe,
  #chat-window {
    height: 60vh;
  }
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
  }

  iframe,
  #chat-window {
    height: 50vh;
  }
}
