:root {
  --primary-color: #333;
  --secondary-color: #f4f4f4;
  --accent-color: #0066cc;
  --text-color: #333;
  --light-text: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--text-color);
}

header {
  background: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  padding: 1em;
}

nav ul {
  display: flex;
  list-style-type: none;
  justify-content: center;
  gap: 2em;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #ccc;
}

main {
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 3em 2em;
  text-align: center;
  scroll-margin-top: 70px;
}

h1, h2, h3 {
  margin-top: 0;
}

.form-group {
  margin-bottom: 1em;
}

.form-group label {
  display: block;
  margin-bottom: 0.5em;
  text-align: left;
}

input, textarea {
  width: 100%;
  padding: 0.8em;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

button {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 0.8em 1.5em;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0055aa;
}

.download-button {
  display: inline-block;
  margin-top: 1em;
  padding: 0.8em 1.5em;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.download-button:hover {
  background-color: #0055aa;
}

#chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
}

#chatbot button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#chat-window {
  background: var(--secondary-color);
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 300px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: opacity 0.3s ease;
  max-height: 400px;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 10px;
  max-height: 250px;
}

.chat-input-area {
  display: flex;
  gap: 5px;
}

.chat-input-area input {
  flex: 1;
}

.chat-input-area button {
  padding: 0.5em 1em;
}

.user-message, .bot-message {
  margin: 5px 0;
  padding: 8px 12px;
  border-radius: 15px;
  max-width: 85%;
  word-wrap: break-word;
}

.user-message {
  background-color: var(--accent-color);
  color: white;
  align-self: flex-end;
  margin-left: auto;
}

.bot-message {
  background-color: #e9e9e9;
  color: var(--text-color);
  align-self: flex-start;
  margin-right: auto;
}

#qr-code {
  margin-top: 2em;
}

footer {
  background: var(--primary-color);
  color: var(--light-text);
  text-align: center;
  padding: 1em;
  margin-top: 2em;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 0.5em;
  }
  
  section {
    padding: 2em 1em;
  }
}