/* ========================================
   AI Visibility Score Widget
   ======================================== */
.vis-score-widget {
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 600px;
  margin: 48px auto;
  box-shadow: 0 4px 24px rgba(91, 111, 240, 0.12);
}

.vis-score-header {
  text-align: center;
  margin-bottom: 32px;
}

.vis-score-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.vis-score-header h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.vis-score-header p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Form */
.vis-form-group {
  margin-bottom: 16px;
}

.vis-form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.vis-form-group input,
.vis-form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.2s;
  font-family: inherit;
}

.vis-form-group input:focus,
.vis-form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(91, 111, 240, 0.1);
}

.vis-form-group input::placeholder {
  color: var(--gray-400);
}

.vis-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.vis-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 12px;
}

/* Results */
.vis-results-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.vis-score-circle {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.vis-score-circle svg {
  width: 100%;
  height: 100%;
}

.vis-score-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
}

.vis-score-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  font-size: 0.75rem;
  color: var(--gray-400);
}

.vis-score-summary h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.vis-score-summary p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Breakdown */
.vis-score-breakdown {
  margin-bottom: 32px;
}

.vis-breakdown-item {
  margin-bottom: 16px;
}

.vis-breakdown-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.vis-breakdown-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
}

.vis-breakdown-value {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue);
}

.vis-progress-bar {
  height: 8px;
  background: var(--gray-100);
  border-radius: 4px;
  overflow: hidden;
}

.vis-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #818CF8);
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Revenue Impact */
.vis-revenue-impact {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.vis-revenue-card {
  flex: 1;
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
}

.vis-revenue-current {
  background: var(--red-light);
  border: 1px solid #FECACA;
}

.vis-revenue-potential {
  background: var(--green-light);
  border: 1px solid #A7F3D0;
}

.vis-revenue-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.vis-revenue-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}

.vis-revenue-sub {
  font-size: 0.6875rem;
  color: var(--gray-400);
  margin-top: 2px;
}

.vis-revenue-arrow {
  font-size: 1.5rem;
  color: var(--gray-300);
  flex-shrink: 0;
}

/* Lost Revenue Banner */
.vis-lost-revenue {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.vis-lost-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.vis-lost-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 2px;
}

.vis-lost-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #B45309;
}

.vis-lost-annual {
  font-size: 0.75rem;
  color: #92400E;
  margin-top: 2px;
}

/* Competitors */
.vis-competitors {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
}

.vis-competitor {
  display: grid;
  grid-template-columns: 30px 1fr 60px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}

.vis-competitor:last-child {
  border-bottom: none;
}

.vis-competitor-rank {
  font-weight: 700;
  color: var(--gray-400);
  font-size: 0.8125rem;
}

.vis-competitor-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
}

.vis-competitor-name em {
  font-weight: 400;
  color: var(--gray-400);
}

.vis-competitor-score {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--green);
  text-align: right;
}

.vis-competitor-bar {
  grid-column: 1 / -1;
  height: 4px;
  background: var(--gray-100);
  border-radius: 2px;
  overflow: hidden;
}

.vis-competitor-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.vis-competitor-you {
  background: #FEF2F2;
  margin: 8px -20px -20px;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* What You're Missing */
.vis-missing {
  margin-bottom: 24px;
  padding: 20px;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
}

.vis-missing-list {
  list-style: none;
  padding: 0;
}

.vis-missing-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.5;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.vis-missing-list li:last-child {
  border-bottom: none;
}

.vis-missing-list li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: #EF4444;
  font-weight: 700;
}

/* Fix Banner CTA */
.vis-fix-banner {
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.vis-fix-text strong {
  color: white;
  font-size: 1.125rem;
  display: block;
  margin-bottom: 4px;
}

.vis-fix-text p {
  color: var(--gray-400);
  font-size: 0.8125rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .vis-score-widget {
    padding: 24px;
    margin: 32px 16px;
  }

  .vis-form-row {
    grid-template-columns: 1fr;
  }

  .vis-results-header {
    flex-direction: column;
    text-align: center;
  }

  .vis-revenue-impact {
    flex-direction: column;
  }

  .vis-revenue-arrow {
    transform: rotate(90deg);
  }

  .vis-fix-banner {
    flex-direction: column;
    text-align: center;
  }
}
