/* Font import */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

/* Global font */
body, button, input {
  font-family: 'Roboto', sans-serif;
}

/* Reset & base */
body, html {
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  color: #222;
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

img {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2 {
  color: #d4202b;
}
p {
  font-size: 16px;
  line-height: 1.6;
}

/* Header and navigation */
.site-header {
  background-color: #ffffff;
  border-bottom: 2px solid #d4202b;
  padding: 10px 0;
}
.logo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  height: 50px;
  width: auto;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: #d4202b;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.main-nav a:hover {
  text-decoration: underline;
}

/* Sections */
.section {
  padding: 20px 0;
}
.home-section {
  background-color: #ffffff;
  text-align: center;
  padding-top: 60px;
}
.about-section,
.contact-section,
.policies-section {
  background-color: #fff;
  margin-top: 10px;
}

/* Contact form */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
}
input, textarea {
  padding: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 15px;
}
button {
  background-color: #d4202b;
  color: white;
  border: none;
  padding: 12px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}
button:hover {
  background-color: #b81b26;
}

/* Footer */
.site-footer {
  background-color: #eeeeee;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #555;
}

/* Slider */
.slider-container {
  width: 100%;
  max-width: 1200px;
  height: 300px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.slider {
  display: flex;
  transition: transform 1s ease-in-out;
}
.slide {
  min-width: 100%;
  height: 300px;
  object-fit: fill;
  display: none;
}
.slide.active {
  display: block;
}

/* Chat Button */
.chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #FF4159;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform 0.2s;
}
.chat-button:hover {
  transform: scale(1.1);
}
.chat-button.hidden {
  display: none;
}
.chat-icon {
  width: 30px;
  height: 30px;
}

/* Chat Container */
.chat-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  height: 400px;
  max-width: 90vw;
  max-height: 70vh;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  overflow: hidden;
  display: none;
  flex-direction: column;
}
.chat-container.open {
  display: flex;
}

/* Chat Header */
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #FF4159;
  color: white;
  border-radius: 8px 8px 0 0;
}
.chat-title-container {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.chat-title {
  font-size: 20px;
  font-weight: 500;
}
.header-buttons {
  display: flex;
  gap: 15px;
}
.header-button {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}
.header-button:hover {
  opacity: 0.8;
}
.header-button svg {
  width: 18px;
  height: 18px;
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.message {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 15px;
}
.user-message {
  background-color: #e1f5fe;
  align-self: flex-end;
  color: #333;
}
.assistant-message {
  background-color: #f1f1f1;
  align-self: flex-start;
  color: #333;
}

/* Chat Input */
.chat-input-container {
  display: flex;
  padding: 10px;
  border-top: 1px solid #eee;
  background-color: #f5f9ff;
}
.chat-input {
  flex: 1;
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  outline: none;
  color: black;
}
.chat-input:focus {
  border: 2px solid #a2a2ff;
}
.chat-input::placeholder {
  color: #747474;
}
.send-button, .mic-button {
  background: none;
  border: none;
  color: #FF4159;
  cursor: pointer;
  font-size: 20px;
  padding: 0 8px;
}
.mic-button.recording {
  color: #ff4040;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Chat Suggestions */
.chat-suggestions-container {
  border-top: 1px solid #eee;
  background-color: #f9f9f9;
  max-height: 70px;
  overflow-x: auto;
  white-space: nowrap;
}
.chat-suggestions {
  padding: 12px;
  display: inline-flex;
  gap: 8px;
}

.suggestion-button {
  font-size: 14px; /* Smaller text */
  padding: 6px 12px; /* Reduced padding */
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin: 4px;
  cursor: pointer;
}

.suggestion-button svg {
  width: 16px;
  height: 16px;
}


.suggestion-button {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  color: #333;
}
.suggestion-button:hover {
  background-color: #e0e0e0;
}

/* Audio Controls */
.audio-controls {
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.audio-control-button {
  background-color: #FF4159;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  display: none;
}
.audio-control-button.visible {
  display: block;
}

/* ================= Responsive ================= */
@media (max-width: 768px) {
  .logo-nav {
    flex-direction: column;
    align-items: center;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .slider-container {
    height: 200px;
  }

  .slide {
    height: 200px;
  }

  .chat-container {
    width: 350px;
    height: 450px;
  }

  .chat-suggestions-container {
    max-height: 80px;
  }
}

@media (max-width: 480px) {
  .chat-container.open {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .chat-button {
    bottom: 15px;
    right: 15px;
  }

  .chat-input {
    font-size: 16px;
  }

  .send-button, .mic-button {
    font-size: 24px;
  }

  .suggestion-button {
    font-size: 15px;
    padding: 8px 14px;
  }

  .message {
    max-width: 85%;
    font-size: 15px;
  }
}


.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #d4202b;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2000;
}

.side-nav {
  position: fixed;
  top: 0;
  left: -250px;
  width: 220px;
  height: 100%;
  background-color: #fff;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  transition: left 0.3s ease;
  z-index: 1500;
  padding-top: 60px;
}

.side-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 20px;
}

.side-nav a {
  color: #d4202b;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}

.side-nav.open {
  left: 0;
}

/* Show hamburger only on mobile */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .hamburger {
    display: block;
  }
}
