/* Import base styles */
@import url("./styles.css");

body {
  min-height: 100vh;
}

header {
  all: revert;
}

/* Header Styles */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Mock API Toggle Styles */
.mock-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: 1rem;
  cursor: pointer;
  user-select: none;
}

.mock-toggle input[type="checkbox"] {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 50px;
  height: 24px;
  background: #ccc;
  border-radius: 24px;
  transition: all 0.3s ease;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mock-toggle input[type="checkbox"]:checked + .toggle-slider {
  background: #2730B9;
}

.mock-toggle input[type="checkbox"]:checked + .toggle-slider::before {
  transform: translateX(26px);
}

.toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.mock-toggle:hover .toggle-slider {
  background: #999;
}

.mock-toggle input[type="checkbox"]:checked:hover + .toggle-slider {
  background: #1F2596;
}

.header-logo img {
  height: 40px;
}

.header-actions {
  display: flex;
  gap: 1rem;
}

.header-btn {
  background: #7C29C4;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 45px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.header-btn:hover {
  background: #2730B9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-btn-secondary {
  background: #2730B9;
}

.header-btn-secondary:hover {
  background: #1F2596;
}

/* Stepper Layout */
.stepper-container {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-height: 0;
  padding: 2rem;
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
  font-family: "Plus Jakarta Sans", serif;
}

/* Breadcrumb Navigation */
.breadcrumb-navigation {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  cursor: default;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  color: #5f5f5f;
  background: #f8f8f8;
  border: 2px solid transparent;
}

.breadcrumb-item.completed {
  background: #e8f5e9;
  color: #2730B9;
  border-color: #2730B9;
}

.breadcrumb-item.active {
  background: #7C29C4;
  color: white;
  border-color: #7C29C4;
  box-shadow: 0 4px 12px rgba(100, 44, 194, 0.3);
}

.breadcrumb-icon {
  font-size: 18px;
}

.breadcrumb-text {
  font-weight: 600;
}

.breadcrumb-separator {
  color: #ccc;
  font-size: 18px;
  margin: 0 0.25rem;
}

/* Main Content Panel */
.stepper-content-panel {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.step-progress {
  margin-bottom: 2rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7C29C4 0%, #2730B9 100%);
  width: 20%;
  transition: width 0.5s ease;
}

.step-counter {
  text-align: right;
  margin-top: 0.5rem;
  font-size: 14px;
  color: #5f5f5f;
  font-weight: 500;
}

.step-content {
  min-height: 400px;
  margin-bottom: 2rem;
}

.step {
  display: none;
  /* animation: fadeIn 0.5s ease; */
}

.step.active {
  display: block;
}

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

.step-title {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.step-description {
  font-size: 18px;
  color: #5f5f5f;
  margin-bottom: 2rem;
}

/* Form Styles */
.step-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem 1rem;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Plus Jakarta Sans", serif;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #2730B9;
}

.form-group input:valid,
.form-group textarea:valid {
  border-color: #2730B9;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-group.horizontal {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.checkbox-label:hover {
  background-color: #f8f8f8;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #7C29C4;
}

/* Navigation Buttons - Removed, using step CTAs instead */

.nav-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 45px;
  font-size: 18px;
  font-weight: 600;
  font-family: "Plus Jakarta Sans", serif;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}

.prev-btn {
  background-color: #f8f8f8;
  color: #333;
}

.prev-btn:hover:not(:disabled) {
  background-color: #e5e5e5;
}

.prev-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.next-btn,
.submit-btn {
  background-color: #7C29C4;
  color: white;
}

.next-btn:hover,
.submit-btn:hover {
  background-color: #2730B9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Right Panel - Upcoming Steps */
.stepper-right-panel {
  padding: 1rem;
  background: #f8f8f8;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.upcoming-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 1.5rem;
}

.upcoming-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.upcoming-step {
  background: white;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.upcoming-step:hover {
  border-color: #7C29C4;
  transform: translateX(-5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.upcoming-step.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.step-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  border-radius: 50%;
}

.step-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.step-info p {
  font-size: 14px;
  color: #5f5f5f;
  margin: 0.25rem 0 0 0;
}

/* Review Section */
.review-section {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.review-category {
  margin-bottom: 1.5rem;
}

.review-category:last-child {
  margin-bottom: 0;
}

.review-category h3 {
  font-size: 18px;
  font-weight: 600;
  color: #7C29C4;
  margin-bottom: 0.5rem;
}

.review-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.review-item:last-child {
  border-bottom: none;
}

.review-label {
  font-size: 14px;
  color: #5f5f5f;
  font-weight: 500;
}

.review-value {
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

.consent-section {
  margin-top: 2rem;
  padding: 1rem;
  background: #fef9ff;
  border: 2px solid #7C29C4;
  border-radius: 8px;
}

/* Success State */
.success-message {
  text-align: center;
  padding: 3rem;
}

.success-icon {
  font-size: 64px;
  margin-bottom: 1rem;
}

.success-title {
  font-size: 28px;
  font-weight: 700;
  color: #2730B9;
  margin-bottom: 0.5rem;
}

.success-text {
  font-size: 18px;
  color: #5f5f5f;
}

/* EMR Portal Styles */
.emr-portal {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
}

.emr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e5e5;
}

.emr-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.emr-logo {
  font-size: 36px;
}

.search-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.search-box {
  display: flex;
  align-items: end;
  gap: 1rem;
}

.search-box label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  display: block;
}

.search-box input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Plus Jakarta Sans", serif;
}

.search-button {
  background-color: #7C29C4;
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-button:hover {
  background-color: #2730B9;
  transform: translateY(-2px);
}

/* Search Results */
.search-results {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.results-header h4 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.results-count {
  color: #2730B9;
  font-weight: 600;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.result-item {
  padding: 0.75rem;
  background: #f8f8f8;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
}

.results-more {
  text-align: center;
  color: #5f5f5f;
  font-style: italic;
  padding: 0.5rem;
}

.download-section {
  text-align: center;
}

.download-button {
  background-color: #2730B9;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 45px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.download-button:hover {
  background-color: #1F2596;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.download-icon {
  font-size: 20px;
}

/* Areti Dialog */
.areti-dialog {
  background: white;
  border: 3px solid #7C29C4;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(100, 44, 194, 0.2);
}

.dialog-icon {
  font-size: 48px;
  margin-bottom: 1rem;
}

.areti-dialog h3 {
  font-size: 28px;
  font-weight: 700;
  color: #7C29C4;
  margin: 0 0 0.5rem 0;
}

.dialog-subtitle {
  font-size: 20px;
  color: #5f5f5f;
  margin: 0;
}

.areti-dialog-small {
  background: #f8f8f8;
  border: 2px solid #7C29C4;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.areti-dialog-small:hover {
  background: #7C29C4;
  color: white;
  transform: scale(1.05);
}

.areti-dialog-small .dialog-icon {
  font-size: 24px;
  margin-bottom: 0.5rem;
}

.areti-dialog-small p {
  margin: 0;
  font-weight: 600;
}

/* Spreadsheet Preview */
.spreadsheet-preview {
  background: white;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.spreadsheet-preview:hover {
  border-color: #7C29C4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.spreadsheet-header {
  background: #7C29C4;
  color: white;
  padding: 1rem;
  margin: -1.5rem -1.5rem 1.5rem -1.5rem;
  border-radius: 6px 6px 0 0;
}

.spreadsheet-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.demographics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.demographics-table th {
  background: #f8f8f8;
  padding: 0.75rem;
  text-align: center;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e5e5e5;
}

.demographics-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e5e5;
}

.demographics-table tbody tr:hover {
  background: #f8f8f8;
}

.click-instruction {
  text-align: center;
  color: #2730B9;
  font-style: italic;
  margin-top: 1rem;
  font-size: 14px;
}

/* XML Container */
.xml-container {
  background: white;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.xml-container:hover {
  border-color: #7C29C4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.xml-header {
  background: #333;
  color: white;
  padding: 1rem;
}

.xml-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.xml-content {
  padding: 1.5rem;
  font-family: "Courier New", monospace;
  font-size: 14px;
  color: #333;
  background: #f8f8f8;
  margin: 0;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* Processing Status */
.processing-container {
  text-align: center;
}

.processing-status {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background: #f8f8f8;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  flex: 0 1 calc(33.333% - 1rem);
  min-width: 250px;
}

.status-item.complete {
  background: #e8f5e9;
}

.status-icon {
  font-size: 32px;
  margin-bottom: 0.5rem;
}

.status-text {
  font-size: 15px;
  color: #333;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Status Progress Bar */
.status-progress {
  width: 100%;
  height: 8px;
  background: #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.status-progress-bar {
  width: 100%;
  height: 100%;
  background: #e5e5e5;
  border-radius: 4px;
  position: relative;
}

.status-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7C29C4 0%, #2730B9 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.status-progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.status-check {
  font-size: 20px;
  position: absolute;
  right: 1rem;
  top: 1rem;
  animation: fadeIn 0.5s ease;
}

.leads-result {
  margin-top: 2rem;
  width: 100%;
}

/* Enhanced Leads Preview */
.leads-preview {
  background: white;
  border: 3px solid #7C29C4;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 6px 30px rgba(100, 44, 194, 0.15);
  animation: slideInUp 0.6s ease;
}

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

.leads-header {
  background: linear-gradient(135deg, #7C29C4 0%, #2730B9 100%);
  color: white;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.leads-header h4 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.leads-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.leads-table th {
  background: #f8f8f8;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e5e5e5;
}

.leads-table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e5e5;
}

.leads-table tbody tr {
  transition: all 0.3s ease;
}

.leads-table tbody tr:hover {
  background: #fafafa;
  transform: translateX(5px);
}

.leads-table tbody tr.high-priority {
  background: #fef3f2;
}

.leads-table tbody tr.high-priority:hover {
  background: #fee8e6;
}

/* Score Badges */
.score-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  display: inline-block;
}

.score-badge.high {
  background: #d4f1d4;
  color: #2e7d32;
}

.score-badge.medium {
  background: #fff3cd;
  color: #856404;
}

/* Priority Badges */
.priority-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
  text-transform: uppercase;
}

.priority-badge.urgent {
  background: #dc3545;
  color: white;
  animation: pulse 2s ease infinite;
}

.priority-badge.high {
  background: #ff7043;
  color: white;
}

.priority-badge.medium {
  background: #ffa726;
  color: white;
}

.priority-badge.low {
  background: #66bb6a;
  color: white;
}

/* Leads Summary */
.leads-summary {
  padding: 1.5rem;
  background: #f8f8f8;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
}

/* Leads Action Button */
.leads-action {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid #e5e5e5;
}

.action-button {
  background: #7C29C4;
  color: white;
  padding: 1rem 3rem;
  border: none;
  border-radius: 45px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(100, 44, 194, 0.3);
}

.action-button:hover {
  background: #2730B9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(94, 158, 149, 0.4);
}

.action-button:active {
  transform: translateY(0);
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.summary-icon {
  font-size: 28px;
  background: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.summary-text {
  font-size: 16px;
  color: #5f5f5f;
}

.summary-text strong {
  display: block;
  font-size: 24px;
  color: #7C29C4;
  margin-bottom: 0.25rem;
}

/* Outreach Form */
.outreach-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  position: relative;
}

.form-card {
  background: white;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 500px;
  width: 100%;
}

.form-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.form-subtitle {
  font-size: 16px;
  color: #5f5f5f;
  margin-bottom: 2rem;
}

.outreach-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.outreach-form .form-group input {
  background: white;
  border: none;
  border-bottom: 2px solid #e5e5e5;
  border-radius: 0;
  padding: 0.75rem 0;
  transition: border-color 0.3s ease;
}

.outreach-form .form-group input:focus {
  border-bottom-color: #2730B9;
}

.outreach-form .form-group label {
  color: #999;
  font-size: 14px;
  font-weight: 400;
}

/* Outreach Widget */
.outreach-widget {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  max-width: 400px;
  width: 100%;
  animation: fadeInWidget 0.5s ease;
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInWidget {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

.widget-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.widget-icon {
  font-size: 48px;
  animation: pulse 2s ease infinite;
}

.widget-text {
  font-size: 24px;
  font-weight: 700;
  color: #7C29C4;
  margin: 0;
}

.widget-subtext {
  font-size: 16px;
  color: #5f5f5f;
  margin: 0;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Results Table Styles */
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.results-table th {
  background: #7C29C4;
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.results-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e5e5;
}

.results-table tbody tr:hover {
  background: #f8f8f8;
}

/* Box Container Styles */
.box-container {
  max-width: 600px;
  margin: 2rem auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.box-header {
  background: #f8f8f8;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid #e5e5e5;
}

.box-logo {
  font-size: 48px;
}

.box-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.box-dropzone {
  padding: 2rem;
  text-align: center;
}

.file-dropped {
  background: #f8f8f8;
  border: 2px dashed #2730B9;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.file-icon {
  font-size: 48px;
  margin-bottom: 1rem;
}

.file-info h4 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.5rem 0;
}

.file-info p {
  font-size: 14px;
  color: #5f5f5f;
  margin: 0;
}

.file-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: #2730B9;
  font-weight: 600;
}

.share-button {
  background: #7C29C4;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 45px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-button:hover {
  background: #2730B9;
  transform: translateY(-2px);
}

/* Simple Table Styles */
.simple-table {
  width: 100%;
  margin: 0 auto;
}

.simple-table th {
  background: #f8f8f8;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e5e5e5;
}

/* Eligibility Badges */
.eligibility-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
}

.eligibility-badge.eligible {
  background: #d4f1d4;
  color: #2e7d32;
}

.eligibility-badge.likely {
  background: #fff3cd;
  color: #856404;
}

.eligibility-badge.possibly {
  background: #f8d7da;
  color: #721c24;
}

/* Outreach Button Group */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.outreach-button {
  background: #3b82f6;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.outreach-button:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

/* Mobile Responsive */
@media screen and (max-width: 1024px) {
  .stepper-container {
    padding: 1rem;
  }

  .stepper-left-panel,
  .stepper-right-panel {
    position: static;
    display: none;
  }

  .stepper-center-panel {
    padding: 1.5rem;
  }

  .step-title {
    font-size: 24px;
  }

  .step-description {
    font-size: 16px;
  }

  .nav-btn {
    font-size: 16px;
    padding: 0.75rem 1.5rem;
    min-width: 120px;
  }

  .checkbox-group.horizontal {
    flex-direction: column;
  }

  .header-content {
    padding: 1rem;
  }

  .header-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .header-btn {
    font-size: 12px;
    padding: 0.5rem 1rem;
  }
}

@media screen and (max-width: 640px) {
  .stepper-container {
    padding: 0.5rem;
  }

  .stepper-center-panel {
    padding: 1rem;
  }

  .step-navigation {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-btn {
    flex: 1;
  }

  .header-logo img {
    height: 30px;
  }
}

/* Validation Feedback */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #dc3545;
}

.error-message {
  color: #dc3545;
  font-size: 14px;
  margin-top: 0.25rem;
}

/* Loading State */
.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-radius: 50%;
  border-top-color: #7C29C4;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

.loading-spinner {
  text-align: center;
  padding: 3rem;
}

.spinner-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
}

.spinner-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid #f3f3f3;
  border-radius: 50%;
  border-top-color: #7C29C4;
  animation: spin 1.5s linear infinite;
}

.loading-text {
  font-size: 18px;
  color: #5f5f5f;
  font-weight: 500;
  margin: 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Transition Effects */
.step-transition-exit {
  animation: slideOutLeft 0.5s ease forwards;
}

.step-transition-enter {
  animation: slideInRight 0.5s ease forwards;
}

@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-100%);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* XML Display Area */
.xml-display-area {
  margin-top: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: opacity 0.5s ease;
}

.xml-records-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.xml-records-header h4 {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0 0 0.5rem 0;
}

.records-status {
  font-size: 14px;
  color: #5f5f5f;
  margin: 0;
}

.xml-records-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.5rem;
}

.xml-record-mini {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 11px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.xml-record-mini pre {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Courier New", monospace;
  color: #333;
}

.xml-record-mini.more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #5f5f5f;
  background: #f8f8f8;
}

/* Scrollbar styling */
.xml-records-grid::-webkit-scrollbar {
  width: 6px;
}

.xml-records-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.xml-records-grid::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.xml-records-grid::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Calendar View Styles for Step 6 */
.appointment-calendar-view {
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeIn 0.5s ease;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.calendar-container {
  position: relative;
  width: 100%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.calendar-label {
  display: none;
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 0;
}

.realtime-calendar .calendar-label {
  background: linear-gradient(
    135deg,
    rgba(100, 44, 194, 0.95),
    rgba(94, 158, 149, 0.95)
  );
  color: white;
}

.crio-calendar .calendar-label {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.95),
    rgba(34, 197, 94, 0.95)
  );
  color: white;
}

.calendar-background {
  width: 100%;
  height: auto;
  display: block;
}

.calendar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* SVG Text Styles */
.patient-name-text {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  fill: white;
}

.date-highlight {
  fill: #7C29C4;
  fill-opacity: 0.2;
  stroke: #7C29C4;
  stroke-width: 3;
  animation: pulseScale 2s ease infinite;
}

.date-number-text {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
  fill: #7C29C4;
  dominant-baseline: middle;
}

.time-slot-bg {
  fill: #7C29C4;
  fill-opacity: 0.7;
  stroke: #7C29C4;
  stroke-width: 2;
}

.time-slot-bg.crio-slot {
  fill: #3b82f6;
  fill-opacity: 0.7;
  stroke: #3b82f6;
}

/* CRIO Calendar Card Styles */
.crio-card-bg {
  fill: #FBB221;
  fill-opacity: 0.9;
  stroke: #FBB221;
  stroke-width: 0;
}

.crio-time-range {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  fill: #333;
}

.crio-patient-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  fill: #007cb9;
}

.crio-date {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 800;
  fill: #333;
}

.crio-visit-details {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 400;
  fill: #333;
}

.time-text {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  fill: white;
  dominant-baseline: middle;
}

.patient-text {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  fill: white;
  dominant-baseline: middle;
}

.confirmation-text {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  fill: #5f5f5f;
}

@keyframes pulseScale {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.4;
  }
}

/* Call Container Styles */
.call-container {
  max-width: 800px;
  margin: 2rem auto;
}

.call-status-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.call-animation {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
}

.phone-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  z-index: 2;
}

.pulse-rings {
  position: relative;
  width: 100%;
  height: 100%;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 3px solid #2730B9;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: pulseRing 3s ease-out infinite;
}

.pulse-ring:nth-child(2) {
  animation-delay: 1s;
}

.pulse-ring:nth-child(3) {
  animation-delay: 2s;
}

@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

.call-status-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin: 0 0 0.5rem 0;
}

.call-status-message {
  font-size: 18px;
  color: #5f5f5f;
  text-align: center;
  margin: 0 0 2rem 0;
}

.call-progress {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0 2rem;
}

.call-step {
  flex: 1;
  text-align: center;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.call-step.active {
  opacity: 1;
}

.call-step-icon {
  display: block;
  font-size: 32px;
  margin-bottom: 0.5rem;
}

.call-step-text {
  font-size: 14px;
  color: #5f5f5f;
  font-weight: 500;
}

.call-transcript {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 1.5rem;
  max-height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.transcript-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e5e5;
}

.transcript-header h4 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.transcript-status {
  color: #dc3545;
  font-size: 14px;
  font-weight: 500;
  animation: blink 2s ease infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.transcript-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.transcript-message {
  padding: 0.75rem;
  border-radius: 8px;
  background: white;
  animation: slideInUp 0.3s ease;
}

.transcript-message.agent {
  background: #e8f5e9;
  margin-right: 20%;
}

.transcript-message.patient {
  background: #e3f2fd;
  margin-left: 20%;
}

.transcript-message .speaker {
  font-weight: 600;
  color: #333;
  display: block;
  margin-bottom: 0.25rem;
  font-size: 14px;
}

.transcript-message .message {
  color: #5f5f5f;
  line-height: 1.5;
  font-size: 15px;
}

/* Ineligible Patient Card */
.ineligible-patient-card {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  margin: 0 auto;
  animation: fadeIn 0.5s ease;
  display: none;
}

.ineligible-content {
  text-align: center;
}

.ineligible-icon-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
}

.ineligible-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  z-index: 2;
}

.ineligible-rings {
  position: relative;
  width: 100%;
  height: 100%;
}

.ineligible-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 3px solid #dc3545;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: ineligiblePulseRing 3s ease-out infinite;
  opacity: 0.5;
}

.ineligible-ring:nth-child(2) {
  animation-delay: 1.5s;
}

@keyframes ineligiblePulseRing {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
  }
}

.ineligible-title {
  font-size: 28px;
  font-weight: 700;
  color: #dc3545;
  margin: 0 0 1rem 0;
}

.ineligible-message {
  font-size: 18px;
  color: #5f5f5f;
  line-height: 1.6;
  margin: 0 0 2rem 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.ineligible-details {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.detail-icon {
  font-size: 24px;
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detail-text {
  font-size: 16px;
  color: #333;
  line-height: 1.4;
}

/* Mobile responsive for ineligible card */
@media screen and (max-width: 640px) {
  .ineligible-patient-card {
    padding: 2rem 1.5rem;
  }

  .ineligible-title {
    font-size: 24px;
  }

  .ineligible-message {
    font-size: 16px;
  }

  .ineligible-details {
    padding: 1.5rem;
  }

  .detail-item {
    gap: 0.75rem;
  }

  .detail-text {
    font-size: 14px;
  }
}

/* ============================================================
   Areti brand v2 — appended rebrand (shared by leads-flow + consent-flow)
   Re-skins the demo sub-header to the new bold purple/indigo system
   and adds an accessible keyboard-focus style. Layout/logic untouched.
   ============================================================ */
:root {
  --purple: #7C29C4;
  --indigo: #2730B9;
  --amber:  #FBB221;
  --teal:   #3FD7B6;
  --dark:   #142616;
  --ink:    #0B1410;
}

#header { all: revert; }
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 6px 20px rgba(124,41,196,.06);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, #7C29C4, #2730B9) 1;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-logo img { height: 34px; }
.header-actions { display: flex; gap: 12px; align-items: center; }

.header-btn {
  background: #142616;
  color: #fff;
  padding: 11px 20px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}
.header-btn:hover {
  background: #7C29C4;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(124,41,196,.25);
}
.header-btn-secondary {
  background: transparent;
  color: #142616;
  box-shadow: inset 0 0 0 2px rgba(20,38,22,.18);
}
.header-btn-secondary:hover {
  background: #7C29C4;
  color: #fff;
  box-shadow: none;
}

/* Accessible keyboard focus across both stepper pages */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #FBB221;
  outline-offset: 2px;
}

/* Brand v2 — unify footer with the new landing (dark ink, centered) */
footer {
  all: revert;
  background: #0B1410;
  color: rgba(255,255,255,.6);
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  padding: 28px 24px;
  height: auto;
}
footer a, footer > p {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: 13px;
}

/* Brand v2 — tighten demo sub-header on small screens (scalability) */
@media (max-width: 600px) {
  .header-content {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .header-logo img { height: 30px; }
  .header-btn { padding: 9px 14px; font-size: 13px; }
}

/* Brand v2 — text wordmark in stepper header (matches landing) */
.header-content .logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.012em;
  color: #142616;
  text-decoration: none;
}
.header-content .logo .dot { color: #FBB221; }
