/**
 * Lead Funnel Component Styles
 * Compact inline lead capture form for action bar
 */
.lead-funnel {
  width: 100%;
}

.lead-funnel__form {
  position: relative;
  -webkit-animation: funnelSlideIn 0.3s ease-out;
          animation: funnelSlideIn 0.3s ease-out;
}

@-webkit-keyframes funnelSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes funnelSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.lead-funnel__row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.lead-funnel__row:last-child {
  margin-bottom: 0;
}
@media (min-width: 992px) {
  .lead-funnel__row {
    flex-wrap: nowrap;
  }
}
.lead-funnel__row--dates {
  margin-bottom: 12px;
}
.lead-funnel__row--submit {
  justify-content: center;
  margin-top: 4px;
}

.lead-funnel__fields {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
@media (min-width: 992px) {
  .lead-funnel__fields {
    flex-wrap: nowrap;
  }
}

.lead-funnel__field {
  flex: 1;
  min-width: 100px;
}
.lead-funnel__field--email {
  flex: 1.5;
  min-width: 140px;
}
.lead-funnel__field--dates {
  flex: 1 1 100%;
  min-width: 100%;
}
.lead-funnel__field--select {
  flex: 0.8;
  min-width: 100px;
}
.lead-funnel__field--comments {
  flex: 1.5;
  min-width: 140px;
}
.lead-funnel__field--captcha {
  flex: 1.5;
  min-width: 300px;
}
@media (max-width: 991px) {
  .lead-funnel__field {
    flex: 1 1 calc(50% - 4px);
    min-width: calc(50% - 4px);
  }
  .lead-funnel__field--email {
    flex: 1 1 100%;
    min-width: 100%;
  }
  .lead-funnel__field--comments {
    flex: 1 1 100%;
    min-width: 100%;
  }
  .lead-funnel__field--captcha {
    flex: 1 1 100%;
    min-width: 100%;
  }
}
@media (max-width: 575px) {
  .lead-funnel__field {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

.lead-funnel__input {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.875rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: white;
  color: #333;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lead-funnel__input::-moz-placeholder {
  color: #999;
  font-size: 0.8125rem;
}
.lead-funnel__input:-ms-input-placeholder {
  color: #999;
  font-size: 0.8125rem;
}
.lead-funnel__input::placeholder {
  color: #999;
  font-size: 0.8125rem;
}
.lead-funnel__input:focus {
  outline: none;
  border-color: #17a2b8;
  box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.15);
}
.lead-funnel__input:invalid:not(:-moz-placeholder-shown) {
  border-color: #dc3545;
}
.lead-funnel__input:invalid:not(:-ms-input-placeholder) {
  border-color: #dc3545;
}
.lead-funnel__input:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
}

.lead-funnel__dates-display {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.875rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: white;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lead-funnel__dates-display:hover {
  border-color: #17a2b8;
}
.lead-funnel__dates-display span {
  color: #333;
}

.lead-funnel__select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  cursor: pointer;
}
.lead-funnel__select option:first-child {
  color: #999;
}
.lead-funnel__select:focus {
  outline: none;
  border-color: #17a2b8;
  box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.15);
}

.lead-funnel__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
  background: #28a745;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.lead-funnel__submit:hover {
  background: #208637;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}
.lead-funnel__submit:active {
  transform: translateY(0);
  box-shadow: none;
}
.lead-funnel__submit:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.lead-funnel__submit i {
  font-size: 0.875rem;
}
@media (max-width: 575px) {
  .lead-funnel__submit {
    width: 100%;
    padding: 14px 24px;
  }
}

.lead-funnel__success {
  -webkit-animation: funnelSlideIn 0.3s ease-out;
          animation: funnelSlideIn 0.3s ease-out;
}

.lead-funnel__success-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(40, 167, 69, 0.1);
  border-radius: 6px;
  color: #28a745;
}

.lead-funnel__success-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.lead-funnel__success-text {
  font-size: 0.9375rem;
  font-weight: 500;
}

.lead-funnel__submitting {
  -webkit-animation: funnelSlideIn 0.3s ease-out;
          animation: funnelSlideIn 0.3s ease-out;
}

.lead-funnel__submitting-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(23, 162, 184, 0.1);
  border-radius: 6px;
  color: #17a2b8;
}

.lead-funnel__submitting-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.lead-funnel__submitting-text {
  font-size: 0.9375rem;
  font-weight: 500;
}