/* Hospice Engagement Tool - Core Styles */
.het-container {
  font-family: 'Open Sans', sans-serif;
  color: #2D3748;
  line-height: 1.5;
}

/* Trigger Button */
.het-trigger-button {
  background-color: #7FB08F;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.het-trigger-button:hover {
  background-color: #6a9a7a;
  transform: scale(1.02);
}

/* Modal Overlay */
.het-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  overflow-y: auto;
  justify-content: center;
  align-items: center;
}

.het-modal.het-active {
  display: flex;
  animation: hetFadeIn 0.3s ease-in-out;
}

/* Modal Content */
.het-modal-content {
  background-color: #FFFFFF;
  border-radius: 12px;
  max-width: 550px;
  width: 90%;
  padding: 32px;
  position: relative;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
  margin: 40px auto;
  animation: hetSlideUp 0.4s ease-out;
}

/* Close Button */
.het-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #F5F2ED;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.het-close-button:hover {
  background-color: #E8E1D9;
}

/* Modal Header */
.het-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.het-logo {
  height: 40px;
}

.het-hipaa-badge {
  background-color: #E6F2F8;
  color: #2C5282;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.het-hipaa-badge::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232C5282"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/></svg>');
  background-size: contain;
  margin-right: 4px;
}

/* Content Container */
.het-content-container {
  min-height: 300px;
}

/* Language Selector */
.het-language-selector {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  border-top: 1px solid #E8E1D9;
  padding-top: 16px;
}

.het-lang-btn {
  background: none;
  border: none;
  padding: 8px 12px;
  margin: 0 4px;
  cursor: pointer;
  border-radius: 4px;
  color: #6E7A85;
  transition: all 0.2s ease;
}

.het-lang-btn:hover {
  background-color: #F5F2ED;
}

.het-lang-active {
  color: #5B8FB9;
  font-weight: 600;
  border-bottom: 2px solid #5B8FB9;
}

/* Modal Footer */
.het-modal-footer {
  margin-top: 24px;
  text-align: center;
}

.het-privacy-text {
  font-size: 14px;
  color: #6E7A85;
}

/* Typography */
.het-heading-1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 32px;
  color: #2C5282;
  margin-bottom: 16px;
  line-height: 1.2;
}

.het-heading-2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: #2C5282;
  margin-bottom: 16px;
  line-height: 1.3;
}

.het-subheading {
  font-size: 18px;
  color: #6E7A85;
  margin-bottom: 24px;
}

.het-body-text {
  font-size: 16px;
  margin-bottom: 16px;
}

.het-helper-text {
  font-size: 14px;
  font-style: italic;
  color: #6E7A85;
}

/* Buttons */
.het-primary-btn {
  background-color: #7FB08F;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.het-primary-btn:hover {
  background-color: #6a9a7a;
  transform: scale(1.02);
}

.het-secondary-btn {
  background-color: transparent;
  border: 1px solid #5B8FB9;
  color: #5B8FB9;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.het-secondary-btn:hover {
  background-color: #E6F2F8;
}

.het-text-btn {
  background: none;
  border: none;
  color: #5B8FB9;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 16px;
  transition: all 0.2s ease;
}

.het-text-btn:hover {
  text-decoration: underline;
}

/* Progress Indicator */
.het-progress-indicator {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.het-progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #E8E1D9;
  margin: 0 6px;
  position: relative;
}

.het-progress-dot::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 12px;
  width: 24px;
  height: 2px;
  background-color: #E8E1D9;
}

.het-progress-dot:last-child::after {
  display: none;
}

.het-progress-dot.het-active {
  background-color: #5B8FB9;
}

.het-progress-dot.het-completed {
  background-color: #7FB08F;
}

.het-progress-dot.het-completed::before {
  content: "✓";
  position: absolute;
  top: -2px;
  left: 3px;
  font-size: 10px;
  color: white;
}

/* Form Elements */
.het-form-group {
  margin-bottom: 20px;
}

.het-form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 14px;
}

.het-form-input {
  width: 100%;
  height: 44px;
  padding: 8px 12px;
  border: 1px solid #E8E1D9;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.2s ease;
}

.het-form-input:focus {
  border-color: #5B8FB9;
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 143, 185, 0.1);
}

.het-form-select {
  width: 100%;
  height: 44px;
  padding: 8px 12px;
  border: 1px solid #E8E1D9;
  border-radius: 4px;
  font-size: 16px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%236E7A85"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  appearance: none;
}

/* Option Buttons */
.het-option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.het-option-btn {
  background-color: white;
  border: 1px solid #E8E1D9;
  border-radius: 8px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.het-option-btn:hover {
  border-color: #A3D5E9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.het-option-btn.het-selected {
  border-color: #5B8FB9;
  background-color: #E6F2F8;
}

.het-option-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
}

/* Checkbox Options */
.het-checkbox-group {
  margin-bottom: 24px;
}

.het-checkbox-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.het-checkbox-input {
  position: absolute;
  opacity: 0;
}

.het-checkbox-label {
  position: relative;
  padding-left: 36px;
  cursor: pointer;
  font-size: 16px;
  line-height: 24px;
}

.het-checkbox-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border: 1px solid #E8E1D9;
  border-radius: 4px;
  background-color: white;
}

.het-checkbox-input:checked + .het-checkbox-label::before {
  background-color: #5B8FB9;
  border-color: #5B8FB9;
}

.het-checkbox-input:checked + .het-checkbox-label::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 8px;
  height: 14px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Testimonial Box */
.het-testimonial {
  background-color: #E6F2F8;
  border-left: 4px solid #5B8FB9;
  padding: 16px;
  margin-bottom: 24px;
  position: relative;
}

.het-testimonial::before {
  content: """;
  position: absolute;
  top: 0;
  left: 8px;
  font-size: 48px;
  color: rgba(91, 143, 185, 0.2);
  line-height: 1;
}

.het-testimonial-text {
  font-style: italic;
  font-size: 15px;
  margin-bottom: 8px;
  padding-left: 24px;
}

.het-testimonial-author {
  font-weight: 600;
  font-size: 14px;
  text-align: right;
}

/* Trust Indicators */
.het-trust-indicators {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.het-trust-badge {
  background-color: #F7FAFC;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.het-trust-badge::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  background-size: contain;
  background-repeat: no-repeat;
}

.het-trust-badge.het-medicare::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232C5282"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 14h-2v-4H8v-2h2V9h2v2h2v2h-2v4z"/></svg>');
}

.het-trust-badge.het-chap::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232C5282"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"/></svg>');
}

.het-trust-badge.het-rating::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232C5282"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>');
}

/* Navigation */
.het-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

/* Benefit List */
.het-benefit-list {
  margin-bottom: 24px;
}

.het-benefit-item {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.het-benefit-item::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: #7FB08F;
  font-size: 24px;
}

/* Contact Options */
.het-contact-options {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.het-contact-option {
  flex: 1;
  text-align: center;
  padding: 16px;
  border: 1px solid #E8E1D9;
  border-radius: 8px;
  margin: 0 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.het-contact-option:hover {
  border-color: #A3D5E9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.het-contact-icon {
  font-size: 24px;
  margin-bottom: 8px;
  color: #5B8FB9;
}

/* Animations */
@keyframes hetFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsive Styles */
@media (max-width: 767px) {
  .het-modal-content {
    padding: 24px;
  }
  
  .het-heading-1 {
    font-size: 24px;
  }
  
  .het-heading-2 {
    font-size: 20px;
  }
  
  .het-option-grid {
    grid-template-columns: 1fr;
  }
  
  .het-contact-options {
    flex-direction: column;
  }
  
  .het-contact-option {
    margin: 8px 0;
  }
}