/* Catalogue Button Style (Preserved) */
.catalogue-btn {
  color: #fff;
  font-size: 16px;
  border-radius: 5px;
  padding: 13px 45px 11px;
  display: inline-block;
  border: 1px solid transparent !important;
  background-color: #0083c3;
  transition: all 0.4s ease 0s;
  cursor: pointer;
}

.catalogue-btn:hover {
  box-shadow: 0px 10px 26px -7px rgba(0, 0, 0, 0.25);
  color: #fff !important;
  transform: translateY(-2px);
}

/* =========================================
   Modern Lead Form - Card UI Styles
   ========================================= */

/* Modal Styling */
#leadCaptureModal .modal-lg {
  max-width: 560px;
}

#leadCaptureModal .modal-content {
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Modern Input Fields */
.modern-input {
  height: 52px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  background: #fafafa;
}

.modern-input:focus {
  outline: none;
  border-color: #0083c3;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 131, 195, 0.1);
}

.modern-input::placeholder {
  color: #9ca3af;
}

textarea.modern-input {
  height: auto;
  min-height: 100px;
  resize: none;
}

/* Selectable Cards */
.card-select-group {
  display: flex;
  gap: 12px;
}

.select-card {
  flex: 1;
  min-width: 120px;
  padding: 10px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fafafa;
  user-select: none;
}

.select-card:hover {
  border-color: #0083c3;
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 131, 195, 0.15);
}

.select-card.selected {
  border-color: #0083c3;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  box-shadow: 0 4px 12px rgba(0, 131, 195, 0.2);
}

.select-card.selected .card-icon {
  transform: scale(1.1);
}

.card-icon {
  font-size: 24px;
  margin-bottom: 10px;
  color: #0083c3;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.card-label {
  font-weight: 600;
  font-size: 14px;
  color: #1a1a2e;
}

/* Input with icon */
.input-icon-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 14px;
}

.modern-input.has-icon {
  padding-left: 42px;
}

/* Modern Buttons */
.modern-btn-primary {
  background: linear-gradient(135deg, #0083c3 0%, #00b4d8 100%);
  color: #fff;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.modern-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 131, 195, 0.35);
  color: #fff;
}

.modern-btn-outline {
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #555;
  font-weight: 500;
}

.modern-btn-outline:hover {
  background: #f5f5f5;
  border-color: #d1d5db;
}

/* Step Dots */
.step-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e5e7eb;
  transition: all 0.3s ease;
}

.step-dot.active {
  width: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0083c3 0%, #00b4d8 100%);
}

/* Consent Checkbox */
.consent-check:hover {
  background: #f0f9ff !important;
}

.consent-check input:checked+span {
  color: #0083c3;
}

/* Validation States */
#leadCaptureModal .form-control.is-invalid,
#leadCaptureModal .modern-input.is-invalid {
  border-color: #ef4444 !important;
  background-image: none;
}

#leadCaptureModal .form-control.is-invalid~.invalid-feedback,
#leadCaptureModal .is-invalid~.invalid-feedback,
#leadCaptureModal .input-icon-wrapper .is-invalid~.invalid-feedback {
  display: block !important;
  color: #ef4444;
  font-size: 12px;
  margin-top: 6px;
}

/* Show feedback for wrapped inputs */
#leadCaptureModal .input-icon-wrapper .invalid-feedback {
  position: relative;
}

.card-select-group.is-invalid .select-card {
  border-color: #ef4444;
}

.card-select-group.is-invalid~.invalid-feedback {
  display: block !important;
}

/* Responsive */
@media (max-width: 768px) {
  #leadCaptureModal .modal-lg {
    max-width: 95%;
    margin: 10px auto;
  }

  .select-card {
    min-width: 100px;
    padding: 16px 12px;
  }

  .card-icon {
    font-size: 24px;
  }

  .card-label {
    font-size: 13px;
  }

  .modern-input {
    height: 48px;
    font-size: 14px;
  }

  .modern-btn-primary,
  .modern-btn-outline {
    padding: 12px 20px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 480px) {
  .card-select-group {
    flex-direction: row;
  }

  .select-card {
    flex-direction: row;
    display: flex;
    align-items: center;
    padding: 14px 16px;
  }

  .card-icon {
    margin-bottom: 0;
    margin-right: 12px;
    font-size: 20px;
  }

  #leadCaptureModal .form-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }

  #leadCaptureModal .form-actions button {
    width: 100% !important;
  }

  #leadCaptureModal .form-actions .flex-grow-1 {
    order: 2;
    width: 100%;
    margin: 10px 0;
  }
}

/* Sticky Lead Button - Matching #feedback style */
/* Sticky Lead Button - Refined Style */
#sticky-lead-btn {
  height: 0px;
  width: 0px;
  position: fixed;
  right: 0;
  top: 60%;
  z-index: 9999;
  transform: rotate(90deg);
}

#feedback {
  top: 40% !important;
}

#sticky-lead-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0083c3;
  color: #fff;
  width: 150px;
  height: 42px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  margin-top: -21px;
  /* Half of height to center */
  margin-left: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.1);
}

#sticky-lead-btn a:hover {
  background: #006090;
  padding-bottom: 5px;
}

#sticky-lead-btn i {
  transform: rotate(-90deg);
  font-size: 16px;
}

/* Inline Lead Button (Used near Catalogue Button) */
.lead-btn-inline {
  display: inline-block;
  background: #0083c3;
  /* Flat color */
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 45px 11px;
  /* Matches catalogue-btn padding */
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.4s ease;
  cursor: pointer;
  border: 1px solid transparent !important;
  margin-left: 15px;
}

.lead-btn-inline:hover {
  transform: translateY(-2px);
  box-shadow: 0px 10px 26px -7px rgba(0, 0, 0, 0.25);
  color: #fff !important;
}