/* Base Styles */
body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  padding-top: 0;
  font-size: 12px; 
}

/* Navbar */
.navbar {
  transition: all 0.3s;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 5px 0; 
  font-size: 12px;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 2px 0;
}

.navbar-brand {
  font-weight: 700;
}

.nav-link {
  font-weight: 500;
  margin: 0 10px;
  font-size: 12px;
}

.terms-header {
  background-color: #f8f9fa;
  padding: 40px 0 20px; 
  margin-bottom: 20px;
}

.terms-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

h1 {
  font-weight: 700;
  color: #222;
  margin-bottom: 12px; 
  font-size: 1.8rem; 
}

h2 {
  font-weight: 600;
  color: #2c3e50;
  margin: 18px 0 9px; 
  padding-bottom: 5px; 
  border-bottom: 1px solid #eee;
  font-size: 1.4rem; 
}

h3 {
  font-weight: 500;
  margin: 15px 0 6px; 
  font-size: 1.1rem; 
}

p, li {
  font-size: 0.85rem; 
  margin-bottom: 9px; 
}

ul {
  padding-left: 15px; 
}

.contact-info {
  background-color: #f8f9fa;
  padding: 15px; 
  border-radius: 8px;
  margin-top: 24px;
}

.back-to-top {
  position: fixed;
  bottom: 15px; 
  right: 15px; 
  background: #2c3e50;
  color: white;
  width: 32px; 
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s;
  font-size: 12px; /* Added */
}

.back-to-top:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .terms-header {
    padding: 24px 0 18px; 
  }
  
  h1 {
    font-size: 1.4rem; 
  }
  
  h2 {
    font-size: 1.1rem; 
  }
}

/* Footer */
footer {
  padding: 36px 0 18px; 
  font-size: 12px; 
}

footer h5 {
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 0.9rem; 
}

.social-links a {
  transition: all 0.3s;
  font-size: 1.2rem; 
}

.social-links a:hover {
  transform: translateY(-5px);
  opacity: 0.8;
}

.back-to-top {
  text-decoration: none;
  transition: all 0.3s;
}

.back-to-top:hover {
  color: #0d6efd !important;
}

/* Chat Widget Styles */
  .twilio-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    font-family: 'Aktiv Grotesk', sans-serif;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    height: 500px;
    display: flex;
    flex-direction: column;
  }
  
  .twilio-chat-widget.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .chat-header {
    background: #075E54;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
  }
  
  .chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #f5f5f5;
  }
  
  .chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
  }
  
  .chat-bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 10px;
    position: relative;
  }
  
  .chat-bubble.received {
    background: white;
    align-self: flex-start;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  .chat-bubble.sent {
    background: #DCF8C6;
    align-self: flex-end;
  }
  
  .chat-time {
    display: block;
    font-size: 10px;
    color: #999;
    text-align: right;
    margin-top: 4px;
  }
  
  .chat-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .form-group {
    width: 100%;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
  }
  
  .form-group textarea {
    min-height: 80px;
    resize: none;
  }
  
  .send-button {
    background: #25D366;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
  }
  
  .send-button:hover {
    background: #128C7E;
  }
  
  .chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
  }
  
  .chat-toggle:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  }
  
  .chat-toggle i {
    font-size: 20px;
  }