/* Chat Widget Styles */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: 'Raleway', sans-serif;
}

.chat-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #003366;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.chat-button i {
  font-size: 24px;
}

.chat-button:hover {
  background-color: #004488;
  transform: scale(1.05);
}

.chat-button.hidden {
  opacity: 0;
  visibility: hidden;
}

.chat-box {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  height: 400px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.chat-box.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chat-header {
  background-color: #003366;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h4 {
  margin: 0;
  font-weight: 600;
}

.chat-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
}

.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background-color: #f5f5f5;
}

.message {
  margin-bottom: 15px;
  max-width: 80%;
  clear: both;
}

.message p {
  padding: 10px 15px;
  border-radius: 15px;
  margin: 0 0 5px 0;
  word-wrap: break-word;
}

.message .time {
  font-size: 12px;
  color: #888;
  display: block;
}

.message.received {
  float: left;
}

.message.received p {
  background-color: #e6e6e6;
  color: #333;
  border-bottom-left-radius: 5px;
}

.message.sent {
  float: right;
}

.message.sent p {
  background-color: #003366;
  color: white;
  border-bottom-right-radius: 5px;
}

.chat-input {
  padding: 10px;
  display: flex;
  border-top: 1px solid #e6e6e6;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
}

.send-button {
  background-color: #003366;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-left: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.send-button:hover {
  background-color: #004488;
}

/* Appointment Booking System Styles */
.booking-system {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  margin-top: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.booking-system h3 {
  margin-top: 0;
  color: #003366;
  font-weight: 600;
  margin-bottom: 20px;
}

.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.booking-form .form-group {
  margin-bottom: 15px;
}

.booking-form .form-group.full-width {
  grid-column: span 2;
}

.booking-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Raleway', sans-serif;
}

.booking-form textarea {
  height: 100px;
  resize: vertical;
}

.booking-form button {
  background-color: #003366;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.booking-form button:hover {
  background-color: #004488;
}

.available-slots {
  margin-top: 20px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.time-slot {
  padding: 10px;
  text-align: center;
  background-color: #e6e6e6;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.time-slot:hover {
  background-color: #d9d9d9;
}

.time-slot.selected {
  background-color: #003366;
  color: white;
}

.time-slot.unavailable {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

/* Client Portal Teaser */
.client-portal-teaser {
  background-color: #003366;
  color: white;
  padding: 30px;
  border-radius: 10px;
  margin-top: 30px;
  text-align: center;
}

.client-portal-teaser h3 {
  margin-top: 0;
  font-weight: 600;
}

.client-portal-teaser p {
  margin-bottom: 20px;
}

.client-portal-teaser .btn {
  background-color: white;
  color: #003366;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.client-portal-teaser .btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #003366;
  color: white;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #004488;
  transform: translateY(-3px);
}
