/* Voice Billing Specific Styles */

.voice-hero {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.voice-hero .container {
  display: flex;
  align-items: flex-start; /* Top-align hero columns */
  justify-content: space-between;
  gap: 60px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.voice-hero .hero-content {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 10;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  /* Debug background to see if container is there */
  /* background: rgba(255, 0, 0, 0.1); */
}

.voice-hero .hero-visual {
  flex: 1;
  display: flex;
  align-items: flex-start; /* Changed from center to flex-start */
  justify-content: center;
  position: relative;
  z-index: 2;
  padding-top: 0; /* Align with hero-content top */
}

/* Ensure hero content is visible */
.voice-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(77, 148, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  border: 1px solid rgba(77, 148, 255, 0.3);
  color: #4d94ff;
}

.voice-hero .pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #00ffd4;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 212, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 255, 212, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 212, 0);
  }
}

.voice-hero .separator {
  color: #94a3b8;
}

.voice-hero .hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #ffffff !important;
  display: block !important;
}

.voice-hero .gradient-text {
  background: linear-gradient(135deg, #00ffd4 0%, #4d94ff 50%, #ff66ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.voice-hero .hero-subtitle {
  font-size: 1.25rem;
  color: #94a3b8 !important;
  margin-bottom: 2rem;
  line-height: 1.7;
  display: block !important;
}

.voice-hero .hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  padding: 2rem;
  background: rgba(26, 31, 58, 0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(77, 148, 255, 0.2);
}

.hero-stats .stat {
  flex: 1;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
  text-shadow: 0 0 20px currentColor;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Button styles */
.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Voice Animation */
.voice-animation {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.voice-wave-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 140px; /* Fixed height to prevent bouncing */
  padding: 0 40px;
  background: rgba(77, 148, 255, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(77, 148, 255, 0.2);
  margin-bottom: 20px;
}

.voice-wave {
  width: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
  transform-origin: center;
}

.voice-wave:nth-child(1) {
  height: 20px;
  animation-delay: 0s;
}
.voice-wave:nth-child(2) {
  height: 40px;
  animation-delay: 0.1s;
}
.voice-wave:nth-child(3) {
  height: 60px;
  animation-delay: 0.2s;
}
.voice-wave:nth-child(4) {
  height: 40px;
  animation-delay: 0.3s;
}
.voice-wave:nth-child(5) {
  height: 20px;
  animation-delay: 0.4s;
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.5);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Transcription Preview */
.transcription-preview {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.transcription-line {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  margin-bottom: 10px;
  background: rgba(77, 148, 255, 0.05);
  border-radius: 8px;
  animation: slideIn 0.5s ease-out;
}

.transcription-line:nth-child(2) {
  animation-delay: 0.2s;
}
.transcription-line:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.time-stamp {
  color: var(--gray);
  font-size: 0.85rem;
  font-weight: 500;
}

.transcription-line .text {
  flex: 1;
  color: var(--text-primary);
}

.charge-tag {
  background: var(--gradient-accent);
  color: var(--dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Invoice Preview */
.invoice-preview {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 212, 0.1) 0%,
    rgba(77, 148, 255, 0.1) 100%
  );
  border: 2px solid var(--secondary);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.invoice-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--secondary);
  font-weight: 600;
}

.invoice-header i {
  font-size: 1.5rem;
}

.invoice-total {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Process Flow */
.process-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 60px;
}

.process-step {
  flex: 1;
  text-align: center;
}

.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-size: 2rem;
  color: white;
  box-shadow: var(--shadow-glow);
}

.process-step h3 {
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.process-arrow {
  color: var(--primary);
  font-size: 2rem;
  opacity: 0.5;
}

.example-quote {
  background: rgba(77, 148, 255, 0.1);
  border-left: 3px solid var(--primary);
  padding: 15px;
  margin-top: 20px;
  border-radius: 8px;
  font-style: italic;
  color: var(--text-secondary);
}

.ai-extract {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
}

.extract-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.extract-item .label {
  color: var(--gray);
  font-weight: 500;
}

.invoice-mini {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
  text-align: left;
}

.invoice-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--text-secondary);
}

.invoice-total-line {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 0;
  border-top: 2px solid var(--border-color);
  margin-top: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.1rem;
}

/* Voice Features */
.voice-features .feature-card {
  background: linear-gradient(
    135deg,
    var(--bg-card) 0%,
    rgba(77, 148, 255, 0.05) 100%
  );
}

/* ROI Calculator */
.roi-section {
  background: var(--bg-secondary);
  padding: 80px 0;
}

.roi-calculator {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-color);
}

.calculator-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.input-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-weight: 500;
}

.input-group input {
  width: 100%;
  padding: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(77, 148, 255, 0.1);
}

.input-with-prefix {
  position: relative;
}

.input-with-prefix .prefix {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
}

.input-with-prefix input {
  padding-left: 35px;
}

.roi-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.result-card {
  background: rgba(77, 148, 255, 0.05);
  border: 1px solid rgba(77, 148, 255, 0.2);
  border-radius: var(--radius);
  padding: 25px;
  text-align: center;
}

.result-card.highlight {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 212, 0.1) 0%,
    rgba(77, 148, 255, 0.1) 100%
  );
  border-color: var(--secondary);
}

.result-label {
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.result-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.result-card.highlight .result-value {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.result-note {
  color: var(--gray);
  font-size: 0.85rem;
}

/* Testimonials */
.testimonials-section {
  padding: 80px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.testimonial-stars {
  color: #ffb800;
  margin-bottom: 20px;
}

.testimonial-card p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.testimonial-author strong {
  color: var(--text-primary);
}

.testimonial-author span {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Integration Section */
.integration-section {
  background: var(--bg-secondary);
  padding: 80px 0;
}

.integration-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.integration-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 30px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.integration-logo:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.integration-logo i {
  font-size: 3rem;
  color: var(--primary);
}

.integration-logo span {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Voice CTA */
.voice-cta {
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
}

.cta-guarantee {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 600px;
  margin: 30px auto;
  padding: 25px;
  background: rgba(0, 255, 212, 0.05);
  border: 1px solid var(--secondary);
  border-radius: var(--radius);
}

.cta-guarantee i {
  font-size: 2.5rem;
  color: var(--secondary);
}

.cta-guarantee strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.cta-guarantee p {
  color: var(--text-secondary);
  margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .voice-hero .container {
    flex-direction: column;
    gap: 40px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .process-flow {
    flex-direction: column;
  }

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

  .roi-calculator {
    padding: 20px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .integration-logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-guarantee {
    flex-direction: column;
    text-align: center;
  }
}
