/* ===== FORM GENERAL STYLING ===== */
main {
  flex: 1;
  padding: 80px 20px 30px 20px;
  transition: margin 0.45s ease;  
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
}

/* Title */
main h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 25px;
  text-align: center;
}

/* Form Container */
form {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-top: 22px;
  background: var(--form-bg);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-primary);
  display: flex;
  flex-direction: column;
}

/* Labels */
form label {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
  font-weight: 500;
}

/* Form Elements Layout Polish */
form input, 
form select, 
form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #555;
  background: #222;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border 0.3s, box-shadow 0.3s;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: #ffe600;
  box-shadow: 0 0 5px rgba(255, 230, 0, 0.3);
}

/* Textarea settings */
#propertyForm textarea {
  resize: vertical;
  min-height: 90px;
}

/* Fieldset */
fieldset {
  border: 1px solid rgba(255, 230, 0, 0.4);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 18px;
}

legend {
  padding: 0 10px;
  color: #ffe600;
  font-weight: 500;
  font-size: 1.2rem;
}

form .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  float: right;
  align-self: flex-end;
}

/* Wizard Visibility Rules */
.form-step {
  display: none;
}

.form-step.active {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs); /* Handled cleanly by grid gap configurations */
}

/* Multi-Column Compression rows */
.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: 16px;
}

.button-group {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
  margin-top: 10px;
}

/* Visual Progress Dots */
.progress-indicator {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2f2f2f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #888;
  font-weight: bold;
}

.step-dot.active {
  background: linear-gradient(90deg, #ffe600, #ffad00);
  color: #000;
}

/* Navigation links */
form a {
  color: #87ceeb;
}
form a:hover { color: #87cfebb3; }

/* Responsive Media Viewport Breaks */
@media (max-width: 800px) {
  main {
    margin-left: 0;
    padding-top: 70px;
  }
  form {
    height: auto;
    max-width: 92%;
    padding: 20px;
  }
}

@media (max-width: 550px) {
  .form-group-row {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

/* Step subtitle text styling */
.step-subtitle {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 10px;
}

/* Dynamic Unit Repeater Component Cards */
.unit-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px dashed #555;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.unit-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
}

.unit-card-header h4 {
  color: #ffe600; 
  font-size: 14px;
}

.btn-remove-unit {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 13px;
}

.btn-remove-unit:hover {
  text-decoration: underline;
}

.btn-add-repeater {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px dashed #ffe600;
  color: #ffe600;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.btn-add-repeater:hover {
  background: rgba(255, 230, 0, 0.08);
}
input:disabled {
  opacity: 0.7;
}

.singleInput {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: 1fr minmax(50px, 60px);
}