/* General Form Styling */
body {
  background-color: #f8f9fa;
  padding: 2rem 0;
  color: #333;
}

.container {
  max-width: 900px;
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Progress Bar Styling */
/* Professional Progress Tracker - Replace existing progress bar styles */
.professional-progress-tracker {
  position: relative;
  padding: 20px 0 10px;
  margin-bottom: 40px;
}

.progress-path {
  position: absolute;
  top: 45px;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #e9ecef;
  z-index: 1;
}

.progress-bar-animated {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #0d6efd;
  transition: width 0.6s ease-in-out;
  z-index: 2;
  width: 0%;
}

.progress-steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  z-index: 3;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
  min-width: 80px;
  cursor: pointer;
}

.step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: white;
  border: 2px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 4;
  transition: all 0.3s ease;
  margin-bottom: 8px;
}

.step-number {
  font-weight: 600;
  color: #6c757d;
  transition: opacity 0.3s ease;
}

.step-check {
  position: absolute;
  color: white;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.step-label {
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 4px;
  transition: color 0.3s ease;
}

/* Step states */
.progress-step.active .step-icon {
  border-color: #0d6efd;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
}

.progress-step.active .step-number {
  color: #0d6efd;
  font-weight: 700;
}

.progress-step.active .step-label {
  color: #0d6efd;
  font-weight: 600;
}

.progress-step.completed .step-icon {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.progress-step.completed .step-number {
  opacity: 0;
}

.progress-step.completed .step-check {
  opacity: 1;
  transform: scale(1);
}

.progress-step.available .step-icon {
  border-color: #0d6efd;
  border-style: dashed;
}

.progress-step:hover .step-icon {
  transform: translateY(-3px);
}

/* Mobile responsiveness for progress tracker */
@media (max-width: 768px) {
  .progress-step {
    min-width: 60px;
  }
  
  .step-icon {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
  
  .step-label {
    font-size: 0.75rem;
  }
  
  .progress-path {
    top: 42px;
  }
}

@media (max-width: 576px) {
  .step-label {
    display: none;
  }
  
  .progress-steps {
    padding: 0 10px;
  }
  
  .progress-step {
    min-width: 40px;
  }
}

/* Section Styling */
.form-section {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.section-heading {
  background-color: #0d6efd;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.section-heading i {
  margin-right: 10px;
}

/* Form Controls */
.form-control, .form-select {
  padding: 10px;
  border-radius: 6px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.required::after {
  content: " *";
  color: red;
}
/* Owner/Tenant Entry Styling */
.owner-entry, .tenant-details, .parking-entry {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.owner-entry:hover, .tenant-details:hover, .parking-entry:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Navigation buttons */
.form-navigation {
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
}

.next-step, .prev-step {
  min-width: 120px;
  transition: all 0.3s ease;
}

/* Alert Banner */
.alert-banner {
  display: none;
  position: relative;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: .25rem;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Animation for step transitions */
.slide-out-left {
  transform: translateX(-50px);
  opacity: 0;
}

.slide-in-right {
  transform: translateX(50px);
  opacity: 0;
}

.slide-in {
  transform: translateX(0);
  opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .form-section {
    padding: 1rem;
  }
  
  .step {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
    line-height: 25px;
  }
  
  .step-indicators {
    margin-bottom: 15px;
  }
  
  .next-step, .prev-step {
    min-width: 100px;
    font-size: 0.9rem;
  }
}

/* Tooltips */
.tooltip {
  font-size: 0.85rem;
}

/* Save Progress Button */
.save-progress-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Flat Number Input Special Styling */
#flatNo {
  text-transform: uppercase;
}

/* Form section slide effects */
.d-none {
  display: none !important;
}

/* File input styling */
input[type="file"] {
  padding: 0.5rem;
}

input[type="file"]::-webkit-file-upload-button {
  background-color: #6c757d;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 1rem;
}

input[type="file"]::-webkit-file-upload-button:hover {
  background-color: #5a6268;
}