/* Multi-step form container */
.nb-multi-step-enabled {
  position: relative;
}

/* Step progress indicator */
.nb-step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  padding: 20px 0;
}

.nb-step-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #999;
  transition: color 0.3s ease;
}

.nb-step-indicator.is-active {
  color: #111;
}

.nb-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5e5e5;
  color: #999;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.nb-step-indicator.is-active .nb-step-number {
  background: #1565c0;
  color: #fff;
}

.nb-step-indicator.is-complete .nb-step-number {
  background: #4caf50;
  color: #fff;
}

.nb-step-separator {
  width: 60px;
  height: 2px;
  background: #e5e5e5;
  transition: background 0.3s ease;
}

.nb-step-separator.is-complete {
  background: #4caf50;
}

/* Step containers */
.nb-step {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nb-step.is-active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

/* Step controls */
.nb-step-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
}

.nb-step-controls .button,
.nb-step-controls .si-btn {
  cursor: pointer;
  background: var(--si-accent-color, #1565c0) !important;
    color: #fff !important;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: normal;
}

.nb-step-controls .nb-back,
.nb-step-controls .nb-back-bottom {
  background: var(--si-accent-color, #1565c0) !important;
  color: #fff;
  border: 1px solid #ddd;
}

.nb-step-controls .nb-back:hover,
.nb-step-controls .nb-back-bottom:hover {
  background: var(--si-accent-color, #1565c0);
  border-color: #ccc;
}

.nb-step-controls .nb-next,
.nb-step-controls #matador-submit,
#matador-submit.matador-button,
.nb-submit-wrapper #matador-submit {
  background: var(--si-accent-color, #1565c0);
  color: #fff !important;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nb-step-controls .nb-next:hover,
.nb-step-controls #matador-submit:hover,
#matador-submit.matador-button:hover,
.nb-submit-wrapper #matador-submit:hover {
  background: var(--si-accent-color-hover, #0d47a1);
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Submit wrapper to ensure proper spacing and layout */
.nb-submit-wrapper {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid #e5e5e5;
}

.nb-submit-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

#matador-submit-container {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

/* Submit button - uses theme accent color */
#matador-submit {
  min-width: 200px;
  max-width: 200px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  background: var(--si-accent-color, #1565c0);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#matador-submit:hover {
  background: var(--si-accent-color-hover, #0d47a1);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#matador-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Back button - neutral color */
.nb-back-bottom {
  min-width: 140px;
  padding: 12px 24px;
  font-size: 16px !important;
  font-weight: 600 !important;
  background: var(--si-accent-color, #1565c0) !important;
  color: #ffffff;
  border-radius: 4px !important;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nb-back-bottom:hover {
  background: #e5e5e5;
  border-color: #ccc;
}

/* Hide Matador's built-in error labels (we use our own custom errors) */
.nb-multi-step-enabled label.error,
.nb-multi-step-enabled .error[id$="-error"] {
  display: none !important;
}

/* Consent checkboxes styling */
.nb-step input[type="checkbox"] + label,
.nb-step label:has(input[type="checkbox"]) {
  display: inline-block;
  margin-left: 8px;
  cursor: pointer;
  user-select: none;
}

.nb-step .matador-form-field:has(input[type="checkbox"]),
.nb-step .matador-field:has(input[type="checkbox"]) {
  margin-bottom: 16px;
}

/* Select box styling */
.nb-select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.nb-select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 12px 40px 12px 12px;
  font-size: 15px;
  line-height: 1.5;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nb-select-wrapper select:hover {
  border-color: #1565c0;
}

.nb-select-wrapper select:focus {
  outline: none;
  border-color: #1565c0;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.nb-select-wrapper::after {
  content: "▼";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #666;
  font-size: 12px;
}

/* Field hints */
.nb-field-hint {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
  font-style: italic;
}

/* Error state */
.nb-error {
  color: #d32f2f;
  font-size: 13px;
  margin-top: 6px;
  font-weight: 500;
  display: none;
}

.nb-error.is-visible {
  display: block;
}

input.nb-has-error,
select.nb-has-error,
textarea.nb-has-error {
  border-color: #d32f2f !important;
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2) !important;
}

/* Form messages */
.nb-form-message {
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  animation: slideDown 0.3s ease-out;
    width:100%;
}

.nb-form-message.nb-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #4caf50;

}

.nb-form-message.nb-error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #f44336;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .nb-step-progress {
    flex-direction: column;
    gap: 12px;
  }

  .nb-step-separator {
    width: 2px;
    height: 30px;
  }

  .nb-step-label {
    font-size: 12px;
  }

  .nb-step-controls {
    flex-direction: column-reverse;
  }

  .nb-step-controls .button,
  .nb-step-controls .si-btn {
    width: 100%;
    min-width: auto;
  }

  .nb-submit-actions {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .nb-back-bottom,
  #matador-submit {
    width: 100%;
    min-width: auto;
  }

  #matador-submit-container {
    width: 100%;
  }
}

@media (max-width: 600px) {
  #matador-submit {
    padding: 12px 24px;
    font-size: 15px;
  }
}

/* Smooth page transitions */
.nb-multi-step-enabled .nb-step {
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Input and textarea styling improvements */
.nb-step input[type="text"],
.nb-step input[type="email"],
.nb-step input[type="tel"],
.nb-step textarea {
  transition: all 0.3s ease;
}

.nb-step input:focus,
.nb-step textarea:focus,
.nb-step select:focus {
  border-color: #1565c0;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

/* Checkbox styling */
.nb-step input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Custom File Upload UI */
.nb-file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nb-file-upload-ui {
  margin-top: 8px;
  cursor: pointer;
}

.nb-file-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #f8f9fa;
  border: 2px dashed #ccc;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nb-file-empty:hover {
  border-color: #1565c0;
  background: #e3f2fd;
}

.nb-file-empty .nb-file-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.nb-file-empty .nb-file-prompt {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.nb-file-empty .nb-file-hint {
  font-size: 12px;
  color: #888;
}

.nb-file-selected {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #e8f5e9;
  border: 2px solid #4caf50;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nb-file-selected:hover {
  background: #c8e6c9;
}

.nb-file-selected .nb-file-icon {
  font-size: 18px;
  color: #4caf50;
  margin-right: 10px;
  font-weight: bold;
}

.nb-file-selected .nb-file-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #2e7d32;
  word-break: break-all;
}

.nb-file-selected .nb-file-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 10px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}

.nb-file-selected .nb-file-remove:hover {
  background: #f44336;
  border-color: #f44336;
  color: #fff;
}

/* Error state for file upload */
.nb-has-error .nb-file-empty {
  border-color: #d32f2f;
  background: #ffebee;
}

.nb-has-error .nb-file-empty .nb-file-prompt {
  color: #d32f2f;
}

.matador-field-group.matador-field-customText16.matador-field-template-text.matador-field-type-text.nb-field-experience-years {
    margin-bottom: 20px;
}
