.ftmsf-wrapper {
  margin: auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-family: sans-serif;
}

.ftmsf-step {
  display: none;
}

.ftmsf-step.active {
  display: block;
}

.ftmsf-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ftmsf-progress div {
  flex: 1;
  height: 5px;
  background: #ddd;
  margin: 0 4px;
  position: relative;
}

.ftmsf-progress div.active {
  background: #4CAF50;
}

.ftmsf-progress div::after {
  content: '';
  width: 10px;
  height: 10px;
  background: #4CAF50;
  border-radius: 50%;
  position: absolute;
  top: -3px;
  right: -5px;
}

.ftmsf-field-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.ftmsf-field-col {
  flex: 1;
}

.ftmsf-field-col input,
.ftmsf-field-col select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.ftmsf-field-col label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.ftmsf-field-col input.error,
.ftmsf-field-col select.error {
  border-color: red;
}

.ftmsf-wrapper .text-danger {
  color: red;
}

.ftmsf-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  align-items: center;
}

.ftmsf-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: #4CAF50;
  color: white;
  cursor: pointer;
}

.ftmsf-buttons button:hover {
  background: #002E5B;
  color: #fff;
}

.ftmsf-buttons button#requestCallBack {  
  background: #fff;
  color: #002E5B;
  border: 1px solid #002E5B;
}

.ftmsf-buttons button#requestCallBack:hover {  
  color: #fff;
  background: #002E5B;  
}

.ftmsf-buttons button:disabled {
  background: #aaa;
}

.ftmsf-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: white url('data:image/svg+xml;utf8,<svg fill="%23222222" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 1rem center;
  background-size: 1rem;
  padding: 10px 2.5rem 10px 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  width: 100%;
  font-size: 16px;
  cursor: pointer;
}

.ftmsf-select:focus {
  border-color: #007cba;
  outline: none;
}

select.ftmsf-select::-ms-expand {
  display: none;
}

.ftmsf-terms {
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.6;
}

.ftmsf-terms label {
  display: block;
  margin-bottom: 10px;
  color: #333;
}

.ftmsf-terms input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.2);
}

.ftmsf-upload-note {
  font-size: 14px;
  margin-bottom: 10px;
  color: #555;
}

.ftmsf-upload-label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: #333;
  width: 100%;
  position: relative;
  margin-bottom: 10px;
}

.ftmsf-file-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.ftmsf-upload-label input[type="file"] {
  width: 100%;
  margin-top: 5px;
  border: 1px dashed #ccc;
  border-radius: 5px;
  padding: 10px;
  font-size: 14px;
  background: #f9f9f9;
  cursor: pointer;
}

.ftmsf-upload-section {  
  width: 100%;
}

.ftmsf-upload-section h4 {
  margin-bottom: 10px;
  color: #333;
  font-weight: bold;
}

.ftmsf-upload-wrapper {
  display: flex;
  flex-direction: column;  
}

.ftmsf-upload-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ftmsf-loader {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.ftmsf-upload-status {
  font-size: 12px;
  margin-top: 5px;
  color: #4CAF50;
  min-height: 18px;
  flex: 1;
}

.ftmsf-upload-status.error {
  color: #f44336;
}

.ftmsf-add-file {
  align-self: flex-start;
  background: #002E5B;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.ftmsf-add-file:hover {
  background: #4CAF50;
}

.ftmsf-remove-file {
  background: #f44336;
  color: white;
  border: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ftmsf-remove-file:hover {
  background: #d32f2f;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-5 {
  margin-top: 1.25rem;
}

@media (max-width: 575px) {
  .ftmsf-field-row {
    flex-direction: column;
  }
  
  .ftmsf-field-col {
    width: 100%;
  }

  .ftmsf-upload-label {
    width: 100%;
  }

  .ftmsf-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .ftmsf-buttons button {
    width: 100%;
    margin-bottom: 10px;
  }

  .ftmsf-buttons .fw-bold {
    margin-bottom: 10px;
  }

}