.dynamic-form-renderer {
  padding: 1rem;
}

.form-section-title {
  color: #495057;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

.form-label .fa-icon {
  color: #6c757d;
}

.form-control {
  border-radius: 0.375rem;
  border: 1px solid #ced4da;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.form-check {
  margin-bottom: 0.5rem;
}

.form-check-input {
  margin-top: 0.25rem;
}

.form-check-input.is-invalid {
  border-color: #dc3545;
}

.form-check-label {
  font-size: 0.95rem;
  color: #495057;
  cursor: pointer;
}

.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

.phone-input-container {
  width: 100%;
}

.phone-input-container .form-control {
  width: 100% !important;
  height: calc(2.25rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
}

.text-danger {
  color: #dc3545 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dynamic-form-renderer .col-md-6,
  .dynamic-form-renderer .col-md-4 {
    margin-bottom: 1rem;
  }
  
  .form-section-title {
    font-size: 1.1rem;
  }
}

/* Custom styling for different field types */
.form-control[type="number"] {
  text-align: left;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

/* Loading and disabled states */
.form-control:disabled {
  background-color: #e9ecef;
  opacity: 1;
}

.form-check-input:disabled {
  opacity: 0.5;
}

/* Success state */
.form-control.is-valid {
  border-color: #198754;
}

.form-control.is-valid:focus {
  border-color: #198754;
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}