/* Legal Assessment Questionnaire Styles */
.legal-assessment {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow-y: auto;
}

.legal-assessment.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.assessment-container {
  max-width: 800px;
  margin: 50px auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.assessment-header {
  background-color: #1a4d80;
  color: white;
  padding: 25px 30px;
  text-align: center;
  border-bottom: 5px solid #1e6642;
}

.assessment-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.assessment-header p {
  margin-top: 10px;
  font-size: 16px;
  opacity: 0.9;
}

.assessment-content {
  padding: 30px;
}

.assessment-step {
  display: none;
}

.assessment-step.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.step-title {
  font-size: 24px;
  color: #1a4d80;
  margin-bottom: 10px;
}

.progress-bar-container {
  margin: 20px 0 30px;
  background-color: #eee;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: #1e6642;
  width: 0;
  transition: width 0.5s ease;
}

.step-question {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
}

.step-info {
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.option {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option:hover {
  background-color: #f0f7ff;
  border-color: #1a4d80;
}

.option.selected {
  background-color: rgba(30, 102, 66, 0.1);
  border-color: #1e6642;
  box-shadow: 0 0 0 1px #1e6642;
}

.other-input {
  margin-top: 15px;
}

.other-input label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
}

.other-input input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.option-text {
  font-size: 16px;
  color: #333;
}

.assessment-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.btn-prev {
  background-color: transparent;
  border: 1px solid #1a4d80;
  color: #1a4d80;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-prev:hover {
  background-color: rgba(26, 77, 128, 0.1);
}

.btn-next {
  background-color: #1e6642;
  border: none;
  color: white;
  padding: 10px 25px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-next:hover {
  background-color: #1a4d80;
}

.btn-next:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.assessment-result {
  display: none;
  padding: 30px;
  text-align: center;
}

.assessment-result.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.result-icon {
  font-size: 60px;
  color: #1e6642;
  margin-bottom: 20px;
}

.result-title {
  font-size: 24px;
  color: #1a4d80;
  margin-bottom: 15px;
}

.result-message {
  font-size: 16px;
  color: #333;
  margin-bottom: 25px;
  line-height: 1.6;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.btn-schedule {
  background-color: #1e6642;
  border: none;
  color: white;
  padding: 12px 25px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-schedule:hover {
  background-color: #1a4d80;
}

.btn-close {
  background-color: transparent;
  border: 1px solid #1a4d80;
  color: #1a4d80;
  padding: 12px 25px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-close:hover {
  background-color: rgba(26, 77, 128, 0.1);
}

/* Legal Assistant Chat Styles */
.legal-assistant {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 900;
}

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

.assistant-button:hover {
  background-color: #1a4d80;
  transform: scale(1.05);
}

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

.assistant-button::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #1e6642;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.assistant-popup {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 350px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: none;
  flex-direction: column;
  height: 450px;
  border: 1px solid #eee;
}

.assistant-popup.active {
  display: flex;
  animation: slideUp 0.3s ease;
}

.assistant-header {
  background-color: #1e6642;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.assistant-header h3 {
  margin: 0;
  font-size: 18px;
}

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

.assistant-messages {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  max-width: 80%;
  padding: 12px 15px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
}

.message.assistant {
  background-color: #f0f0f0;
  color: #333;
  border-top-left-radius: 4px;
  align-self: flex-start;
}

.message.user {
  background-color: #1a4d80;
  color: white;
  border-top-right-radius: 4px;
  align-self: flex-end;
}

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

.assistant-input input {
  flex-grow: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
}

.assistant-input input:focus {
  border-color: #1a4d80;
}

.assistant-send {
  background-color: #1e6642;
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-left: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.assistant-send:hover {
  background-color: #1a4d80;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  background-color: #f0f0f0;
  border-radius: 18px;
  width: fit-content;
  margin-top: 5px;
  align-self: flex-start;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: #888;
  border-radius: 50%;
  animation: typingAnimation 1.5s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
  animation-delay: 0s;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.3s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes typingAnimation {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive styles */
@media (max-width: 900px) {
  .assessment-container {
    margin: 30px 20px;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .assessment-header {
    padding: 20px;
  }
  
  .assessment-content {
    padding: 20px;
  }
  
  .legal-assistant {
    bottom: 20px;
    right: 20px;
  }
  
  .assistant-popup {
    width: 300px;
    right: -10px;
  }
}
