/*
 * Scoped dark-palette components: the contact form card, the homepage
 * 4-step engagement stepper, and the automation page's bottom CTA banner.
 * These intentionally keep a dark navy background, now aligned to the
 * site-wide black/blue/white design system in kaviri-design-system.css.
 */

/* ---------- Lead capture form (contactus.blade.php) ---------- */

.lead-form-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(2, 6, 23, 0.35);
}

.lead-form-card .lead-form-heading {
  color: #f8fafc;
}

.lead-form-card .lead-form-subheading {
  color: rgba(248, 250, 252, 0.65);
}

.lead-form-card label {
  color: rgba(248, 250, 252, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.lead-form-field {
  background: #090d16;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-form-field::placeholder {
  color: rgba(248, 250, 252, 0.4);
}

.lead-form-field:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.lead-form-field.is-invalid {
  border-color: #ef4444;
}

.lead-form-error {
  display: none;
  color: #ef4444;
  font-size: 13px;
  margin-top: 0.35rem;
}

.lead-form-field.is-invalid ~ .lead-form-error,
.lead-form-error.is-visible {
  display: block;
}

select.lead-form-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394a3b8'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.lead-form-submit {
  width: 100%;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0.95rem 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: background 0.2s ease, transform 0.15s ease;
}

.lead-form-submit:hover:not(:disabled) {
  background: #1d4ed8;
}

.lead-form-submit:disabled {
  opacity: 0.85;
  cursor: progress;
}

.lead-form-submit .btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: lead-form-spin 0.7s linear infinite;
}

.lead-form-submit.is-loading .btn-spinner {
  display: inline-block;
}

.lead-form-submit.is-loading .btn-label,
.lead-form-submit.is-loading .btn-icon {
  display: none;
}

@keyframes lead-form-spin {
  to {
    transform: rotate(360deg);
  }
}

.lead-form-success {
  display: none;
  align-items: center;
  gap: 0.75rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.lead-form-success.is-visible {
  display: flex;
}

.lead-form-success svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  stroke: #22c55e;
}

.lead-form-success .checkmark-circle {
  stroke-dasharray: 76;
  stroke-dashoffset: 76;
  animation: lead-form-draw 0.5s ease forwards 0.1s;
}

.lead-form-success .checkmark-check {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: lead-form-draw 0.35s ease forwards 0.5s;
}

@keyframes lead-form-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.lead-form-alert {
  display: none;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.lead-form-alert.is-visible {
  display: block;
}

/* ---------- 4-step engagement stepper (how-we-work.blade.php) ---------- */

.engagement-stepper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.engagement-stepper .stepper-track {
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(37, 99, 235, 0.12);
  border-radius: 3px;
  z-index: 0;
}

.engagement-stepper .stepper-track-fill {
  position: absolute;
  top: 34px;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #0284c7, #2563eb);
  border-radius: 3px;
  z-index: 1;
}

.engagement-step {
  position: relative;
  z-index: 2;
  flex: 1 1 0;
  text-align: center;
  padding: 0 1rem;
}

.engagement-step .step-badge {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 3px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #0284c7, #2563eb);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.18);
}

.engagement-step .step-number {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.engagement-step .step-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.engagement-step .step-description {
  color: #6b7280;
  font-size: 0.9rem;
}

@media (max-width: 991.98px) {
  .engagement-stepper {
    flex-direction: column;
    gap: 2rem;
  }

  .engagement-stepper .stepper-track,
  .engagement-stepper .stepper-track-fill {
    top: 0;
    bottom: 0;
    left: 34px;
    right: auto;
    width: 3px;
    height: 100%;
  }

  .engagement-step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    text-align: left;
    padding: 0;
  }

  .engagement-step .step-badge {
    margin: 0;
    flex-shrink: 0;
  }
}

/* ---------- Automation page bottom banner (services.blade.php) ---------- */

.automation-cta-banner {
  position: relative;
  border-radius: 24px;
  padding: 3.5rem 2rem;
  overflow: hidden;
  background-color: #0f172a;
  background-image: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.2), transparent 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.automation-cta-banner .cta-heading {
  color: #f8fafc;
}

.automation-cta-banner .cta-subtext {
  color: rgba(248, 250, 252, 0.7);
}

.automation-cta-banner .btn-cta-primary {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 2.25rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.automation-cta-banner .btn-cta-primary:hover {
  background: #1d4ed8;
  color: #ffffff;
  transform: translateY(-2px);
}
